Add read-only Gitea task capability resolver #141

Closed
opened 2026-07-05 01:51:36 -05:00 by jcwalker3 · 0 comments
Owner

Purpose

Add a read-only tool that tells an LLM which capability/profile/namespace is required for a requested Gitea task.

Suggested tool name:
gitea_resolve_task_capability

Acceptance criteria

  • Tool is read-only.
  • Accepts a task/action such as:
    • create_issue
    • comment_issue
    • close_issue
    • claim_issue
    • create_branch
    • push_branch
    • create_pr
    • comment_pr
    • review_pr
    • merge_pr
    • delete_branch
  • Returns:
    • requested task
    • required operation permission
    • required role kind
    • active profile
    • active identity
    • active profile allowed operations
    • whether active profile can perform the task
    • matching configured profile, if safely knowable
    • whether runtime switching is supported
    • whether a different MCP namespace is required
    • exact safe next action
  • Fails closed on unknown task.
  • Does not expose tokens, keychain IDs, raw service URLs, or private config values.
  • Tests cover author-capable tasks, reviewer-capable tasks, issue-comment tasks, unknown task, missing permission, and static-profile safe-next-action output.

Related to #139.

## Purpose Add a read-only tool that tells an LLM which capability/profile/namespace is required for a requested Gitea task. Suggested tool name: `gitea_resolve_task_capability` ## Acceptance criteria * Tool is read-only. * Accepts a task/action such as: * create_issue * comment_issue * close_issue * claim_issue * create_branch * push_branch * create_pr * comment_pr * review_pr * merge_pr * delete_branch * Returns: * requested task * required operation permission * required role kind * active profile * active identity * active profile allowed operations * whether active profile can perform the task * matching configured profile, if safely knowable * whether runtime switching is supported * whether a different MCP namespace is required * exact safe next action * Fails closed on unknown task. * Does not expose tokens, keychain IDs, raw service URLs, or private config values. * Tests cover author-capable tasks, reviewer-capable tasks, issue-comment tasks, unknown task, missing permission, and static-profile safe-next-action output. Related to #139.
jcwalker3 added the status:in-progress label 2026-07-05 02:13:50 -05:00
sysadmin removed the status:in-progress label 2026-07-05 02:24:37 -05:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Scaled-Tech-Consulting/Gitea-Tools#141