benbjohnson / benbjohnson/litestream

feat(mcp): return structured (JSON) tool output alongside text

Open
#1,369 0 comments 0 reactions 1 assignee Claimed by @corylanou View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.