audio_helper.mcp module
Audio Helper: Model Context Protocol (MCP) surface.
A thin adapter that exposes the FastAPI app from audio_helper.api as MCP
tools, so any MCP-aware host (an agent runtime, an IDE integration, a custom
shell) can call the audio-helper actions — convert, chunk, silence, concat,
room tone, split, Demucs source separation, duration, MFCC resemblance — as
first-class tools. Uses fastapi-mcp
(https://github.com/tadata-org/fastapi_mcp): one wrapper publishes the whole
existing HTTP surface, so the routes are never duplicated.
Install the extra to pull in fastapi-mcp:
pip install "audio-helper[mcp]"
Then run the server (HTTP API + MCP endpoint at /mcp):
audio-helper-mcp # console entry point
python -m audio_helper.mcp # equivalent
- audio_helper.mcp.main()[source]
Console entry point (
audio-helper-mcp): serve the API + MCP endpoint.Boots the FastAPI app (now serving both the plain HTTP routes and the
/mcpMCP endpoint) with uvicorn in a single worker. Local-first: binds to loopback by default (override withAUDIO_HELPER_HOST/AUDIO_HELPER_PORT).- Return type:
None