Back to Agno

MCP server using Streamable HTTP transport

cookbook/91_tools/mcp/streamable_http_transport/README.md

2.6.4537 B
Original Source

MCP server using Streamable HTTP transport

This cookbook shows how to use the MCPTool util with an MCP server using Streamable HTTP transport.

  1. Run the server with Streamable HTTP transport
bash
python cookbook/90_tools/mcp/streamable_http_transport/server.py
  1. Run the agent using the MCP integration connecting to our server
bash
python cookbook/90_tools/mcp/streamable_http_transport/client.py

Optionally set refresh_connection to True on the MCPTools configuration to refresh the MCP tools on each run.