forked fromgithub/github-mcp-server
- Notifications
You must be signed in to change notification settings - Fork0
[pull] main from github:main#65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
5 commits Select commitHold shift + click to select a range
82fe310
Change reference from Anthropic to Github in README.md
dgiacomo1ddb78d
chore: fix e2e tests (#536)
tonytrg3e988d5
Add toolsnaps for every tool
williammartin2765d1d
Update toolsnap error message with actionable instruction
williammartin846fac6
Ensure UPDATE_TOOLSNAPS doesn't interfere with tests
williammartinFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
2 changes: 1 addition & 1 deletioncmd/mcpcurl/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
35 changes: 14 additions & 21 deletionse2e/e2e_test.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletioninternal/toolsnaps/toolsnaps.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletionsinternal/toolsnaps/toolsnaps_test.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletionspkg/github/__toolsnaps__/add_issue_comment.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"annotations": { | ||
"title": "Add comment to issue", | ||
"readOnlyHint": false | ||
}, | ||
"description": "Add a comment to a specific issue in a GitHub repository.", | ||
"inputSchema": { | ||
"properties": { | ||
"body": { | ||
"description": "Comment content", | ||
"type": "string" | ||
}, | ||
"issue_number": { | ||
"description": "Issue number to comment on", | ||
"type": "number" | ||
}, | ||
"owner": { | ||
"description": "Repository owner", | ||
"type": "string" | ||
}, | ||
"repo": { | ||
"description": "Repository name", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"owner", | ||
"repo", | ||
"issue_number", | ||
"body" | ||
], | ||
"type": "object" | ||
}, | ||
"name": "add_issue_comment" | ||
} |
73 changes: 73 additions & 0 deletionspkg/github/__toolsnaps__/add_pull_request_review_comment_to_pending_review.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"annotations": { | ||
"title": "Add comment to the requester's latest pending pull request review", | ||
"readOnlyHint": false | ||
}, | ||
"description": "Add a comment to the requester's latest pending pull request review, a pending review needs to already exist to call this (check with the user if not sure).", | ||
"inputSchema": { | ||
"properties": { | ||
"body": { | ||
"description": "The text of the review comment", | ||
"type": "string" | ||
}, | ||
"line": { | ||
"description": "The line of the blob in the pull request diff that the comment applies to. For multi-line comments, the last line of the range", | ||
"type": "number" | ||
}, | ||
"owner": { | ||
"description": "Repository owner", | ||
"type": "string" | ||
}, | ||
"path": { | ||
"description": "The relative path to the file that necessitates a comment", | ||
"type": "string" | ||
}, | ||
"pullNumber": { | ||
"description": "Pull request number", | ||
"type": "number" | ||
}, | ||
"repo": { | ||
"description": "Repository name", | ||
"type": "string" | ||
}, | ||
"side": { | ||
"description": "The side of the diff to comment on. LEFT indicates the previous state, RIGHT indicates the new state", | ||
"enum": [ | ||
"LEFT", | ||
"RIGHT" | ||
], | ||
"type": "string" | ||
}, | ||
"startLine": { | ||
"description": "For multi-line comments, the first line of the range that the comment applies to", | ||
"type": "number" | ||
}, | ||
"startSide": { | ||
"description": "For multi-line comments, the starting side of the diff that the comment applies to. LEFT indicates the previous state, RIGHT indicates the new state", | ||
"enum": [ | ||
"LEFT", | ||
"RIGHT" | ||
], | ||
"type": "string" | ||
}, | ||
"subjectType": { | ||
"description": "The level at which the comment is targeted", | ||
"enum": [ | ||
"FILE", | ||
"LINE" | ||
], | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"owner", | ||
"repo", | ||
"pullNumber", | ||
"path", | ||
"body", | ||
"subjectType" | ||
], | ||
"type": "object" | ||
}, | ||
"name": "add_pull_request_review_comment_to_pending_review" | ||
} |
31 changes: 31 additions & 0 deletionspkg/github/__toolsnaps__/assign_copilot_to_issue.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"annotations": { | ||
"title": "Assign Copilot to issue", | ||
"readOnlyHint": false, | ||
"idempotentHint": true | ||
}, | ||
"description": "Assign Copilot to a specific issue in a GitHub repository.\n\nThis tool can help with the following outcomes:\n- a Pull Request created with source code changes to resolve the issue\n\n\nMore information can be found at:\n- https://docs.github.com/en/copilot/using-github-copilot/using-copilot-coding-agent-to-work-on-tasks/about-assigning-tasks-to-copilot\n", | ||
"inputSchema": { | ||
"properties": { | ||
"issueNumber": { | ||
"description": "Issue number", | ||
"type": "number" | ||
}, | ||
"owner": { | ||
"description": "Repository owner", | ||
"type": "string" | ||
}, | ||
"repo": { | ||
"description": "Repository name", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"owner", | ||
"repo", | ||
"issueNumber" | ||
], | ||
"type": "object" | ||
}, | ||
"name": "assign_copilot_to_issue" | ||
} |
49 changes: 49 additions & 0 deletionspkg/github/__toolsnaps__/create_and_submit_pull_request_review.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"annotations": { | ||
"title": "Create and submit a pull request review without comments", | ||
"readOnlyHint": false | ||
}, | ||
"description": "Create and submit a review for a pull request without review comments.", | ||
"inputSchema": { | ||
"properties": { | ||
"body": { | ||
"description": "Review comment text", | ||
"type": "string" | ||
}, | ||
"commitID": { | ||
"description": "SHA of commit to review", | ||
"type": "string" | ||
}, | ||
"event": { | ||
"description": "Review action to perform", | ||
"enum": [ | ||
"APPROVE", | ||
"REQUEST_CHANGES", | ||
"COMMENT" | ||
], | ||
"type": "string" | ||
}, | ||
"owner": { | ||
"description": "Repository owner", | ||
"type": "string" | ||
}, | ||
"pullNumber": { | ||
"description": "Pull request number", | ||
"type": "number" | ||
}, | ||
"repo": { | ||
"description": "Repository name", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"owner", | ||
"repo", | ||
"pullNumber", | ||
"body", | ||
"event" | ||
], | ||
"type": "object" | ||
}, | ||
"name": "create_and_submit_pull_request_review" | ||
} |
34 changes: 34 additions & 0 deletionspkg/github/__toolsnaps__/create_branch.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"annotations": { | ||
"title": "Create branch", | ||
"readOnlyHint": false | ||
}, | ||
"description": "Create a new branch in a GitHub repository", | ||
"inputSchema": { | ||
"properties": { | ||
"branch": { | ||
"description": "Name for new branch", | ||
"type": "string" | ||
}, | ||
"from_branch": { | ||
"description": "Source branch (defaults to repo default)", | ||
"type": "string" | ||
}, | ||
"owner": { | ||
"description": "Repository owner", | ||
"type": "string" | ||
}, | ||
"repo": { | ||
"description": "Repository name", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"owner", | ||
"repo", | ||
"branch" | ||
], | ||
"type": "object" | ||
}, | ||
"name": "create_branch" | ||
} |
52 changes: 52 additions & 0 deletionspkg/github/__toolsnaps__/create_issue.snap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"annotations": { | ||
"title": "Open new issue", | ||
"readOnlyHint": false | ||
}, | ||
"description": "Create a new issue in a GitHub repository.", | ||
"inputSchema": { | ||
"properties": { | ||
"assignees": { | ||
"description": "Usernames to assign to this issue", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"body": { | ||
"description": "Issue body content", | ||
"type": "string" | ||
}, | ||
"labels": { | ||
"description": "Labels to apply to this issue", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"milestone": { | ||
"description": "Milestone number", | ||
"type": "number" | ||
}, | ||
"owner": { | ||
"description": "Repository owner", | ||
"type": "string" | ||
}, | ||
"repo": { | ||
"description": "Repository name", | ||
"type": "string" | ||
}, | ||
"title": { | ||
"description": "Issue title", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"owner", | ||
"repo", | ||
"title" | ||
], | ||
"type": "object" | ||
}, | ||
"name": "create_issue" | ||
} |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.