The Jinja2 generator templates in .fips-agents-cli/generators/ were updated for FastMCP 3.x (standalone decorators, class-based middleware, etc.) but there is no test that actually renders a template and validates the output.
Current CLI tests mock template loading, so a broken template or wrong variable name would silently produce invalid scaffolds.
Acceptance criteria:
- Test that renders each template type (tool, resource, prompt, middleware) with representative variables
- Validates the rendered output is valid Python (
ast.parse)
- Checks for expected v3.x patterns (
from fastmcp.tools import tool, class ...Middleware, etc.)
- Checks that no v2.x patterns appear (
from src.core.app import mcp, @mcp.tool)
Context: identified in FastMCP 3.x generator update retro.
The Jinja2 generator templates in
.fips-agents-cli/generators/were updated for FastMCP 3.x (standalone decorators, class-based middleware, etc.) but there is no test that actually renders a template and validates the output.Current CLI tests mock template loading, so a broken template or wrong variable name would silently produce invalid scaffolds.
Acceptance criteria:
ast.parse)from fastmcp.tools import tool,class ...Middleware, etc.)from src.core.app import mcp,@mcp.tool)Context: identified in FastMCP 3.x generator update retro.