Files
github--github-mcp-server/pkg/github/__toolsnaps__/update_pull_request.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

70 lines
1.5 KiB
Plaintext

{
"_meta": {
"requiredOAuthScopes": [
"repo"
],
"toolset": "pull_requests"
},
"annotations": {
"title": "Edit pull request"
},
"description": "Update an existing pull request in a GitHub repository.",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"pullNumber"
],
"properties": {
"base": {
"type": "string",
"description": "New base branch name"
},
"body": {
"type": "string",
"description": "New description"
},
"draft": {
"type": "boolean",
"description": "Mark pull request as draft (true) or ready for review (false)"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Allow maintainer edits"
},
"owner": {
"type": "string",
"description": "Repository owner"
},
"pullNumber": {
"type": "number",
"description": "Pull request number to update"
},
"repo": {
"type": "string",
"description": "Repository name"
},
"reviewers": {
"type": "array",
"description": "GitHub usernames to request reviews from",
"items": {
"type": "string"
}
},
"state": {
"type": "string",
"description": "New state",
"enum": [
"open",
"closed"
]
},
"title": {
"type": "string",
"description": "New title"
}
}
},
"name": "update_pull_request"
}