Skip to content

Add integration test for generator template rendering #8

Description

@rdwj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions