最低健康MCP服务器
目的: ChatGPT连接器验证的最小工作示例。 仅实现所需的终结点:
| 端点 | 方法 | 主体 | 响应 |
|---|---|---|---|
| /搜索 | POST | { "query": "optional" } | { "results": [ { id, title, description, snippet } ] } |
| /refetch | POST | { "id": "" } | { id, title, content } |
跑
npm install
npm start测试
# Empty search
curl -X POST http://localhost:3000/search -H "Content-Type: application/json" -d '{}'
# Search with query
curl -X POST http://localhost:3000/search -H "Content-Type: application/json" -d '{"query":"blood"}'
# Fetch
curl -X POST http://localhost:3000/fetch -H "Content-Type: application/json" -d '{"id":"bp-001"}'清单
manifest.json 保持最小(仅搜索和获取)。没有额外的端点来避免验证器被拒绝。
