{"title":"Continue.dev 中的 MCP","slug":"continue","category":"mcp","summary":"把 Synapse 接入 Continue.dev — VS Code 与 JetBrains 的开源 AI 编码助手。","audience":["human"],"tags":["mcp","continue","vscode","jetbrains"],"difficulty":"intermediate","updated":"2026-06-27","word_count":152,"read_minutes":1,"lang":"zh","translated":true,"requested_lang":"zh","content_markdown":"\n# Continue.dev 中的 MCP\n\nContinue.dev 是面向 VS Code 与 JetBrains IDE 的开源 AI 编码助手。借助 Synapse MCP，Continue 在会话之间获得持久化记忆。\n\n## 前置条件\n\n- VS Code 或 JetBrains IDE\n- 已安装 Continue.dev 扩展\n- Node.js 18+\n- 你的 Synapse Mind Key\n\n## 配置\n\n### 第 1 步：打开 Continue 配置\n\n在 VS Code 或 JetBrains 中：\n\n1. 打开 Continue 扩展侧边栏\n2. 点击齿轮图标 → “Open config.json”\n\n或直接编辑 `~/.continue/config.json`。\n\n### 第 2 步：添加 Synapse MCP Server\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_MIND_KEY_HERE\",\n        \"SYNAPSE_URL\": \"https://synapse.schaefer.zone\"\n      }\n    }\n  }\n}\n```\n\n### 第 3 步：重新加载 Continue\n\n重新加载 VS Code 窗口（Cmd+Shift+P → “Reload Window”），或重启 IDE。\n\n## 验证可用\n\n在 Continue 聊天中：\n\n```\nrecall all my memories\n```\n\nContinue 应调用 `memory_recall` 并返回你已存储的记忆。\n\n## 常见模式\n\n### 项目上下文\n\n```\nrecalling project context for this codebase\n```\n\nContinue 调用 `memory_recall`，查看你的项目记忆，并从中断处继续工作。\n\n### 代码审查模式\n\n```\nsearch memories: \"code review checklist\"\n```\n\nContinue 找出你存储的代码审查模式并应用它们。\n\n### 结对编程记忆\n\n```\nstore this: \"User prefers functional style over OOP for this project.\nDecided 2026-06-27.\"\n```\n\nContinue 把它存为 `preference` 记忆。\n\n## 故障排查\n\n### MCP Server 未连接\n\n1. 检查 `~/.continue/config.json` 是否为有效 JSON\n2. 验证 Node.js：`node --version`\n3. 查看 Continue 的输出面板（View → Output → Continue）\n4. 重启 IDE\n\n### 工具未出现\n\n- 确认 Continue 版本支持 MCP（≥ 0.9.x）\n- 检查配置中的 `SYNAPSE_MIND_KEY` 环境变量是否已设置\n- 在 Continue 的日志中查找 MCP 错误\n\n## 下一步\n\n- [Claude Desktop 配置](/docs/mcp/claude-desktop)\n- [自定义 MCP 客户端](/docs/mcp/custom-client)\n","content_html":"<h1>Continue.dev 中的 MCP</h1>\n<p>Continue.dev 是面向 VS Code 与 JetBrains IDE 的开源 AI 编码助手。借助 Synapse MCP，Continue 在会话之间获得持久化记忆。</p>\n<h2>前置条件</h2>\n<ul>\n<li>VS Code 或 JetBrains IDE</li>\n<li>已安装 Continue.dev 扩展</li>\n<li>Node.js 18+</li>\n<li>你的 Synapse Mind Key</li>\n</ul>\n<h2>配置</h2>\n<h3>第 1 步：打开 Continue 配置</h3>\n<p>在 VS Code 或 JetBrains 中：</p>\n<ol>\n<li>打开 Continue 扩展侧边栏</li>\n<li>点击齿轮图标 → “Open config.json”</li>\n</ol>\n<p>或直接编辑 <code>~/.continue/config.json</code>。</p>\n<h3>第 2 步：添加 Synapse MCP Server</h3>\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_MIND_KEY_HERE&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><h3>第 3 步：重新加载 Continue</h3>\n<p>重新加载 VS Code 窗口（Cmd+Shift+P → “Reload Window”），或重启 IDE。</p>\n<h2>验证可用</h2>\n<p>在 Continue 聊天中：</p>\n<pre><code class=\"hljs language-plaintext\">recall all my memories</code></pre><p>Continue 应调用 <code>memory_recall</code> 并返回你已存储的记忆。</p>\n<h2>常见模式</h2>\n<h3>项目上下文</h3>\n<pre><code class=\"hljs language-plaintext\">recalling project context for this codebase</code></pre><p>Continue 调用 <code>memory_recall</code>，查看你的项目记忆，并从中断处继续工作。</p>\n<h3>代码审查模式</h3>\n<pre><code class=\"hljs language-plaintext\">search memories: &quot;code review checklist&quot;</code></pre><p>Continue 找出你存储的代码审查模式并应用它们。</p>\n<h3>结对编程记忆</h3>\n<pre><code class=\"hljs language-plaintext\">store this: &quot;User prefers functional style over OOP for this project.\nDecided 2026-06-27.&quot;</code></pre><p>Continue 把它存为 <code>preference</code> 记忆。</p>\n<h2>故障排查</h2>\n<h3>MCP Server 未连接</h3>\n<ol>\n<li>检查 <code>~/.continue/config.json</code> 是否为有效 JSON</li>\n<li>验证 Node.js：<code>node --version</code></li>\n<li>查看 Continue 的输出面板（View → Output → Continue）</li>\n<li>重启 IDE</li>\n</ol>\n<h3>工具未出现</h3>\n<ul>\n<li>确认 Continue 版本支持 MCP（≥ 0.9.x）</li>\n<li>检查配置中的 <code>SYNAPSE_MIND_KEY</code> 环境变量是否已设置</li>\n<li>在 Continue 的日志中查找 MCP 错误</li>\n</ul>\n<h2>下一步</h2>\n<ul>\n<li><a href=\"/docs/mcp/claude-desktop\">Claude Desktop 配置</a></li>\n<li><a href=\"/docs/mcp/custom-client\">自定义 MCP 客户端</a></li>\n</ul>\n","urls":{"html":"/docs/mcp/continue","text":"/docs/mcp/continue?format=text","json":"/docs/mcp/continue?format=json","llm":"/docs/mcp/continue?format=llm"},"translations_available":["en","zh","hi","es","fr","ar","pt","ru","ja","de","it","ko","nl","pl","tr","sv","vi","th","id","uk"]}