mcp-vsc-button-gen 是一个轻量级的 MCP 服务器,专为基于 NPX 的服务器生成 VS Code MCP 安装按钮(稳定版 + 内测版)。
你可以直接通过 NPX 运行该项目(无需安装):
npx mcp-vsc-button-gen
你可以通过以下按钮在 VS Code 稳定版和内测版中进行安装:
该项目提供了以下工具函数:
{ name: string, inputs?: MCPInput[], config?: CommandConfig }{ name: string, mcp: { inputs?: MCPInput[], config?: CommandConfig } }{ kind: 'chat-instructions' | 'chat-prompt' | 'chat-mode', url: string }{ kind: 'chat-instructions' | 'chat-prompt' | 'chat-mode', owner: string, repo: string, path: string, branch?: string }MCPInput:{ type: 'promptString', id: string, description?: string, password?: boolean }CommandConfig:{ command: 'npx', args?: string[], env?: Record } 以下是一个输入示例:
{
"name": "supabase",
"inputs": [
{ "type": "promptString", "id": "supabase-access-token", "description": "Supabase personal access token", "password": true }
],
"config": {
"command": "npx",
"args": ["-y", "@supabase/mcp-server-supabase@latest", "--readonly", "--project-ref=$SUPABASE_MCP_PROJECT_REF"],
"env": {
"SUPABASE_ACCESS_TOKEN": "${input:supabase-access-token}",
"SUPABASE_MCP_PROJECT_REF": "${input:supabase-project-ref}"
}
}
}
输出:生成稳定版和内测版的两个 Markdown 按钮。
本地开发步骤如下:
npm i
npm run build
node dist/index.js
你也可以在开发模式下运行:
npm run dev
该服务器使用 MCP 标准输入输出进行通信,你可以将其与 MCP 客户端集成来调用工具。