From 232f2447e565d0e4c91499873aa0260b20b0c833 Mon Sep 17 00:00:00 2001 From: olaservo Date: Tue, 25 Nov 2025 08:30:11 -0700 Subject: [PATCH 1/2] Add MCP docs server to Claude Code GitHub Action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add .mcp.json with mcp-docs HTTP server configuration - Update claude.yml to use --mcp-config and --append-system-prompt - Add instructions for Claude to use MCP docs and schema references 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/claude.yml | 3 ++- .mcp.json | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .mcp.json diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 612988642..1acced59e 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -80,5 +80,6 @@ jobs: assignee_trigger: "claude" claude_args: | + --mcp-config .mcp.json --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
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
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." diff --git a/.mcp.json b/.mcp.json new file mode 100644 index 000000000..5f68642aa --- /dev/null +++ b/.mcp.json @@ -0,0 +1,8 @@ +{ + "mcpServers": { + "mcp-docs": { + "type": "http", + "url": "https://modelcontextprotocol.io/mcp" + } + } +} From 4835b7392e90bc74cec69eb9f816a40994d6ce13 Mon Sep 17 00:00:00 2001 From: olaservo Date: Sun, 18 Jan 2026 20:26:00 -0700 Subject: [PATCH 2/2] Fix allowedTools config to include mcp-docs MCP server tools Add mcp__mcp-docs to allowedTools so Claude can actually use the MCP documentation server when reviewing MCP-related code. Co-Authored-By: Claude Opus 4.5 --- .github/workflows/claude.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 1acced59e..23a66f869 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -81,5 +81,5 @@ jobs: claude_args: | --mcp-config .mcp.json - --allowedTools Bash + --allowedTools "Bash,mcp__mcp-docs" --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
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."