Spaces:
Sleeping
Sleeping
File size: 691 Bytes
33340fe | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | # Core: `MCPClient`
**Code**: `adsp/core/mcp_server/tools/mcp_client.py`
## Purpose
`MCPClient` is the client-side interface to request tool execution. Today it is a mock that echoes the request.
## Responsibilities
- Provide a simple `request(tool, payload)` function
- (Planned) communicate with external tool servers/processes
## Public API
### `request(tool: str, payload: dict) -> dict`
Returns `{ "tool": tool, "payload": payload }`.
## Key dependencies / technologies
- Python `dataclasses`
## Notes / production hardening
Replace with:
- MCP-compatible transport (HTTP/websocket/stdin-stdio)
- Tool registry and authentication
- Structured tool schemas for safe calling
|