feat: 新增 MCP 服务,支持 AI 自动操作项目与配置
build-and-deploy / build-and-deploy (push) Successful in 39s

- Streamable HTTP 传输,/mcp 端点,Bearer token 鉴权(data/mcp.json,已忽略)
- 项目/配置完整增删改查工具,删除为两步式确认(delete_* + confirm_delete_*)
- 写操作遵循系统模式,readonly 下拒绝
- 依赖 @modelcontextprotocol/sdk,新增单元测试
This commit is contained in:
cheney
2026-09-08 10:03:09 +08:00
parent f9f3184f98
commit 963046edd9
9 changed files with 1623 additions and 7 deletions
+7 -2
View File
@@ -8,9 +8,14 @@
"dev": "node src/server.js",
"test": "node --test"
},
"keywords": ["config", "registry", "microservice"],
"keywords": [
"config",
"registry",
"microservice"
],
"license": "MIT",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.30.0",
"express": "^4.18.2"
}
}
}