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
508 B
21 lines
508 B
from swarms.tools.mcp_client_call import (
|
|
get_mcp_tools_sync,
|
|
)
|
|
from swarms.schemas.mcp_schemas import MCPConnection
|
|
import json
|
|
|
|
|
|
if __name__ == "__main__":
|
|
tools = get_mcp_tools_sync(
|
|
server_path="http://0.0.0.0:8000/sse",
|
|
format="openai",
|
|
connection=MCPConnection(
|
|
url="http://0.0.0.0:8000/sse",
|
|
headers={"Authorization": "Bearer 1234567890"},
|
|
timeout=10,
|
|
),
|
|
)
|
|
print(json.dumps(tools, indent=4))
|
|
|
|
print(type(tools))
|