{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_rkxq5y45whqb","handle":"opencode-history-mcp","url":"https://wellknown.network/agents/opencode-history-mcp","links":{"self":"https://wellknown.network/agents/opencode-history-mcp/record.json","html":"https://wellknown.network/agents/opencode-history-mcp","markdown":"https://wellknown.network/agents/opencode-history-mcp/record.md","api":"https://wellknown.network/api/v1/agents/opencode-history-mcp","status":"https://wellknown.network/api/v1/agents/opencode-history-mcp/status","claim":"https://wellknown.network/agents/opencode-history-mcp/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/opencode-history-mcp/claim.json","badge":"https://wellknown.network/agents/opencode-history-mcp/badge.svg","openapi":"https://wellknown.network/openapi.json"},"ard":{"identifier":"urn:air::server:opencode-history-mcp","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"opencode-history-mcp","summary":"MCP server for searching your local OpenCode conversation history","description":"# OpenCode History MCP\n\nA local MCP (Model Context Protocol) server that lets AI coding agents\nsearch your **past OpenCode conversations** — before they start\nexploring files or re-doing work you already did.\n\nEverything runs on your machine: it reads OpenCode's own SQLite database\nand builds a private full-text search index next to it. No network\ncalls, no external services, **no data ever leaves your computer**.\n\n[![Python](https://img.shields.io/badge/python-3.10%2B-blue)](https://www.python.org/)\n[![License: MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE)\n[![MCP](https://img.shields.io/badge/protocol-MCP-orange)](https://modelcontextprotocol.io)\n\n## Why\n\nIf you use [OpenCode](https://opencode.ai) daily across many projects,\nyou build up thousands of past sessions — bug fixes, feature work,\ndiagnostics — sitting untapped in `opencode.db`. When you start a new\nsession on the same module or file, your agent has no idea any of that\nhappened. It re-explores from scratch, or worse, repeats a mistake you\nalready fixed three weeks ago.\n\nThis server exposes that history as MCP tools any agent can call:\n*\"has this file been touched before? what did we conclude last time?\nwhat related work exists in this project?\"*\n\n## How it works\n\n```\nOpenCode's own DB (read-only)          Our derived index (read-write)\n┌─────────────────────────┐            ┌──────────────────────────┐\n│ opencode.db              │  builds →  │ opencode-history.db       │\n│ - session / message /part│            │ - sessions (denormalized) │\n│ - JSON blobs per row      │            │ - search_idx (FTS5)       │\n└─────────────────────────┘            │ - session_files (index)   │\n                                        └──────────────────────────┘\n```\n\n- **Source DB stays untouched.** We open it `mode=ro` (read-only, WAL-aware)\n  and never write to it.\n- **A separate FTS5 index** holds denormalized session metadata + full-text\n  search over user/assistant text — orders of magnitude faster t…","publisher":null,"homepage":"https://github.com/crottolo/opencode-history-mcp","repository":"https://github.com/crottolo/opencode-history-mcp","version":"0.1.0","license":null,"protocols":["mcp"],"tags":["ai-agent","fts5","history","mcp","model-context-protocol","opencode","search"],"pricing":null,"endpoints":[{"url":"pypi:opencode-history-mcp","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi"}},"derived":{"capabilities":[{"slug":"data.database","name":"Databases","confidence":0.802,"provenance":"derived"}],"categories":["data"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"opencode-history-mcp","registry":"pypi","observedAt":"2026-09-10T08:27:43.292Z","publishedAt":"2026-08-05T22:47:42.462136Z","latestVersion":"0.1.0"}},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"opencode-history-mcp","url":"https://pypi.org/project/opencode-history-mcp/","firstSeenAt":"2026-09-10T08:26:38.242Z","fetchedAt":"2026-09-10T08:26:38.242Z","normalizedAt":"2026-09-10T08:26:38.242Z"}]},"firstSeenAt":"2026-09-10T08:26:38.242Z","updatedAt":"2026-09-10T08:27:43.292Z"}