Add MCP docs server to Claude Code GitHub Action
- Add .mcp.json with mcp-docs HTTP server configuration - Update claude.yml to load MCP server config with --mcp-config - Change --system-prompt to --append-system-prompt to preserve defaults - Extend instructions to use mcp-docs for MCP-related work 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
90369c8ad9
commit
57039bedf1
2 changed files with 10 additions and 1 deletions
3
.github/workflows/claude.yml
vendored
3
.github/workflows/claude.yml
vendored
|
|
@ -44,5 +44,6 @@ jobs:
|
||||||
assignee_trigger: "claude"
|
assignee_trigger: "claude"
|
||||||
|
|
||||||
claude_args: |
|
claude_args: |
|
||||||
|
--mcp-config .mcp.json
|
||||||
--allowedTools Bash
|
--allowedTools Bash
|
||||||
--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."
|
--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."
|
||||||
|
|
|
||||||
8
.mcp.json
Normal file
8
.mcp.json
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"mcpServers": {
|
||||||
|
"mcp-docs": {
|
||||||
|
"type": "http",
|
||||||
|
"url": "https://modelcontextprotocol.io/mcp"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue