aeat.entrypoints.mcp._completions module¶
Argument autocompletion for the guided-workflow prompts (ADR P5).
The MCP completion/complete capability lets a client autocomplete a prompt
argument as the user types it. The guided workflows accept a filing year and a
period; this module serves the accepted values for each from the typed axes the
registry already declares (the period grammar and a plausible filing-year range),
so the completion set cannot drift from what the CLI accepts. It is
SDK-independent - it returns ranked string candidates - so _server adapts it
to the MCP Completion type.
Modelo codes are NOT a prompt argument here (the workflow’s own skill implies the
modelo), so completions cover the filing year and period axes; the Modelo
enum remains the completion source if a modelo argument is ever added.
- complete_prompt_argument(argument_name, partial)[source]¶
Return the completion candidates for a prompt
argument_name.Candidates are prefix-filtered by
partial(case-insensitively for the period tokens), capped at the spec’s 100-value ceiling. An argument with no known value set returns no candidates.