benbjohnson / benbjohnson/litestream
feat(mcp): return structured (JSON) tool output alongside text
Open
enhancement
- Dominant language
- Go
- Stars
- 14.4k
- Forks
- 414
- Avg merge
- 7d 1h
- Merged PRs (30d)
- 21
Description
## Problem
Tools return combined stdout/stderr as plain text only. The underlying commands already support `-json` (`DatabaseInfo`, `LTXFileInfo`, `DBStatus`, `RestorePlan`/`RestoreResult`). MCP supports `structuredContent` for machine-readable results plus a short text summary for the model.
## Fix
Return `structuredContent` (typed, reusing the existing `-json` output structs) plus a concise text summary from each tool.
## Acceptance
Tools return machine-readable structured output and a human/model-readable summary.
## Cross-refs
After #1368 (uses the official SDK's typed result API).
Contributor guide
Assessment
This issue has not been assessed yet.