MCP 响应服务器
通过三种通信方式提供ping工具的MCP服务器
设置```bash
npm install
npm run build
## 跑```bash
npm run stdio # stdio
npm run http # streamable HTTP (port 3001)
npm run sse # SSE (port 3002)
使用MCP Inspector进行测试```bash
npx @modelcontextprotocol/inspector node dist/stdio-server.js
### HTTP(超文本传输协议)```bash
npx @modelcontextprotocol/inspector
node dist/http-server.js
上海证券交易所```bash
npx @modelcontextprotocol/inspector
node dist/sse-server.js
## 使用节点进行测试```bash
yarn test:stdio # stdio server
yarn test:http # HTTP server
yarn test:sse # SSE server
工具
ping(name: string)→"pong ${name}"
