continue(vscode插件) 配置mcp(config.yaml) 当前目录
拿modelcontextprotocol/servers下的几个mcp 和 open-websearch举例:
- name: open-websearch-sse type: sse url: http://localhost:3000/sse - name: open-websearch-mcp type: streamable-http url: http://localhost:3000/mcp - name: code-run-mcp-server-stdio type: stdio command: node args: - /Users/xxx/Desktop/codes/mcp-run-code/dist/index.js - name: git type: stdio command: bash cwd: './' args: - -c - 'docker run --rm -i --mount type=bind,src="$PWD",dst=/workspace mcp/git' - name: filesystem type: stdio command: bash cwd: './' args: - -c - 'docker run -i --rm --mount type=bind,src="$PWD",dst=/projects mcp/filesystem /projects' - name: sequential-thinking type: stdio command: docker args: - run - "--rm" - "-i" - mcp/sequentialthinking
重点是 cwd: './' 不是vscode的${workerspace}

浙公网安备 33010602011771号