| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This PR extends the list_issue_types MCP tool to support a repo-scoped API path so agents can list issue types with repo-level access (e.g., metadata:read) instead of requiring org-level access (read:org).
Changes:
| File | Description |
|---|---|
| README.md | Updates generated tool docs for list_issue_types to include new repo param and updated scope requirements. |
| pkg/github/issues.go | Adds repo-scoped issue type listing logic and updates tool schema/description/scope gating + IFC labeling. |
| pkg/github/issues_test.go | Adds new subtests covering repo-scoped success and repo-not-found error behavior. |
| pkg/github/toolsnaps/list_issue_types.snap | Updates tool schema snapshot for the new optional repo input and updated descriptions. |
| pkg/errors/error_test.go | Formatting-only import ordering / trailing whitespace cleanup. |
Sorry, something went wrong.
| - **list_issue_types** - List available issue types | ||
| - **Required OAuth Scopes**: `read:org` | ||
| - **Accepted OAuth Scopes**: `admin:org`, `read:org`, `write:org` | ||
| - `owner`: The organization owner of the repository (string, required) | ||
| - **Required OAuth Scopes**: `repo`, `read:org` | ||
| - **Accepted OAuth Scopes**: `admin:org`, `read:org`, `repo`, `write:org` |
There was a problem hiding this comment.
Sorry, something went wrong.
There was a problem hiding this comment.
Looks great! Just two comments, let me know your thoughts!
Sorry, something went wrong.
There was a problem hiding this comment.
Does this description need updating to reflect the changes you are making? I feel like it might need tweaking a bit but open to discussion on this! 😄
Sorry, something went wrong.
There was a problem hiding this comment.
Makes sense! Let me know if this is clear: 9fa8dce
Sorry, something went wrong.
There was a problem hiding this comment.
Same with this one as my previous comment, again open to discussion on this!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Adds optional repo parameter to list_issue_types so coding/cloud agents can list issue types using only metadata:read instead of org:read.
Closes https://github.com/github/plan-track-agentic-toolkit/issues/125
depends on https://github.com/github/github/pull/436186
Why
Cloud agent / SWE agent / coding agent don't have the org scope, which blocked them from using list_issue_types. Matches the list_issue_fields implementation
What changed
MCP impact
Prompts tested (tool changes only)
Tested end-to-end against a local dotcom monolith (with the backing endpoint behind a per-repo feature flag) using a FGPAT with only metadata:read:
Security / limits
Tool renaming
Lint & tests
Added 2 new sub-tests to Test_ListIssueTypes (successful_repo_issue_types_retrieval, repo_not_found).
Docs
Regenerated via script/generate-docs after the schema change. Also updated the list_issue_types.snap toolsnap.