aeat.entrypoints.mcp package

MCP server entrypoint for the operator agent-harness.

Exposes the deterministic aeat CLI to an LLM operator as Model Context Protocol tools, sourcing the tool list, output schemas, and mutability annotations from the Layer 0 capability manifest (aeat app contract). The human-in-the-loop confirmation tiers and the faithfulness check live here too.

The protocol runtime (the MCP SDK) is an optional dependency gated behind the aeat-cli[agent] extra and imported lazily by main(); the tool-building, annotation, HITL, faithfulness, and dispatch logic in this package is SDK-independent and fully unit-tested. A bare-core invocation of the aeat-mcp console script refuses with the install hint rather than crashing - the same graceful-degradation contract every optional integration follows.

Live AEAT submission is permanently forbidden: no live-write tool is ever exposed (enforced by test), and the CLI rails remain the deterministic backstop.

main()[source]

Console-script entry point for the aeat-mcp server.

Lazily imports the MCP SDK runtime. If the aeat-cli[agent] extra is not installed, it refuses with the install hint and a non-zero exit rather than raising a raw ModuleNotFoundError.

Return type:

None

Submodules