MCP 客户端 & McpTransportContext
1 启动MCP服务器和MCP客户端```bash
npx @modelcontextprotocol/server-everything streamableHttp
``````bash
aws sso login
aws configure
https://docs.aws.amazon.com/cli/latest/userguide/welcome-examples.html
``````bash
./gradlew bootRun
## 2. 运行流式聊天,无需工具调用```bash
curl -X POST http://localhost:8080/stream-chat \
-H "Content-Type: application/json" \
-H "Tenant: A " \
-d '{"prompt": "list the tools"}'
3. 使用工具调用运行流式聊天
> 当工具被调用时,以下查询无法访问servlet头信息;(bash
curl -X POST http://localhost:8080/stream-chat \
-H "Content-Type: application/json" \
-H "Tenant: A " \
-d '{"prompt": "do an echo toto"}'
