diff --git a/server/mcp-server/index.js b/server/mcp-server/index.js index 571275b..408c5c6 100644 --- a/server/mcp-server/index.js +++ b/server/mcp-server/index.js @@ -898,6 +898,20 @@ app.get('/health', (req, res) => { }); }); +// MCP 配置获取(无需认证)— 用于 WorkBuddy 换账号后一键获取配置代码 +app.get('/config', (req, res) => { + res.json({ + mcpServers: { + guanghulab: { + url: 'https://guanghulab.com/mcp', + headers: { + Authorization: 'Bearer ' + ACCESS_KEY, + }, + }, + }, + }); +}); + // ─── 启动前自检测 ───────────────────────────────────────────── async function selfCheck() { const result = { giteaOk: false, authOk: false, vaultOk: false, errors: [] };