SKILL

MCP Integration

适用于添加或集成 MCP 服务器、在插件中配置 MCP、使用 .mcp.json、设置 Model Context Protocol、连接外部服务,以及讨论 ${CLAUDE_PLUGIN_ROOT} 与 MCP,或 SSE、stdio、HTTP、WebSocket 等服务器类型的情形。介绍如何将 MCP 服务器集成到 Claude Code 插件,以连接外部工具和服务。

译文已校对
查看英文原文

This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context Protocol", "connect external service", mentions "${CLAUDE_PLUGIN_ROOT} with MCP", or discusses MCP server types (SSE, stdio, HTTP, WebSocket). Provides comprehensive guidance for integrating Model Context Protocol servers into Claude Code plugins for external tool and service integration.

适用对象:AI 与流程自动化。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • MCP Integration for Claude Code Plugins
  • Overview
  • MCP Server Configuration Methods
  • Method 1: Dedicated .mcp.json (Recommended)
  • Method 2: Inline in plugin.json
  • MCP Server Types
  • stdio (Local Process)
  • SSE (Server-Sent Events)

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 Plugins can bundle MCP servers in two ways: Create .mcp.json at plugin root: Benefits: Clear separation of concerns Easier to maintain Better for multiple servers Add mcpServers field to plugin.json: Benefits: Single configuration file Good for simple single-server plugins Execute local MCP servers as child processes. Best for local tools and custom servers. Configuration: Use cases: File system access Local database connections Custom MCP servers NPM-packaged MCP servers Process management: Claude Code spawns and manages the process Communicates via stdin/stdout Terminates when Claude Code exits Connect to hosted MCP servers with OAuth support. Best for cloud services. Configuration: Use cases: Official hosted MCP servers (Asana, GitHub

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
davila7/claude-code-templates
源文件
cli-tool/components/skills/development/mcp-integration/SKILL.md
固定版本
21be197f100a12b8d0dd9a211cc244c8179f84d3
阅读完整原作者说明 ↗

准备条件

  • 本条仅收录原作者的技能元数据;请阅读完整说明,确认依赖、许可与使用条件。

第一件可以尝试的小事

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

对应 AI 工具说明

作者有说明不等于本站实机验证。没有证据时,不自动标为兼容、安全或免费。

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:davila7/claude-code-templates · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T14:01:44.515Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

MIT。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。