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.
swarms/examples/mcp/mcp_utils/README.md

28 lines
1.3 KiB

# MCP Utils
This directory contains utility functions and helpers for MCP implementations.
## Examples
- [client.py](client.py) - MCP client implementation
- [mcp_client_call.py](mcp_client_call.py) - MCP client call utilities
- [mcp_multiple_servers_example.py](mcp_multiple_servers_example.py) - Multiple MCP servers example
- [mcp_multiple_tool_test.py](mcp_multiple_tool_test.py) - Multiple tool testing
- [multiagent_client.py](multiagent_client.py) - Multi-agent MCP client
- [singleagent_client.py](singleagent_client.py) - Single agent MCP client
- [test_multiple_mcp_servers.py](test_multiple_mcp_servers.py) - Multiple server testing
- [utils.py](utils.py) - General MCP utilities
## Subdirectories
- [utils/](utils/) - Additional utility functions
- [find_tools_on_mcp.py](utils/find_tools_on_mcp.py) - Tool discovery
- [mcp_execute_example.py](utils/mcp_execute_example.py) - MCP execution example
- [mcp_load_tools_example.py](utils/mcp_load_tools_example.py) - Tool loading example
- [mcp_multiserver_tool_fetch.py](utils/mcp_multiserver_tool_fetch.py) - Multi-server tool fetching
## Overview
MCP utils provide helper functions, client implementations, and testing utilities for working with Model Context Protocol. These examples demonstrate how to connect to MCP servers, discover tools, execute operations, and manage multiple MCP connections.