-
Notifications
You must be signed in to change notification settings - Fork 254
Closed as not planned
Labels
Description
Objective
Add OutputSchema to the status and compile MCP server tools in pkg/cli/mcp_server.go so that LLM clients can understand the structure of tool responses before calling them.
Context
Discussion #16774 noted that go-sdk v1.2.0+ supports structured OutputSchema on tools, and the inspector's displayDetailedToolInfo() already handles rendering OutputSchema. The status and compile tools have well-defined JSON response structures that are ideal candidates.
Steps
- Open
pkg/cli/mcp_server.go - For the
statustool, define a result struct (e.g.statusResult) with JSON tags matching the current tool output structure, then generate anOutputSchemausingGenerateSchema[[]statusResult]()and attach it to the tool definition - Do the same for the
compiletool with its result struct - Use the
mcp.AddToolpattern already used in the file — attachOutputSchemato the&mcp.Tool{}struct - Run
make fmt && make build && make test-unit
Files to Modify
pkg/cli/mcp_server.go(primary)
Acceptance Criteria
-
statustool hasOutputSchemadefined matching its actual output structure -
compiletool hasOutputSchemadefined matching its actual output structure -
make buildandmake test-unitpass - Running
gh aw mcp inspectagainst the local server shows output schemas for these tools
Generated by Plan Command for issue #discussion #16774
- expires on Feb 21, 2026, 9:47 PM UTC
Reactions are currently unavailable