
"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}" } } } }}
发表评论 取消回复