Files
github--github-mcp-server/pkg/github/__toolsnaps__/pull_request_read.snap
T
Sam Morrow c6f31f36b6 feat: Add OAuth scopes to tool metadata
- Add pkg/scopes package with OAuth scope constants and utilities
- Add scopes to all ~90 tool definitions using mcp.Tool.Meta field
- Update generate_docs.go to include scopes in README output
- Add comprehensive test coverage for scopes package
- Update all toolsnaps to include _meta.requiredOAuthScopes

Scope assignments follow GitHub OAuth app documentation:
- repo: Most repository operations (private repos)
- public_repo: Star/unstar operations
- notifications: Notification operations
- gist: Gist write operations
- security_events: Code scanning, dependabot, secret scanning
- project/read:project: Project operations
- read:org: Organization/team read operations
- No scope: Public read operations (get_me, list_gists)
2025-12-13 01:22:50 +01:00

61 lines
2.3 KiB
Plaintext

{
"_meta": {
"requiredOAuthScopes": [
"repo"
],
"toolset": "pull_requests"
},
"annotations": {
"readOnlyHint": true,
"title": "Get details for a single pull request"
},
"description": "Get information on a specific pull request in GitHub repository.",
"inputSchema": {
"type": "object",
"required": [
"method",
"owner",
"repo",
"pullNumber"
],
"properties": {
"method": {
"type": "string",
"description": "Action to specify what pull request data needs to be retrieved from GitHub. \nPossible options: \n 1. get - Get details of a specific pull request.\n 2. get_diff - Get the diff of a pull request.\n 3. get_status - Get status of a head commit in a pull request. This reflects status of builds and checks.\n 4. get_files - Get the list of files changed in a pull request. Use with pagination parameters to control the number of results returned.\n 5. get_review_comments - Get the review comments on a pull request. They are comments made on a portion of the unified diff during a pull request review. Use with pagination parameters to control the number of results returned.\n 6. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method.\n 7. get_comments - Get comments on a pull request. Use this if user doesn't specifically want review comments. Use with pagination parameters to control the number of results returned.\n",
"enum": [
"get",
"get_diff",
"get_status",
"get_files",
"get_review_comments",
"get_reviews",
"get_comments"
]
},
"owner": {
"type": "string",
"description": "Repository owner"
},
"page": {
"type": "number",
"description": "Page number for pagination (min 1)",
"minimum": 1
},
"perPage": {
"type": "number",
"description": "Results per page for pagination (min 1, max 100)",
"minimum": 1,
"maximum": 100
},
"pullNumber": {
"type": "number",
"description": "Pull request number"
},
"repo": {
"type": "string",
"description": "Repository name"
}
}
},
"name": "pull_request_read"
}