You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Return structuredContent with an outputSchema from status tools #156
No tool declares outputSchema or returns structuredContent, although several already parse into typed data and then flatten it to text.
Where
mcp-server/src/tools/serviceHealth.ts:206-233
mcp-server/src/tools/healthCheck.ts:95-110
mcp-server/src/utils/fan-out.ts:18
Details
serviceHealth parses docker ps JSON with a zod schema; healthCheck builds CheckResult[]; forNodes returns only text.
Impact
Clients and agents that chain tools (fleet dashboards, "which nodes have unhealthy containers") must re-parse prose.
Suggested fix
Start with serviceHealth, healthCheck, piStatus, nodeList and backupStatus: declare outputSchema in registerTool and return both the current text and structuredContent. Let forNodes accept a structured per-node result and return { nodes: [{ name, host, ok, data | error }] }.
Open question: keep text output identical for prompts and skills?
How to run tests: cd mcp-server && npm install && npm test (and npm run typecheck); structure tests: pip install -r requirements-test.txt && pytest tests/ -v
Conventions: see CLAUDE.md and CONTRIBUTING.md
Filed by repo-audit/full-audit at 636fefb. Severity: medium. Effort: M. audit-key: enhancement|mcp-server/src/utils/fan-out.ts|structuredContent
Activity