
MCP Integration
This handles MCP server integration for Claude Code plugins, covering all four connection types: stdio for local processes, SSE for OAuth-enabled cloud services, HTTP for REST APIs, and WebSocket for real-time stuff. The skill walks through both configuration approaches (dedicated .mcp.json versus inline in plugin.json) and explains the automatic tool naming scheme that prefixes everything with mcp__plugin_name_server__toolname. Most useful when you're bundling external service access into a plugin and need to understand how authentication flows work, how to use environment variable expansion with CLAUDE_PLUGIN_ROOT, or how to pre-allow specific MCP tools in command frontmatter. The security section on token management and permission scoping is worth reading even if you've used MCP before.
- GitHub stars
- 340
- last updated
- May 19, 2026
Install
$ npx -y skills add tzachbon/smart-ralph --skill 'MCP Integration' --agent claude-codeInstalls into .claude/skills of the current project.
Files
MCP Integration for Claude Code Plugins
Overview
Model Context Protocol (MCP) enables Claude Code plugins to integrate with external services and APIs by providing structured tool access. Use MCP integration to expose external service capabilities as tools within Claude Code.
Key capabilities:
- Connect to external services (databases, APIs, file systems)
- Provide 10+ related tools from a single service
- Handle OAuth and complex authentication flows
- Bundle MCP servers with plugins for automatic setup
MCP Server Configuration Methods
Plugins can bundle MCP servers in two ways:
Method 1: Dedicated .mcp.json (Recommended)
Create .mcp.json at plugin root:
{
"database-tools": {
"command": "${CLAUDE_PLUGIN_ROOT}/servers/db-server",
"args": ["--config", "${CLAUDE_PLUGIN_ROOT}/config.json"],
"env": {
"DB_URL": "${DB_URL}"
}
}
}
Benefits:
- Clear separation of concerns
- Easier to maintain
- Better for multiple servers
Method 2: Inline in plugin.json
Add mcpServers field to plugin.json:
Sponsors
Details
- Repository
- github.com/tzachbon/smart-ralph
- Categories
- Backend & APIs, AI & Agent Building
- License
- MIT
- First seen
- Jun 11, 2026
More from tzachbon/smart-ralph
All 28- Plugin Settings
- Plugin Structure
- Ralph Specum
- Ralph Specum Cancel
- Ralph Specum Design
- Ralph Specum Feedback
- Ralph Specum Help
- Ralph Specum Implement
- Ralph Specum Index
- Ralph Specum Refactor
- Ralph Specum Requirements
- Ralph Specum Research
- Ralph Specum Start
- Ralph Specum Status
- Ralph Specum Switch
- Ralph Specum Tasks
- Ralph Specum Triage
- Reality Verification
- Skill Development
- Smart Ralph
- Spec Workflow
- Speckit Workflow
- Command Development
- Communication Style