{"title":"MCP 常见问题","slug":"mcp-faq","category":"faq","summary":"关于 MCP 集成的常见问题 — 工具、传输、故障排查。","audience":["human","llm"],"tags":["faq","mcp","troubleshooting"],"difficulty":"beginner","updated":"2026-06-27","word_count":273,"read_minutes":1,"lang":"zh","translated":true,"requested_lang":"zh","content_markdown":"\n# MCP 常见问题\n\n关于 Synapse MCP Server 的常见问题。\n\n## MCP 是什么？\n\nMCP（Model Context Protocol）是 Anthropic 推出的开放标准，用于 LLM 与工具的集成。无需把 API 文档粘到 prompt 里，而是将工具注册到 MCP Server，LLM 像调用原生函数一样调用它们。\n\n参见 [MCP 是什么？](/docs/mcp/what-is-mcp)。\n\n## Synapse MCP 暴露多少个工具？\n\n跨 12 个分类共 **79 个工具**：memory、chat、scheduler、tasks、scripts、computers、push、user、utility、visualization、sharing、webhooks、browser。\n\n完整列表请见 [MCP 是什么？](/docs/mcp/what-is-mcp)。\n\n## 支持哪些 MCP 客户端？\n\n- Claude Desktop（macOS、Windows）\n- Claude Code（终端）\n- Cursor（IDE）\n- Continue.dev（VS Code、JetBrains）\n- Cline（VS Code）\n- 任何兼容 MCP 的客户端\n\n配置示例请见 [Claude Desktop 配置](/docs/mcp/claude-desktop)。\n\n## 支持哪些传输方式？\n\n1. **stdio**（本地，桌面端推荐）\n2. **HTTP/SSE**（远程，多租户）\n3. **WebSocket**（移动端，高吞吐）\n\n## 如何配置 Claude Desktop？\n\n编辑 `claude_desktop_config.json`：\n\n```json\n{\n  \"mcpServers\": {\n    \"synapse\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"synapse-mcp-api@latest\"],\n      \"env\": {\n        \"SYNAPSE_MIND_KEY\": \"mk_YOUR_KEY\",\n        \"SYNAPSE_URL\": \"https://synapse.schaefer.zone\"\n      }\n    }\n  }\n}\n```\n\n参见 [Claude Desktop 配置](/docs/mcp/claude-desktop)。\n\n## 为什么 Claude Desktop 中看不到工具？\n\n1. **完全重启 Claude Desktop**（macOS 上 Cmd+Q）\n2. **检查配置文件是否为有效 JSON**\n3. **确认已安装 Node.js 18+**\n4. **查看 MCP 日志**：`~/Library/Logs/Claude/mcp.log`\n\n参见 [MCP 故障排查](/docs/mcp/troubleshooting)。\n\n## 如何切换到另一个 Mind？\n\n在 MCP 配置中修改 `SYNAPSE_MIND_KEY` 并重启客户端。\n\n若要同时使用多个 Mind，可用不同的 Mind Key 运行多个 MCP Server 实例。\n\n## 能限制暴露的工具吗？\n\n可以，使用 **工具配置文件**：\n\n- `minimal`：8 个组合工具（约 500 tokens）\n- `standard`：25 个工具（约 2,500 tokens）\n- `full`：119 个工具（约 8,250 tokens，默认）\n\n通过 `MCP_PROFILE` 环境变量或 `Mcp-Tool-Profile` 头设置。\n\n## 如何调试 MCP 问题？\n\n1. **手动运行 MCP Server**：`npx -y synapse-mcp-api@latest`\n2. **查看客户端日志**（因客户端而异）\n3. **验证 Mind Key 是否有效**：`curl -H \"Authorization: Bearer mk_...\" .../memory/recall`\n4. **检查 Synapse 健康**：`curl https://synapse.schaefer.zone/health`\n\n参见 [MCP 故障排查](/docs/mcp/troubleshooting)。\n\n## MCP Server 是免费的吗？\n\n是的。npm 包 `synapse-mcp-api` 是开源的。托管在 `synapse-mcp.schaefer.zone` 的 MCP Server 供公众免费使用。\n\n## 可以自托管 MCP Server 吗？\n\n可以：\n\n```bash\nnpm install -g synapse-mcp-api\nSYNAPSE_URL=https://your-synapse-instance.com \\\nSYNAPSE_MIND_KEY=mk_... \\\nsynapse-mcp-api\n```\n\n## MCP 与直接 API 调用有何不同？\n\n| 方面 | 直接 API | MCP |\n|--------|-----------|-----|\n| LLM 需要知道 | URL、请求头、认证 | 仅工具名 |\n| 认证处理 | 手动 | 自动（环境变量） |\n| 工具发现 | 读 /endpoints | 通过 MCP 协议自动 |\n| 错误处理 | 手动 | 标准化 |\n| 适合场景 | 自定义集成 | LLM Agent |\n\n## 可以构建自己的 MCP 客户端吗？\n\n可以。使用官方 MCP SDK：\n\n- TypeScript：`@modelcontextprotocol/sdk`\n- Python：`mcp`\n\n参见 [自定义 MCP 客户端](/docs/mcp/custom-client)。\n\n## 如何报告 MCP Bug？\n\n提交 issue：<https://gitlab.com/schaefer-services/synapse-mcp/-/issues>\n\n请包含：\n\n- MCP Server 版本\n- 客户端名称与版本\n- 操作系统\n- 相关日志\n- 复现步骤\n\n## 下一步\n\n- [MCP 是什么？](/docs/mcp/what-is-mcp)\n- [Claude Desktop 配置](/docs/mcp/claude-desktop)\n- [MCP 故障排查](/docs/mcp/troubleshooting)\n","content_html":"<h1>MCP 常见问题</h1>\n<p>关于 Synapse MCP Server 的常见问题。</p>\n<h2>MCP 是什么？</h2>\n<p>MCP（Model Context Protocol）是 Anthropic 推出的开放标准，用于 LLM 与工具的集成。无需把 API 文档粘到 prompt 里，而是将工具注册到 MCP Server，LLM 像调用原生函数一样调用它们。</p>\n<p>参见 <a href=\"/docs/mcp/what-is-mcp\">MCP 是什么？</a>。</p>\n<h2>Synapse MCP 暴露多少个工具？</h2>\n<p>跨 12 个分类共 <strong>79 个工具</strong>：memory、chat、scheduler、tasks、scripts、computers、push、user、utility、visualization、sharing、webhooks、browser。</p>\n<p>完整列表请见 <a href=\"/docs/mcp/what-is-mcp\">MCP 是什么？</a>。</p>\n<h2>支持哪些 MCP 客户端？</h2>\n<ul>\n<li>Claude Desktop（macOS、Windows）</li>\n<li>Claude Code（终端）</li>\n<li>Cursor（IDE）</li>\n<li>Continue.dev（VS Code、JetBrains）</li>\n<li>Cline（VS Code）</li>\n<li>任何兼容 MCP 的客户端</li>\n</ul>\n<p>配置示例请见 <a href=\"/docs/mcp/claude-desktop\">Claude Desktop 配置</a>。</p>\n<h2>支持哪些传输方式？</h2>\n<ol>\n<li><strong>stdio</strong>（本地，桌面端推荐）</li>\n<li><strong>HTTP/SSE</strong>（远程，多租户）</li>\n<li><strong>WebSocket</strong>（移动端，高吞吐）</li>\n</ol>\n<h2>如何配置 Claude Desktop？</h2>\n<p>编辑 <code>claude_desktop_config.json</code>：</p>\n<pre><code class=\"hljs language-json\"><span class=\"hljs-punctuation\">{</span>\n  <span class=\"hljs-attr\">&quot;mcpServers&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">{</span>\n    <span class=\"hljs-attr\">&quot;synapse&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">{</span>\n      <span class=\"hljs-attr\">&quot;command&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;npx&quot;</span><span class=\"hljs-punctuation\">,</span>\n      <span class=\"hljs-attr\">&quot;args&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">[</span><span class=\"hljs-string\">&quot;-y&quot;</span><span class=\"hljs-punctuation\">,</span> <span class=\"hljs-string\">&quot;synapse-mcp-api@latest&quot;</span><span class=\"hljs-punctuation\">]</span><span class=\"hljs-punctuation\">,</span>\n      <span class=\"hljs-attr\">&quot;env&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">{</span>\n        <span class=\"hljs-attr\">&quot;SYNAPSE_MIND_KEY&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;mk_YOUR_KEY&quot;</span><span class=\"hljs-punctuation\">,</span>\n        <span class=\"hljs-attr\">&quot;SYNAPSE_URL&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;https://synapse.schaefer.zone&quot;</span>\n      <span class=\"hljs-punctuation\">}</span>\n    <span class=\"hljs-punctuation\">}</span>\n  <span class=\"hljs-punctuation\">}</span>\n<span class=\"hljs-punctuation\">}</span></code></pre><p>参见 <a href=\"/docs/mcp/claude-desktop\">Claude Desktop 配置</a>。</p>\n<h2>为什么 Claude Desktop 中看不到工具？</h2>\n<ol>\n<li><strong>完全重启 Claude Desktop</strong>（macOS 上 Cmd+Q）</li>\n<li><strong>检查配置文件是否为有效 JSON</strong></li>\n<li><strong>确认已安装 Node.js 18+</strong></li>\n<li><strong>查看 MCP 日志</strong>：<code>~/Library/Logs/Claude/mcp.log</code></li>\n</ol>\n<p>参见 <a href=\"/docs/mcp/troubleshooting\">MCP 故障排查</a>。</p>\n<h2>如何切换到另一个 Mind？</h2>\n<p>在 MCP 配置中修改 <code>SYNAPSE_MIND_KEY</code> 并重启客户端。</p>\n<p>若要同时使用多个 Mind，可用不同的 Mind Key 运行多个 MCP Server 实例。</p>\n<h2>能限制暴露的工具吗？</h2>\n<p>可以，使用 <strong>工具配置文件</strong>：</p>\n<ul>\n<li><code>minimal</code>：8 个组合工具（约 500 tokens）</li>\n<li><code>standard</code>：25 个工具（约 2,500 tokens）</li>\n<li><code>full</code>：119 个工具（约 8,250 tokens，默认）</li>\n</ul>\n<p>通过 <code>MCP_PROFILE</code> 环境变量或 <code>Mcp-Tool-Profile</code> 头设置。</p>\n<h2>如何调试 MCP 问题？</h2>\n<ol>\n<li><strong>手动运行 MCP Server</strong>：<code>npx -y synapse-mcp-api@latest</code></li>\n<li><strong>查看客户端日志</strong>（因客户端而异）</li>\n<li><strong>验证 Mind Key 是否有效</strong>：<code>curl -H &quot;Authorization: Bearer mk_...&quot; .../memory/recall</code></li>\n<li><strong>检查 Synapse 健康</strong>：<code>curl https://synapse.schaefer.zone/health</code></li>\n</ol>\n<p>参见 <a href=\"/docs/mcp/troubleshooting\">MCP 故障排查</a>。</p>\n<h2>MCP Server 是免费的吗？</h2>\n<p>是的。npm 包 <code>synapse-mcp-api</code> 是开源的。托管在 <code>synapse-mcp.schaefer.zone</code> 的 MCP Server 供公众免费使用。</p>\n<h2>可以自托管 MCP Server 吗？</h2>\n<p>可以：</p>\n<pre><code class=\"hljs language-bash\">npm install -g synapse-mcp-api\nSYNAPSE_URL=https://your-synapse-instance.com \\\nSYNAPSE_MIND_KEY=mk_... \\\nsynapse-mcp-api</code></pre><h2>MCP 与直接 API 调用有何不同？</h2>\n<table>\n<thead>\n<tr>\n<th>方面</th>\n<th>直接 API</th>\n<th>MCP</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>LLM 需要知道</td>\n<td>URL、请求头、认证</td>\n<td>仅工具名</td>\n</tr>\n<tr>\n<td>认证处理</td>\n<td>手动</td>\n<td>自动（环境变量）</td>\n</tr>\n<tr>\n<td>工具发现</td>\n<td>读 /endpoints</td>\n<td>通过 MCP 协议自动</td>\n</tr>\n<tr>\n<td>错误处理</td>\n<td>手动</td>\n<td>标准化</td>\n</tr>\n<tr>\n<td>适合场景</td>\n<td>自定义集成</td>\n<td>LLM Agent</td>\n</tr>\n</tbody></table>\n<h2>可以构建自己的 MCP 客户端吗？</h2>\n<p>可以。使用官方 MCP SDK：</p>\n<ul>\n<li>TypeScript：<code>@modelcontextprotocol/sdk</code></li>\n<li>Python：<code>mcp</code></li>\n</ul>\n<p>参见 <a href=\"/docs/mcp/custom-client\">自定义 MCP 客户端</a>。</p>\n<h2>如何报告 MCP Bug？</h2>\n<p>提交 issue：<a href=\"https://gitlab.com/schaefer-services/synapse-mcp/-/issues\">https://gitlab.com/schaefer-services/synapse-mcp/-/issues</a></p>\n<p>请包含：</p>\n<ul>\n<li>MCP Server 版本</li>\n<li>客户端名称与版本</li>\n<li>操作系统</li>\n<li>相关日志</li>\n<li>复现步骤</li>\n</ul>\n<h2>下一步</h2>\n<ul>\n<li><a href=\"/docs/mcp/what-is-mcp\">MCP 是什么？</a></li>\n<li><a href=\"/docs/mcp/claude-desktop\">Claude Desktop 配置</a></li>\n<li><a href=\"/docs/mcp/troubleshooting\">MCP 故障排查</a></li>\n</ul>\n","urls":{"html":"/docs/faq/mcp-faq","text":"/docs/faq/mcp-faq?format=text","json":"/docs/faq/mcp-faq?format=json","llm":"/docs/faq/mcp-faq?format=llm"},"translations_available":["en","zh","hi","es","fr","ar","pt","ru","ja","de","it","ko","nl","pl","tr","sv","vi","th","id","uk"]}