Skip to content

G2b: assertOutput MCP tool (sub-issue of #56) #60

@PowerCreek

Description

@PowerCreek

Sub-issue of #56 (G2 of TechDevGroup/devagentic#203).

Scope

Add MCP tool assert_output wrapping devagentic's assertOutput mutation.

Why deferred from initial G2 PR

assertOutput(call_id: str, expectation: ExpectationInput) -> Verdict requires the ExpectationInput GraphQL input shape (fragment: str, predicate: str). Mapping that cleanly through MCP needs its own design decision (single dict arg vs. flat args).

Acceptance

  • Tool registered under mcp_serve.py::_register_devagentic_mutation_tools.
  • Wrapper accepts call_id, fragment, predicate (flat); maps to the GraphQL input.
  • Unit tests covering happy path + bad-args fallback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions