Skip to content

Add support for running an Actions workflow #269

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
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
Prev Previous commit
Next Next commit
Merge branch 'main' into joshmgross/run-workflow
  • Loading branch information
joshmgross committed Apr 15, 2025
commit 1c6285c87e1457fe9f0060cf5620e52b94ec2d38
64 changes: 0 additions & 64 deletions pkg/github/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,70 +26,6 @@ func NewServer(version string, opts ...server.ServerOption) *server.MCPServer {
version,
opts...,
)

// Add GitHub Resources
s.AddResourceTemplate(GetRepositoryResourceContent(getClient, t))
s.AddResourceTemplate(GetRepositoryResourceBranchContent(getClient, t))
s.AddResourceTemplate(GetRepositoryResourceCommitContent(getClient, t))
s.AddResourceTemplate(GetRepositoryResourceTagContent(getClient, t))
s.AddResourceTemplate(GetRepositoryResourcePrContent(getClient, t))

// Add GitHub tools - Issues
s.AddTool(GetIssue(getClient, t))
s.AddTool(SearchIssues(getClient, t))
s.AddTool(ListIssues(getClient, t))
s.AddTool(GetIssueComments(getClient, t))
if !readOnly {
s.AddTool(CreateIssue(getClient, t))
s.AddTool(AddIssueComment(getClient, t))
s.AddTool(UpdateIssue(getClient, t))
}

// Add GitHub tools - Pull Requests
s.AddTool(GetPullRequest(getClient, t))
s.AddTool(ListPullRequests(getClient, t))
s.AddTool(GetPullRequestFiles(getClient, t))
s.AddTool(GetPullRequestStatus(getClient, t))
s.AddTool(GetPullRequestComments(getClient, t))
s.AddTool(GetPullRequestReviews(getClient, t))
if !readOnly {
s.AddTool(MergePullRequest(getClient, t))
s.AddTool(UpdatePullRequestBranch(getClient, t))
s.AddTool(CreatePullRequestReview(getClient, t))
s.AddTool(CreatePullRequest(getClient, t))
s.AddTool(UpdatePullRequest(getClient, t))
s.AddTool(AddPullRequestReviewComment(getClient, t))
}

// Add GitHub tools - Repositories
s.AddTool(SearchRepositories(getClient, t))
s.AddTool(GetFileContents(getClient, t))
s.AddTool(GetCommit(getClient, t))
s.AddTool(ListCommits(getClient, t))
s.AddTool(ListBranches(getClient, t))
if !readOnly {
s.AddTool(CreateOrUpdateFile(getClient, t))
s.AddTool(CreateRepository(getClient, t))
s.AddTool(ForkRepository(getClient, t))
s.AddTool(CreateBranch(getClient, t))
s.AddTool(PushFiles(getClient, t))
}

// Add GitHub tools - Actions
if !readOnly {
s.AddTool(RunWorkflow(getClient, t))
}

// Add GitHub tools - Search
s.AddTool(SearchCode(getClient, t))
s.AddTool(SearchUsers(getClient, t))

// Add GitHub tools - Users
s.AddTool(GetMe(getClient, t))

// Add GitHub tools - Code Scanning
s.AddTool(GetCodeScanningAlert(getClient, t))
s.AddTool(ListCodeScanningAlerts(getClient, t))
return s
}

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.