Expand description
PythonGenerator — generates an importable Python module.
Each upstream tool becomes a typed async function that calls POST /exec
on the local tool proxy. The generated module:
- Is named
<cli_name>.py. - Imports
httpxfor HTTP calls. - Contains
_BRIDGEand_TOKENmodule-level constants. - Has one
def <tool_name>(...)function per upstream tool with:- Required params as positional; optional as keyword-only with
Nonedefault. - A docstring taken from the tool’s description.
- Return type annotation of
str.
- Required params as positional; optional as keyword-only with
- Contains a
# generated by mcp-compressor — do not edit manuallyheader.