安装
npm install用法
运行三台MCP服务器
node mcp-child-a.js在端口3031上运行
node mcp-child-b.js在端口3032上运行
node parent.js在端口3030上运行
然后,您可以使用Streamable HTTP MCP或任何您想要的客户端。您也可以尝试使用inspector:
npx -y @modelcontextprotocol/inspector光标示例MCP配置:
{
"mcpServers": {
"heritage": {
"url": "http://localhost:3030/mcp",
"type": "streamableHttp"
}
}
}作者
阿里埃勒·雷-2025
