benbjohnson / benbjohnson/litestream

test(mcp): add an MCP server test suite

Open
#1,373 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

`cmd/litestream/mcp.go` has zero tests.

## Fix

Add `cmd/litestream/mcp_test.go` using the SDK's in-process transport / test client to exercise each tool (success + error paths) against a temp SQLite DB and a `file://` replica.

## Acceptance

Each tool has success and error coverage; `go test -race ./cmd/litestream/` passes.

## Cross-refs

After #1368 (tests the migrated surface).

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.