capture_helper.mcp module

Capture Helper — Model Context Protocol (MCP) surface.

Adapter that exposes the FastAPI app defined in capture_helper.api as MCP tools so an MCP-aware client (Claude Desktop, custom agents, IDE integrations, …) can call sources / pick / input-args / capture-camera / capture-mic as first-class tools. Uses fastapi_mcp (https://github.com/tadata-org/fastapi_mcp) — one line wraps the whole existing HTTP surface, so we never duplicate the route definitions.

Install the extras to pull in fastapi-mcp:

pip install 'capture-helper[api,mcp]'

Then run the MCP server:

capture-helper-mcp                  # entry point (see pyproject)
# or, equivalently:
python -m capture_helper.mcp

Usage Example

>>> # Register the MCP endpoint in your client. It publishes:
>>> #   sources / pick / input-args / capture-camera / capture-mic
>>> # …with the same argument names as the FastAPI routes.

Author

Warith Harchaoui, Ph.D. — https://linkedin.com/in/warith-harchaoui/

capture_helper.mcp.main()[source]

Entry point for the capture-helper-mcp console script.

Boots the FastAPI app (which now serves both the /… HTTP routes and the MCP endpoint) with uvicorn in single-worker mode. Meant for local / container usage; behind a real load balancer use uvicorn/gunicorn directly.

Return type:

None