From 175bd05ce59680a6f3add790d6506de9238111af Mon Sep 17 00:00:00 2001 From: Kye Gomez Date: Tue, 15 Apr 2025 16:40:31 -0700 Subject: [PATCH] cleanup --- docs/swarms_cloud/mcp.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/swarms_cloud/mcp.md b/docs/swarms_cloud/mcp.md index 848281f9..3098b82e 100644 --- a/docs/swarms_cloud/mcp.md +++ b/docs/swarms_cloud/mcp.md @@ -322,15 +322,11 @@ swarm_config = { } -async def fetch_weather_and_resource(): +async def swarm_completion(): """Connect to a server over SSE and fetch available swarms.""" async with Client( transport="http://localhost:8000/sse" - # SSETransport( - # url="http://localhost:8000/sse", - # headers={"x_api_key": os.getenv("SWARMS_API_KEY"), "Content-Type": "application/json"} - # ) ) as client: # Basic connectivity testing # print("Ping check:", await client.ping()) @@ -342,7 +338,7 @@ async def fetch_weather_and_resource(): # Execute the function if __name__ == "__main__": - asyncio.run(fetch_weather_and_resource()) + asyncio.run(swarm_completion()) ``` \ No newline at end of file