You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
441 B
21 lines
441 B
from swarms.tools.mcp_client_call import (
|
|
get_tools_for_multiple_mcp_servers,
|
|
)
|
|
from swarms.schemas.mcp_schemas import MCPConnection
|
|
|
|
|
|
mcp_config = MCPConnection(
|
|
url="http://0.0.0.0:8000/sse",
|
|
# headers={"Authorization": "Bearer 1234567890"},
|
|
timeout=5,
|
|
)
|
|
|
|
urls = ["http://0.0.0.0:8000/sse", "http://0.0.0.0:8001/sse"]
|
|
|
|
out = get_tools_for_multiple_mcp_servers(
|
|
urls=urls,
|
|
# connections=[mcp_config],
|
|
)
|
|
|
|
print(out)
|