Skip to main content
Glama
io.github.blickytradezfx/specreceipt

io.github.blickytradezfx/specreceipt

README.md
# SpecReceipt

A dated, source-cited archive of public API and MCP contracts. Agents ask what a contract said on a given day, what changed, and whether an operation is still listed.

This is a receipt, not a guarantee. Paid plans are marked coming soon. There are no payments and no keys in this project.

- **Site:** https://blickytradezfx.github.io/specreceipt
- **Receipts base:** https://blickytradezfx.github.io/specreceipt/receipts
- **Repo:** https://github.com/blickytradezfx/specreceipt
- **MCP name:** `io.github.blickytradezfx/specreceipt`
- **Image:** `ghcr.io/blickytradezfx/specreceipt:0.1.0`

## Use the MCP server

The published image reads the public receipts archive by default:

```bash
docker run -i --rm ghcr.io/blickytradezfx/specreceipt:0.1.0
```

From a checkout (uses the local SQLite catalog if present, otherwise the public archive):

```bash
python3 server/mcp_stdio.py
SPECRECEIPT_RECEIPTS_BASE=https://blickytradezfx.github.io/specreceipt/receipts python3 server/mcp_stdio.py
```

Tools: `what_did_this_say`, `what_changed`, `is_this_still_safe_to_call`. Transport is official MCP stdio (`Content-Length` framing).

## Public receipts layer

GitHub Pages hosts a static, read-only export of the corpus:

- `receipts/index.json` — catalog and latest hashes
- `receipts/sources/{id}.json` — latest snapshot, history index, diffs
- `receipts/blobs/{sha256}.txt` — normalized text, deduplicated
- `receipts/diffs/` — unified diffs when a hash changes

Raw snapshot blobs and collector logs are not published. A GitHub Action runs the collector daily and deploys an updated archive.

## Local HTTP API (optional)

```bash
python3 server/http_api.py --port 8787
# http://127.0.0.1:8787
# http://127.0.0.1:8787/v1/what_did_this_say?source=meta-mcp-registry-openapi
```

## Refresh the corpus

```bash
python3 collector/select_sources.py    # only when changing coverage
python3 collector/collect.py           # daily snapshot (honors robots.txt)
python3 collector/collect.py --retry-failed
python3 collector/export_receipts.py --out site/receipts
python3 tests/test_mvp.py
```

Sources are public, ToS-allowed OpenAPI files, official MCP Registry manifests, and a short civic/docs list. We do not log in or connect to arbitrary remote MCP servers.

## License

MIT. See [LICENSE](LICENSE).