Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.23.7
require (
github.com/google/go-github/v74 v74.0.0
github.com/josephburnett/jd v1.9.2
github.com/mark3labs/mcp-go v0.36.0
github.com/mark3labs/mcp-go v0.41.1
github.com/migueleliasweb/go-github-mock v1.3.0
github.com/spf13/cobra v1.10.1
github.com/spf13/viper v1.20.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN
github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=
github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
github.com/mark3labs/mcp-go v0.36.0 h1:rIZaijrRYPeSbJG8/qNDe0hWlGrCJ7FWHNMz2SQpTis=
github.com/mark3labs/mcp-go v0.36.0/go.mod h1:T7tUa2jO6MavG+3P25Oy/jR7iCeJPHImCZHRymCn39g=
github.com/mark3labs/mcp-go v0.41.1 h1:w78eWfiQam2i8ICL7AL0WFiq7KHNJQ6UB53ZVtH4KGA=
github.com/mark3labs/mcp-go v0.41.1/go.mod h1:T7tUa2jO6MavG+3P25Oy/jR7iCeJPHImCZHRymCn39g=
github.com/migueleliasweb/go-github-mock v1.3.0 h1:2sVP9JEMB2ubQw1IKto3/fzF51oFC6eVWOOFDgQoq88=
github.com/migueleliasweb/go-github-mock v1.3.0/go.mod h1:ipQhV8fTcj/G6m7BKzin08GaJ/3B5/SonRAkgrk0zCY=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
Expand Down
4 changes: 2 additions & 2 deletions pkg/github/__toolsnaps__/add_comment_to_pending_review.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Add review 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": {
"type": "object",
"properties": {
"body": {
"description": "The text of the review comment",
Expand Down Expand Up @@ -66,8 +67,7 @@
"path",
"body",
"subjectType"
],
"type": "object"
]
},
"name": "add_comment_to_pending_review"
}
4 changes: 2 additions & 2 deletions pkg/github/__toolsnaps__/add_issue_comment.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Add a comment to a specific issue in a GitHub repository.",
"inputSchema": {
"type": "object",
"properties": {
"body": {
"description": "Comment content",
Expand All @@ -28,8 +29,7 @@
"repo",
"issue_number",
"body"
],
"type": "object"
]
},
"name": "add_issue_comment"
}
4 changes: 2 additions & 2 deletions pkg/github/__toolsnaps__/add_project_item.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Add a specific Project item for a user or org",
"inputSchema": {
"type": "object",
"properties": {
"item_id": {
"description": "The numeric ID of the issue or pull request to add to the project.",
Expand Down Expand Up @@ -41,8 +42,7 @@
"project_number",
"item_type",
"item_id"
],
"type": "object"
]
},
"name": "add_project_item"
}
4 changes: 2 additions & 2 deletions pkg/github/__toolsnaps__/add_sub_issue.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Add a sub-issue to a parent issue in a GitHub repository.",
"inputSchema": {
"type": "object",
"properties": {
"issue_number": {
"description": "The number of the parent issue",
Expand Down Expand Up @@ -32,8 +33,7 @@
"repo",
"issue_number",
"sub_issue_id"
],
"type": "object"
]
},
"name": "add_sub_issue"
}
4 changes: 2 additions & 2 deletions pkg/github/__toolsnaps__/assign_copilot_to_issue.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
"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": {
"type": "object",
"properties": {
"issueNumber": {
"description": "Issue number",
Expand All @@ -24,8 +25,7 @@
"owner",
"repo",
"issueNumber"
],
"type": "object"
]
},
"name": "assign_copilot_to_issue"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Create and submit a review for a pull request without review comments.",
"inputSchema": {
"type": "object",
"properties": {
"body": {
"description": "Review comment text",
Expand Down Expand Up @@ -42,8 +43,7 @@
"pullNumber",
"body",
"event"
],
"type": "object"
]
},
"name": "create_and_submit_pull_request_review"
}
4 changes: 2 additions & 2 deletions pkg/github/__toolsnaps__/create_branch.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Create a new branch in a GitHub repository",
"inputSchema": {
"type": "object",
"properties": {
"branch": {
"description": "Name for new branch",
Expand All @@ -27,8 +28,7 @@
"owner",
"repo",
"branch"
],
"type": "object"
]
},
"name": "create_branch"
}
4 changes: 2 additions & 2 deletions pkg/github/__toolsnaps__/create_issue.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Create a new issue in a GitHub repository.",
"inputSchema": {
"type": "object",
"properties": {
"assignees": {
"description": "Usernames to assign to this issue",
Expand Down Expand Up @@ -49,8 +50,7 @@
"owner",
"repo",
"title"
],
"type": "object"
]
},
"name": "create_issue"
}
4 changes: 2 additions & 2 deletions pkg/github/__toolsnaps__/create_or_update_file.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Create or update a single file in a GitHub repository. If updating, you must provide the SHA of the file you want to update. Use this tool to create or update a file in a GitHub repository remotely; do not use it for local file operations.",
"inputSchema": {
"type": "object",
"properties": {
"branch": {
"description": "Branch to create/update the file in",
Expand Down Expand Up @@ -42,8 +43,7 @@
"content",
"message",
"branch"
],
"type": "object"
]
},
"name": "create_or_update_file"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Create a pending review for a pull request. Call this first before attempting to add comments to a pending review, and ultimately submitting it. A pending pull request review means a pull request review, it is pending because you create it first and submit it later, and the PR author will not see it until it is submitted.",
"inputSchema": {
"type": "object",
"properties": {
"commitID": {
"description": "SHA of commit to review",
Expand All @@ -27,8 +28,7 @@
"owner",
"repo",
"pullNumber"
],
"type": "object"
]
},
"name": "create_pending_pull_request_review"
}
4 changes: 2 additions & 2 deletions pkg/github/__toolsnaps__/create_pull_request.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Create a new pull request in a GitHub repository.",
"inputSchema": {
"type": "object",
"properties": {
"base": {
"description": "Branch to merge into",
Expand Down Expand Up @@ -45,8 +46,7 @@
"title",
"head",
"base"
],
"type": "object"
]
},
"name": "create_pull_request"
}
4 changes: 2 additions & 2 deletions pkg/github/__toolsnaps__/create_repository.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Create a new GitHub repository in your account or specified organization",
"inputSchema": {
"type": "object",
"properties": {
"autoInit": {
"description": "Initialize with README",
Expand All @@ -29,8 +30,7 @@
},
"required": [
"name"
],
"type": "object"
]
},
"name": "create_repository"
}
4 changes: 2 additions & 2 deletions pkg/github/__toolsnaps__/delete_file.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
"description": "Delete a file from a GitHub repository",
"inputSchema": {
"type": "object",
"properties": {
"branch": {
"description": "Branch to delete the file from",
Expand Down Expand Up @@ -34,8 +35,7 @@
"path",
"message",
"branch"
],
"type": "object"
]
},
"name": "delete_file"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Delete the requester's latest pending pull request review. Use this after the user decides not to submit a pending review, if you don't know if they already created one then check first.",
"inputSchema": {
"type": "object",
"properties": {
"owner": {
"description": "Repository owner",
Expand All @@ -23,8 +24,7 @@
"owner",
"repo",
"pullNumber"
],
"type": "object"
]
},
"name": "delete_pending_pull_request_review"
}
4 changes: 2 additions & 2 deletions pkg/github/__toolsnaps__/delete_project_item.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Delete a specific Project item for a user or org",
"inputSchema": {
"type": "object",
"properties": {
"item_id": {
"description": "The internal project item ID to delete from the project (not the issue or pull request ID).",
Expand Down Expand Up @@ -32,8 +33,7 @@
"owner",
"project_number",
"item_id"
],
"type": "object"
]
},
"name": "delete_project_item"
}
4 changes: 2 additions & 2 deletions pkg/github/__toolsnaps__/dismiss_notification.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Dismiss a notification by marking it as read or done",
"inputSchema": {
"type": "object",
"properties": {
"state": {
"description": "The new state of the notification (read/done)",
Expand All @@ -21,8 +22,7 @@
},
"required": [
"threadID"
],
"type": "object"
]
},
"name": "dismiss_notification"
}
4 changes: 2 additions & 2 deletions pkg/github/__toolsnaps__/fork_repository.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Fork a GitHub repository to your account or specified organization",
"inputSchema": {
"type": "object",
"properties": {
"organization": {
"description": "Organization to fork to",
Expand All @@ -22,8 +23,7 @@
"required": [
"owner",
"repo"
],
"type": "object"
]
},
"name": "fork_repository"
}
4 changes: 2 additions & 2 deletions pkg/github/__toolsnaps__/get_code_scanning_alert.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Get details of a specific code scanning alert in a GitHub repository.",
"inputSchema": {
"type": "object",
"properties": {
"alertNumber": {
"description": "The number of the alert.",
Expand All @@ -23,8 +24,7 @@
"owner",
"repo",
"alertNumber"
],
"type": "object"
]
},
"name": "get_code_scanning_alert"
}
4 changes: 2 additions & 2 deletions pkg/github/__toolsnaps__/get_commit.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Get details for a commit from a GitHub repository",
"inputSchema": {
"type": "object",
"properties": {
"include_diff": {
"default": true,
Expand Down Expand Up @@ -39,8 +40,7 @@
"owner",
"repo",
"sha"
],
"type": "object"
]
},
"name": "get_commit"
}
4 changes: 2 additions & 2 deletions pkg/github/__toolsnaps__/get_dependabot_alert.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"description": "Get details of a specific dependabot alert in a GitHub repository.",
"inputSchema": {
"type": "object",
"properties": {
"alertNumber": {
"description": "The number of the alert.",
Expand All @@ -23,8 +24,7 @@
"owner",
"repo",
"alertNumber"
],
"type": "object"
]
},
"name": "get_dependabot_alert"
}
Loading
Loading