diff --git a/docs/llm.txt b/docs/llm.txt index d77b85be..6ddd4924 100644 --- a/docs/llm.txt +++ b/docs/llm.txt @@ -33968,7 +33968,7 @@ graph TD } if __name__ == "__main__": - mcp.run(transport="sse") + mcp.run(transport="streamable-http") ``` ### Server Best Practices @@ -53167,7 +53167,7 @@ def get_okx_crypto_volume(symbol: str) -> str: if __name__ == "__main__": # Run the MCP server with SSE (Server-Sent Events) transport # Server will be available at http://localhost:8001/mcp - mcp.run(transport="sse") + mcp.run(transport="streamable-http") ``` ### Step 4: Connect Agent to MCP Server @@ -58300,7 +58300,7 @@ async def swarms_available() -> Any: if __name__ == "__main__": - mcp.run(transport="sse") + mcp.run(transport="streamable-http") ``` ## Client side diff --git a/docs/swarms/structs/agent_mcp.md b/docs/swarms/structs/agent_mcp.md index a18027b0..ced0e6ee 100644 --- a/docs/swarms/structs/agent_mcp.md +++ b/docs/swarms/structs/agent_mcp.md @@ -356,7 +356,7 @@ graph TD } if __name__ == "__main__": - mcp.run(transport="sse") + mcp.run(transport="streamable-http") ``` ### Server Best Practices diff --git a/docs/swarms/tools/tools_examples.md b/docs/swarms/tools/tools_examples.md index fe282663..ac7c4fc1 100644 --- a/docs/swarms/tools/tools_examples.md +++ b/docs/swarms/tools/tools_examples.md @@ -478,7 +478,7 @@ def get_okx_crypto_volume(symbol: str) -> str: if __name__ == "__main__": # Run the MCP server with SSE (Server-Sent Events) transport # Server will be available at http://localhost:8001/mcp - mcp.run(transport="sse") + mcp.run(transport="streamable-http") ``` ### Step 4: Connect Agent to MCP Server