c6f31f36b6
- 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)
62 lines
2.0 KiB
Plaintext
62 lines
2.0 KiB
Plaintext
{
|
|
"_meta": {
|
|
"requiredOAuthScopes": [
|
|
"repo"
|
|
],
|
|
"toolset": "pull_requests"
|
|
},
|
|
"annotations": {
|
|
"title": "Write operations (create, submit, delete) on pull request reviews."
|
|
},
|
|
"description": "Create and/or submit, delete review of a pull request.\n\nAvailable methods:\n- create: Create a new review of a pull request. If \"event\" parameter is provided, the review is submitted. If \"event\" is omitted, a pending review is created.\n- submit_pending: Submit an existing pending review of a pull request. This requires that a pending review exists for the current user on the specified pull request. The \"body\" and \"event\" parameters are used when submitting the review.\n- delete_pending: Delete an existing pending review of a pull request. This requires that a pending review exists for the current user on the specified pull request.\n",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"method",
|
|
"owner",
|
|
"repo",
|
|
"pullNumber"
|
|
],
|
|
"properties": {
|
|
"body": {
|
|
"type": "string",
|
|
"description": "Review comment text"
|
|
},
|
|
"commitID": {
|
|
"type": "string",
|
|
"description": "SHA of commit to review"
|
|
},
|
|
"event": {
|
|
"type": "string",
|
|
"description": "Review action to perform.",
|
|
"enum": [
|
|
"APPROVE",
|
|
"REQUEST_CHANGES",
|
|
"COMMENT"
|
|
]
|
|
},
|
|
"method": {
|
|
"type": "string",
|
|
"description": "The write operation to perform on pull request review.",
|
|
"enum": [
|
|
"create",
|
|
"submit_pending",
|
|
"delete_pending"
|
|
]
|
|
},
|
|
"owner": {
|
|
"type": "string",
|
|
"description": "Repository owner"
|
|
},
|
|
"pullNumber": {
|
|
"type": "number",
|
|
"description": "Pull request number"
|
|
},
|
|
"repo": {
|
|
"type": "string",
|
|
"description": "Repository name"
|
|
}
|
|
}
|
|
},
|
|
"name": "pull_request_review_write"
|
|
} |