From 4e1852bc78de60464589ceb94db2584481c57333 Mon Sep 17 00:00:00 2001 From: Kye Gomez Date: Sat, 13 Sep 2025 11:42:01 -0700 Subject: [PATCH] [FIX][Fix MCP Transport options] --- docs/llm.txt | 6 +++--- docs/swarms/structs/agent_mcp.md | 2 +- docs/swarms/tools/tools_examples.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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