简体中文
如何在 Cursor 中配置 MCP Gateway
创建配置目录
mkdir -p .cursor touch .cursor/mcp.json
配置 MCP Server
.cursor/mcp.json
{ "mcpServers": { "user": { "url": "http://localhost:5235/gateway/user/sse" } } }
启用 MCP Server
帮我注册一个用户 Leo ifuryst@gmail.com
帮我查询一下用户ifuryst@gmail.com,如果没查到帮我注册一下,用户名是Leo
连接失败
工具无法使用
配置更新不生效
{ "mcpServers": { "user-service": { "url": "http://localhost:5235/gateway/user/sse" }, "order-service": { "url": "http://localhost:5235/gateway/order/sse" }, "product-service": { "url": "http://localhost:5235/gateway/product/sse" } } }