mcp-integration

Connect MCP servers to Claude Code plugins via .mcp.json or plugin.json.

Updated Dec 21, 2025
One-click install
npx skills add https://github.com/s-hiraoku/claude-code-harnesses-factory --skill mcp-integration-s-hiraoku
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-integration
Source: https://github.com/s-hiraoku/claude-code-harnesses-factory/tree/main/.claude/skills/mcp-integration
Command: npx skills add https://github.com/s-hiraoku/claude-code-harnesses-factory --skill mcp-integration-s-hiraoku

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides connecting MCP servers to Claude Code plugins to expose external service capabilities as tools.

Core Features & Use Cases

  • Dedicated .mcp.json (Recommended): Centralized MCP configuration.
  • Inline in plugin.json: Portability within plugin definitions.
  • Server Types: stdio, HTTP, SSE, WebSocket with examples.
  • Environment & Portability: Environment variables and CLAUDE_PLUGIN_ROOT usage for portability and security.

Quick Start

Configure an MCP server using a dedicated .mcp.json or plugin.json entry and verify with /mcp commands.

Frequently Asked Questions about mcp-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect MCP servers to Claude Code plugins?

Connect MCP servers to Claude Code plugins by creating a .mcp.json configuration file or adding MCP settings to plugin.json. Define the server type (stdio, HTTP, SSE, or WebSocket), authentication credentials, and environment variables, then verify the connection using /mcp commands to expose external service capabilities as tools.

What MCP server types does Claude Code support?

Claude Code supports stdio, HTTP, SSE, and WebSocket MCP server deployments. Each type enables different communication patterns for integrating external services; stdio and HTTP work for local or remote servers, while SSE and WebSocket provide streaming and persistent connections for real-time tool access.

How do I securely manage credentials and tokens in MCP configurations?

Manage credentials securely by storing authentication tokens and API keys in environment variables, then referencing them in .mcp.json or plugin.json using variable expansion. Use HTTPS for HTTP servers and WSS for WebSocket to ensure encrypted communications during external service integration.

Can I make MCP plugin configurations portable across environments?

Yes, make MCP configurations portable by using environment variables and the CLAUDE_PLUGIN_ROOT variable in your .mcp.json or plugin.json. This approach allows the same configuration to work across development, testing, and deployment environments without hardcoding paths or credentials.

What permissions and validation steps should I document for MCP tools?

Document explicit tool permissions, required environment variables, and local testing procedures via /mcp commands in your MCP configuration. This ensures users understand which external services each tool accesses and can verify connectivity before deploying the plugin to production.

Should I use a dedicated .mcp.json file or configure MCP inline in plugin.json?

Use a dedicated .mcp.json for centralized MCP server configuration and easier maintenance. Configure MCP inline in plugin.json only when portability within a single plugin definition is prioritized; the dedicated file approach scales better for multiple or complex server setups.