Add MCP docs server to Claude Code GitHub Action
Summary
Add MCP docs server configuration to the Claude Code GitHub Action, enabling Claude to look up the latest MCP protocol documentation and schema references when working on MCP-related code or reviewing changes.
Type of Change
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Documentation update
- [ ] Refactoring (no functional changes)
- [ ] Test updates
- [x] Build/CI improvements
Changes Made
-
Added
.mcp.json- New MCP server configuration file at project root with the mcp-docs HTTP server:{ "mcpServers": { "mcp-docs": { "type": "http", "url": "https://modelcontextprotocol.io/mcp" } } } -
Updated
.github/workflows/claude.yml:- Added
--mcp-config .mcp.jsonto load the MCP server configuration - Changed
--system-promptto--append-system-promptto preserve Claude Code's default capabilities - Extended instructions to tell Claude to use the mcp-docs server for MCP-related work and reference the schema at https://github.com/modelcontextprotocol/modelcontextprotocol/tree/main/schema
- Added
Related Issues
N/A
Testing
Have not tested this yet.
- [ ] Tested in UI mode
- [ ] Tested in CLI mode
- [ ] Tested with STDIO transport
- [ ] Tested with SSE transport
- [ ] Tested with Streamable HTTP transport
- [ ] Added/updated automated tests
- [ ] Manual testing performed
Test Results and/or Instructions
This is a CI configuration change. To verify:
- Trigger the Claude Code action on a PR or issue mentioning
@claudewith an MCP-related question - Verify Claude uses the mcp-docs MCP server to look up documentation
Checklist
- [x] Code follows the style guidelines (ran
npm run prettier-fix) - [x] Self-review completed
- [x] Code is commented where necessary
- [x] Documentation updated (README, comments, etc.)
Breaking Changes
None
Additional Context
The .mcp.json file also benefits local Claude Code CLI users who clone the repository, as it will automatically configure the mcp-docs server for them.
Converting to draft until I fix a couple issues with allowed tools config
👍 I've been doing this for awhile and it works well.
I had noticed the use of --system-prompt vs. --append-system-prompt, and wondered if that had been getting better "review" results by removing Claude's focus on software engineering.