Skip to content

fix(mcp): advertise exact output schemas - #21

Merged
jmgilman merged 1 commit into
masterfrom
fix/mcp-output-schema-contract
Aug 24, 2026
Merged

jmgilman merged 1 commit into
masterfrom
fix/mcp-output-schema-contract

Conversation

@jmgilman

Copy link
Copy Markdown
Contributor

Summary

  • advertise explicit inferred outputSchema values for all three MCP tools
  • narrow successful collection schemas to non-null arrays and normalize nil runtime slices to []
  • document and regress the exact tools/list, StructuredContent, and JSON text-mirror contract

Verification

  • mise exec -- go test ./mcpserver -run '^(TestNewRegistersExactlyThreeTools|TestToolsSerializeSuccessfulEmptySlicesAsArrays|TestActualMCPSecureLoop)$' -count=1
  • raw stdio MCP initialization, tools/list, empty search_api, and empty-field describe_api smoke passed
  • mise exec -- moon run root:check (all eight tasks passed)
  • LSP diagnostics on mcpserver/*.go: no issues

@jmgilman
jmgilman merged commit 7c77a80 into master Aug 24, 2026
4 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