Skip to content

Add output schemas and structured results to MCP tools - #7

Merged
dzucconi merged 3 commits into
mainfrom
codex/generated-output-schemas
Oct 20, 2026
Merged

dzucconi merged 3 commits into
mainfrom
codex/generated-output-schemas

Conversation

@dzucconi

Copy link
Copy Markdown
Member

Adds output schemas and structured results to all 52 MCP tools so clients can inspect and validate their responses.

  • Generate API output schemas from OpenAPI and define schemas for the two custom tools.
  • Return matching JSON text and structuredContent under { result: ... }, with null for empty responses.
  • Validate successful responses and normalize schemas for client compatibility.
  • Add regression tests and run the review-policy tests separately from Vitest.

Text consumers now need to read the payload under result.

Verified: 51 tests, typecheck, build, Worker dry run, and zero MCP Inspector schema warnings.

@dzucconi
dzucconi merged commit 817cff5 into main Oct 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant