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

57 lines
1.2 KiB
Plaintext

{
"_meta": {
"requiredOAuthScopes": [
"repo"
],
"toolset": "pull_requests"
},
"annotations": {
"title": "Open new pull request"
},
"description": "Create a new pull request in a GitHub repository.",
"inputSchema": {
"type": "object",
"required": [
"owner",
"repo",
"title",
"head",
"base"
],
"properties": {
"base": {
"type": "string",
"description": "Branch to merge into"
},
"body": {
"type": "string",
"description": "PR description"
},
"draft": {
"type": "boolean",
"description": "Create as draft PR"
},
"head": {
"type": "string",
"description": "Branch containing changes"
},
"maintainer_can_modify": {
"type": "boolean",
"description": "Allow maintainer edits"
},
"owner": {
"type": "string",
"description": "Repository owner"
},
"repo": {
"type": "string",
"description": "Repository name"
},
"title": {
"type": "string",
"description": "PR title"
}
}
},
"name": "create_pull_request"
}