微信扫码
添加专属顾问
我要投稿
探索VScode 1.99版本新特性,MCP server的配置与实践 核心内容: 1. VScode 1.99版本MCP server的初步测试 2. 配置mcp的详细步骤与注意事项 3. 实际使用中遇到的问题及解决方案
"mcp": { // 修正后的 inputs 部分 "inputs": [ { "type": "promptString", // 修改 id 以强制 VS Code 重新请求输入 "id": "gitee-access-token-correct", // 使用正确的提示文字 "description": "输入你的 Gitee Personal Access Token", "password": true // 输入时隐藏字符 } // 如果原来有其他 input,可以继续加在这里 ], "servers": { // mcp-server-time 配置保持不变 "mcp-server-time": { "command": "python", "args": [ "-m", "mcp_server_time", "--local-timezone=America/Los_Angeles" ], "env": {} }, // mcp-gitee 的服务器配置 "gitee": { // 这个名字会显示在 VS Code MCP 服务器列表中 "type": "stdio", // 使用标准输入输出 "command": "/Users/chilikevin/mcp-gitee/bin/mcp-gitee", // 使用绝对路径 // "args": [], // 如果使用环境变量,就不需要命令行参数了 "env": { // 设置环境变量给 mcp-gitee 进程 "GITEE_API_BASE": "https://gitee.com/api/v5", // Gitee API 地址,通常不需要改 // *** 确保这里引用的 id 和上面 inputs 里的新 id 一致 *** "GITEE_ACCESS_TOKEN": "${input:gitee-access-token-correct}" } } // 如果有其他服务器,可以继续加在这里 }
{ "mcp": { "inputs": [ { "type": "promptString", "id": "github_token", "description": "GitHub Personal Access Token", "password": true } ], "servers": { "github": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server" ], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}" } } } }}
53AI,企业落地大模型首选服务商
产品:场景落地咨询+大模型应用平台+行业解决方案
承诺:免费场景POC验证,效果验证后签署服务协议。零风险落地应用大模型,已交付160+中大型企业
2025-03-17
2025-03-25
2025-03-17
2025-04-05
2025-04-05
2025-03-17
2025-03-21
2025-04-14
2025-04-13
2025-04-29
2025-06-13
2025-06-12
2025-06-08
2025-06-08
2025-05-27
2025-05-24
2025-05-23
2025-05-22