{"title":"MCP trong Continue.dev","slug":"continue","category":"mcp","summary":"Kết nối Synapse với Continue.dev — trợ lý lập trình AI mã nguồn mở cho VS Code và JetBrains.","audience":["human"],"tags":["mcp","continue","vscode","jetbrains"],"difficulty":"intermediate","updated":"2026-06-27","word_count":294,"read_minutes":1,"lang":"vi","translated":true,"requested_lang":"vi","content_markdown":"\n# MCP trong Continue.dev\n\nContinue.dev là trợ lý lập trình AI mã nguồn mở cho VS Code và JetBrains IDE.\nVới Synapse MCP, Continue có bộ nhớ cố định qua các phiên.\n\n## Điều kiện tiên quyết\n\n- VS Code hoặc JetBrains IDE\n- Tiện ích mở rộng Continue.dev đã cài đặt\n- Node.js 18+\n- Synapse Mind Key của bạn\n\n## Thiết lập\n\n### Bước 1: Mở cấu hình Continue\n\nTrong VS Code hoặc JetBrains:\n\n1. Mở thanh bên tiện ích mở rộng Continue\n2. Nhấp biểu tượng bánh răng → \"Open config.json\"\n\nHoặc chỉnh sửa `~/.continue/config.json` trực tiếp.\n\n### Bước 2: Thêm 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### Bước 3: Tải lại Continue\n\nTải lại cửa sổ VS Code (Cmd+Shift+P → \"Reload Window\") hoặc khởi động lại IDE.\n\n## Xác minh nó hoạt động\n\nTrong chat Continue:\n\n```\nrecall all my memories\n```\n\nContinue sẽ gọi `memory_recall` và phản hồi với bộ nhớ đã lưu của bạn.\n\n## Mẫu phổ biến\n\n### Ngữ cảnh dự án\n\n```\nrecalling project context for this codebase\n```\n\nContinue gọi `memory_recall`, thấy bộ nhớ dự án của bạn và tiếp tục công việc\nnơi bạn đã dừng.\n\n### Mẫu review code\n\n```\nsearch memories: \"code review checklist\"\n```\n\nContinue tìm mẫu review code đã lưu của bạn và áp dụng chúng.\n\n### Bộ nhớ lập trình cặp\n\n```\nstore this: \"User prefers functional style over OOP for this project.\nDecided 2026-06-27.\"\n```\n\nContinue lưu nó dưới dạng bộ nhớ `preference`.\n\n## Khắc phục sự cố\n\n### MCP server không kết nối\n\n1. Kiểm tra `~/.continue/config.json` là JSON hợp lệ\n2. Xác minh Node.js: `node --version`\n3. Kiểm tra bảng điều khiển output của Continue (View → Output → Continue)\n4. Khởi động lại IDE\n\n### Công cụ không xuất hiện\n\n- Xác minh phiên bản Continue hỗ trợ MCP (≥ 0.9.x)\n- Kiểm tra biến môi trường `SYNAPSE_MIND_KEY` được đặt trong cấu hình\n- Tìm lỗi MCP trong nhật ký Continue\n\n## Bước tiếp theo\n\n- [Thiết lập Claude Desktop](/docs/mcp/claude-desktop)\n- [Client MCP tùy chỉnh](/docs/mcp/custom-client)\n","content_html":"<h1>MCP trong Continue.dev</h1>\n<p>Continue.dev là trợ lý lập trình AI mã nguồn mở cho VS Code và JetBrains IDE.\nVới Synapse MCP, Continue có bộ nhớ cố định qua các phiên.</p>\n<h2>Điều kiện tiên quyết</h2>\n<ul>\n<li>VS Code hoặc JetBrains IDE</li>\n<li>Tiện ích mở rộng Continue.dev đã cài đặt</li>\n<li>Node.js 18+</li>\n<li>Synapse Mind Key của bạn</li>\n</ul>\n<h2>Thiết lập</h2>\n<h3>Bước 1: Mở cấu hình Continue</h3>\n<p>Trong VS Code hoặc JetBrains:</p>\n<ol>\n<li>Mở thanh bên tiện ích mở rộng Continue</li>\n<li>Nhấp biểu tượng bánh răng → &quot;Open config.json&quot;</li>\n</ol>\n<p>Hoặc chỉnh sửa <code>~/.continue/config.json</code> trực tiếp.</p>\n<h3>Bước 2: Thêm 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>Bước 3: Tải lại Continue</h3>\n<p>Tải lại cửa sổ VS Code (Cmd+Shift+P → &quot;Reload Window&quot;) hoặc khởi động lại IDE.</p>\n<h2>Xác minh nó hoạt động</h2>\n<p>Trong chat Continue:</p>\n<pre><code class=\"hljs language-plaintext\">recall all my memories</code></pre><p>Continue sẽ gọi <code>memory_recall</code> và phản hồi với bộ nhớ đã lưu của bạn.</p>\n<h2>Mẫu phổ biến</h2>\n<h3>Ngữ cảnh dự án</h3>\n<pre><code class=\"hljs language-plaintext\">recalling project context for this codebase</code></pre><p>Continue gọi <code>memory_recall</code>, thấy bộ nhớ dự án của bạn và tiếp tục công việc\nnơi bạn đã dừng.</p>\n<h3>Mẫu review code</h3>\n<pre><code class=\"hljs language-plaintext\">search memories: &quot;code review checklist&quot;</code></pre><p>Continue tìm mẫu review code đã lưu của bạn và áp dụng chúng.</p>\n<h3>Bộ nhớ lập trình cặp</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 lưu nó dưới dạng bộ nhớ <code>preference</code>.</p>\n<h2>Khắc phục sự cố</h2>\n<h3>MCP server không kết nối</h3>\n<ol>\n<li>Kiểm tra <code>~/.continue/config.json</code> là JSON hợp lệ</li>\n<li>Xác minh Node.js: <code>node --version</code></li>\n<li>Kiểm tra bảng điều khiển output của Continue (View → Output → Continue)</li>\n<li>Khởi động lại IDE</li>\n</ol>\n<h3>Công cụ không xuất hiện</h3>\n<ul>\n<li>Xác minh phiên bản Continue hỗ trợ MCP (≥ 0.9.x)</li>\n<li>Kiểm tra biến môi trường <code>SYNAPSE_MIND_KEY</code> được đặt trong cấu hình</li>\n<li>Tìm lỗi MCP trong nhật ký Continue</li>\n</ul>\n<h2>Bước tiếp theo</h2>\n<ul>\n<li><a href=\"/docs/mcp/claude-desktop\">Thiết lập Claude Desktop</a></li>\n<li><a href=\"/docs/mcp/custom-client\">Client MCP tùy chỉnh</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"]}