Skip to content

Commit f46e1b5

Browse files
authored
Merge branch 'main' into add_adx_mcp_server
2 parents 61251ba + e65ec2d commit f46e1b5

File tree

2 files changed

+122
-1
lines changed

2 files changed

+122
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Official integrations are maintained by companies building production ready MCP
4242
- <img height="12" width="12" src="https://apify.com/favicon.ico" alt="Apify Logo" /> **[Apify](https://github.com/apify/actors-mcp-server)** - [Actors MCP Server](https://apify.com/apify/actors-mcp-server): Use 3,000+ pre-built cloud tools to extract data from websites, e-commerce, social media, search engines, maps, and more
4343
- <img height="12" width="12" src="https://axiom.co/favicon.ico" alt="Axiom Logo" /> **[Axiom](https://github.com/axiomhq/mcp-server-axiom)** - Query and analyze your Axiom logs, traces, and all other event data in natural language
4444
- <img height="12" width="12" src="https://browserbase.com/favicon.ico" alt="Browserbase Logo" /> **[Browserbase](https://github.com/browserbase/mcp-server-browserbase)** - Automate browser interactions in the cloud (e.g. web navigation, data extraction, form filling, and more)
45+
- <img height="12" width="12" src="https://clickhouse.com/favicon.ico" alt="ClickHouse Logo" /> **[ClickHouse](https://github.com/ClickHouse/mcp-clickhouse)** - Query your [ClickHouse](https://clickhouse.com/) database server.
4546
- <img height="12" width="12" src="https://cdn.simpleicons.org/cloudflare" /> **[Cloudflare](https://github.com/cloudflare/mcp-server-cloudflare)** - Deploy, configure & interrogate your resources on the Cloudflare developer platform (e.g. Workers/KV/R2/D1)
4647
- <img height="12" width="12" src="https://e2b.dev/favicon.ico" alt="E2B Logo" /> **[E2B](https://github.com/e2b-dev/mcp-server)** - Run code in secure sandboxes hosted by [E2B](https://e2b.dev)
4748
- <img height="12" width="12" src="https://esignatures.com/favicon.ico" alt="eSignatures Logo" /> **[eSignatures](https://github.com/esignaturescom/mcp-server-esignatures)** - Contract and template management for drafting, reviewing, and sending binding contracts.
@@ -69,7 +70,6 @@ Official integrations are maintained by companies building production ready MCP
6970
- <img height="12" width="12" src="https://tavily.com/favicon.ico" alt="Tavily Logo" /> **[Tavily](https://github.com/tavily-ai/tavily-mcp)** - Search engine for AI agents (search + extract) powered by [Tavily](https://tavily.com/)
7071
- <img height="12" width="12" src="https://www.tinybird.co/favicon.ico" alt="Tinybird Logo" /> **[Tinybird](https://github.com/tinybirdco/mcp-tinybird)** - Interact with Tinybird serverless ClickHouse platform
7172
- <img height="12" width="12" src="https://verodat.io/assets/favicon-16x16.png" alt="Verodat Logo" /> **[Verodat](https://github.com/Verodat/verodat-mcp-server)** - Interact with Verodat AI Ready Data platform
72-
- <img height="12" width="12" src="https://clickhouse.com/favicon.ico" alt="ClickHouse Logo" /> **[ClickHouse](https://github.com/ClickHouse/mcp-clickhouse)** - Query your [ClickHouse](https://clickhouse.com/) server.
7373

7474
### 🌎 Community Servers
7575

src/github/index.ts

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,51 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
149149
name: "get_issue",
150150
description: "Get details of a specific issue in a GitHub repository.",
151151
inputSchema: zodToJsonSchema(issues.GetIssueSchema)
152+
},
153+
{
154+
name: "get_pull_request",
155+
description: "Get details of a specific pull request",
156+
inputSchema: zodToJsonSchema(pulls.GetPullRequestSchema)
157+
},
158+
{
159+
name: "list_pull_requests",
160+
description: "List and filter repository pull requests",
161+
inputSchema: zodToJsonSchema(pulls.ListPullRequestsSchema)
162+
},
163+
{
164+
name: "create_pull_request_review",
165+
description: "Create a review on a pull request",
166+
inputSchema: zodToJsonSchema(pulls.CreatePullRequestReviewSchema)
167+
},
168+
{
169+
name: "merge_pull_request",
170+
description: "Merge a pull request",
171+
inputSchema: zodToJsonSchema(pulls.MergePullRequestSchema)
172+
},
173+
{
174+
name: "get_pull_request_files",
175+
description: "Get the list of files changed in a pull request",
176+
inputSchema: zodToJsonSchema(pulls.GetPullRequestFilesSchema)
177+
},
178+
{
179+
name: "get_pull_request_status",
180+
description: "Get the combined status of all status checks for a pull request",
181+
inputSchema: zodToJsonSchema(pulls.GetPullRequestStatusSchema)
182+
},
183+
{
184+
name: "update_pull_request_branch",
185+
description: "Update a pull request branch with the latest changes from the base branch",
186+
inputSchema: zodToJsonSchema(pulls.UpdatePullRequestBranchSchema)
187+
},
188+
{
189+
name: "get_pull_request_comments",
190+
description: "Get the review comments on a pull request",
191+
inputSchema: zodToJsonSchema(pulls.GetPullRequestCommentsSchema)
192+
},
193+
{
194+
name: "get_pull_request_reviews",
195+
description: "Get the reviews on a pull request",
196+
inputSchema: zodToJsonSchema(pulls.GetPullRequestReviewsSchema)
152197
}
153198
],
154199
};
@@ -335,6 +380,82 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
335380
};
336381
}
337382

383+
case "get_pull_request": {
384+
const args = pulls.GetPullRequestSchema.parse(request.params.arguments);
385+
const pullRequest = await pulls.getPullRequest(args.owner, args.repo, args.pull_number);
386+
return {
387+
content: [{ type: "text", text: JSON.stringify(pullRequest, null, 2) }],
388+
};
389+
}
390+
391+
case "list_pull_requests": {
392+
const args = pulls.ListPullRequestsSchema.parse(request.params.arguments);
393+
const { owner, repo, ...options } = args;
394+
const pullRequests = await pulls.listPullRequests(owner, repo, options);
395+
return {
396+
content: [{ type: "text", text: JSON.stringify(pullRequests, null, 2) }],
397+
};
398+
}
399+
400+
case "create_pull_request_review": {
401+
const args = pulls.CreatePullRequestReviewSchema.parse(request.params.arguments);
402+
const { owner, repo, pull_number, ...options } = args;
403+
const review = await pulls.createPullRequestReview(owner, repo, pull_number, options);
404+
return {
405+
content: [{ type: "text", text: JSON.stringify(review, null, 2) }],
406+
};
407+
}
408+
409+
case "merge_pull_request": {
410+
const args = pulls.MergePullRequestSchema.parse(request.params.arguments);
411+
const { owner, repo, pull_number, ...options } = args;
412+
const result = await pulls.mergePullRequest(owner, repo, pull_number, options);
413+
return {
414+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
415+
};
416+
}
417+
418+
case "get_pull_request_files": {
419+
const args = pulls.GetPullRequestFilesSchema.parse(request.params.arguments);
420+
const files = await pulls.getPullRequestFiles(args.owner, args.repo, args.pull_number);
421+
return {
422+
content: [{ type: "text", text: JSON.stringify(files, null, 2) }],
423+
};
424+
}
425+
426+
case "get_pull_request_status": {
427+
const args = pulls.GetPullRequestStatusSchema.parse(request.params.arguments);
428+
const status = await pulls.getPullRequestStatus(args.owner, args.repo, args.pull_number);
429+
return {
430+
content: [{ type: "text", text: JSON.stringify(status, null, 2) }],
431+
};
432+
}
433+
434+
case "update_pull_request_branch": {
435+
const args = pulls.UpdatePullRequestBranchSchema.parse(request.params.arguments);
436+
const { owner, repo, pull_number, expected_head_sha } = args;
437+
await pulls.updatePullRequestBranch(owner, repo, pull_number, expected_head_sha);
438+
return {
439+
content: [{ type: "text", text: JSON.stringify({ success: true }, null, 2) }],
440+
};
441+
}
442+
443+
case "get_pull_request_comments": {
444+
const args = pulls.GetPullRequestCommentsSchema.parse(request.params.arguments);
445+
const comments = await pulls.getPullRequestComments(args.owner, args.repo, args.pull_number);
446+
return {
447+
content: [{ type: "text", text: JSON.stringify(comments, null, 2) }],
448+
};
449+
}
450+
451+
case "get_pull_request_reviews": {
452+
const args = pulls.GetPullRequestReviewsSchema.parse(request.params.arguments);
453+
const reviews = await pulls.getPullRequestReviews(args.owner, args.repo, args.pull_number);
454+
return {
455+
content: [{ type: "text", text: JSON.stringify(reviews, null, 2) }],
456+
};
457+
}
458+
338459
default:
339460
throw new Error(`Unknown tool: ${request.params.name}`);
340461
}

0 commit comments

Comments
 (0)