Skip to content

Commit 6dc5d1a

Browse files
authored
Merge pull request modelcontextprotocol#937 from olaservo/add-mcp-docs-server-to-claude
Add MCP docs server to Claude Code GitHub Action
2 parents da684d0 + 6247e67 commit 6dc5d1a

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/claude.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,6 @@ jobs:
8080
assignee_trigger: "claude"
8181

8282
claude_args: |
83-
--allowedTools Bash
84-
--system-prompt "If posting a comment to GitHub, give a concise summary of the comment at the top and put all the details in a <details> block."
83+
--mcp-config .mcp.json
84+
--allowedTools "Bash,mcp__mcp-docs"
85+
--append-system-prompt "If posting a comment to GitHub, give a concise summary of the comment at the top and put all the details in a <details> block. When working on MCP-related code or reviewing MCP-related changes, use the mcp-docs MCP server to look up the latest protocol documentation. For schema details, reference https://github.com/modelcontextprotocol/modelcontextprotocol/tree/main/schema which contains versioned schemas in JSON (schema.json) and TypeScript (schema.ts) formats."

.mcp.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"mcpServers": {
3+
"mcp-docs": {
4+
"type": "http",
5+
"url": "https://modelcontextprotocol.io/mcp"
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)