Spaces:
Sleeping
Sleeping
|
Download docs/md/design/core/mcp_client.md from thanhnv2323/humanize-text-python: direct link, hf CLI and curl.
- Browser
- Download file 691 Bytes
-
https://huggingface.co/spaces/thanhnv2323/humanize-text-python/resolve/main/docs/md/design/core/mcp_client.md
- Command line
-
hf download hf://spaces/thanhnv2323/humanize-text-python/docs/md/design/core/mcp_client.md
-
curl -L -o mcp_client.md https://huggingface.co/spaces/thanhnv2323/humanize-text-python/resolve/main/docs/md/design/core/mcp_client.md
691 Bytes
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