Structured Output MCP Agent — Claude Code MCP server
The Structured Output MCP Agent MCP server turns a prompt and field schema into validated typed JSON. Use it when an agent response must follow a defined structure.
no license 3,042 installs updated 2026-05-31
claude mcp add --transport http structured-output-agent https://structured-output-agent--a2a.run.toolsWhat Structured Output MCP Agent does
Structured Output MCP Agent exposes invoke for requests that need a schema-bound result. The tool sends the prompt and field definition through Instructor with Gemini 2.5 Flash on Vertex AI, then returns typed JSON that can be passed to application code.
The selftest tool runs the live agent against a fixed input. Its response includes the produced result, an assertion score, and a trust manifest containing a signed Agent Card, JWKS, the governance and licence chain, the safety posture, and a proof link for each claim.
The service is reached over HTTP at https://structured-output-agent--a2a.run.tools. It can be connected to Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, or Gemini CLI. Since invoke uses Gemini 2.5 Flash on Vertex AI, that service is part of its runtime path.
What it helps with
- turn a prompt and field schema into typed JSON
- validate a structured result before using it in code
- run a live self-check against a fixed input
- inspect trust claims with proof links
Example prompts for the agent
- Use
invoketo return this request as typed JSON that follows the supplied field schema. - Run
selftestand show the result, assertion score, and trust manifest. - Send this prompt through
invokeand validate the returned JSON against the schema.
How to install Structured Output MCP Agent
Platform CLI: remote server
claude mcp add --transport http structured-output-agent https://structured-output-agent--a2a.run.toolsPlatform CLI: remote server
codex mcp add structured-output-mcp-agent --url https://structured-output-agent--a2a.run.toolsConfig file
{
"mcpServers": {
"structured-output-mcp-agent": {
"url": "https://structured-output-agent--a2a.run.tools"
}
}
}Config file
{
"servers": {
"structured-output-mcp-agent": {
"type": "http",
"url": "https://structured-output-agent--a2a.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http structured-output-mcp-agent https://structured-output-agent--a2a.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Structured Output MCP Agent
How do I install Structured Output MCP Agent in Claude Code?
Run claude mcp add --transport http structured-output-agent https://structured-output-agent--a2a.run.tools, then run claude mcp add --transport http structured-output-mcp-agent https://structured-output-agent--a2a.run.tools.
What does Structured Output MCP Agent do?
It accepts a prompt and field schema, then produces validated typed JSON through invoke. The server combines A2A and MCP.
What does the selftest tool provide?
It exercises the live agent with a fixed input and returns the result, an assertion grade, and a trust manifest with evidence links for its claims.