使用说明
MCP ETF报告演示
本项目演示了mcp功能,特别是资源和listChanged功能, 通过公开一个可以添加新生成资源的工具。
它演示了服务器发起的通知(如资源列表更改)如何仅在有状态的MCP服务器中工作。
要运行:
npm install
npm run build 从打字稿转译
npm start 运行express服务器
要连接,请执行以下操作:
http://localhost:8000/api/mcp/stateful
或
http://localhost:8000/api/mcp/stateless
或者与stdio连接(mcp服务器作为客户端应用程序的子进程运行):
"demo-stdio": {
"command": "node",
"args": ["*path-to-project*/dist/index.js"]
},
