tzachbon avatar

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-code

Installs 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
1inference-sh avatartwitter-automationinference-sh/skillsAutomate Twitter/X with posting, engagement, and user management via inference.sh CLI. Apps: x/post-tweet, x/post-create (with media), x/post-like, x/post-retwe1.7Mskills.sh installs
2heygen-com avatarhyperframes-animationheygen-com/hyperframesAll animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven 1Mskills.sh installs
3mattpocock avatarresearchmattpocock/skillsInvestigate a question against high-trust primary sources and capture the findings as a Markdown file in the repo. Use when the user wants a topic researched, d786.7Kskills.sh installs
4microsoft avatarazure-storagemicrosoft/azure-skillsAzure Storage Services including Blob Storage, File Shares, Queue Storage, Table Storage, and Data Lake. Answers questions about storage access tiers (hot, cool659Kskills.sh installs
5microsoft avatarazure-kustomicrosoft/azure-skillsQuery and analyze data in Azure Data Explorer (Kusto/ADX) using KQL for log analytics, telemetry, and time series analysis. WHEN: KQL queries, Kusto database qu658Kskills.sh installs
6microsoft avatarazure-cloud-migratemicrosoft/azure-skillsAssess and migrate cross-cloud workloads to Azure with reports and code conversion. Supports Lambda→Functions, Beanstalk/Heroku/App Engine→App Service, Fargate/606.9Kskills.sh installs