find_related_work
Higher-precision match on session titles and original task descriptions. Best first call for "have we done this before?"
How to use it
Project documentation lists find_related_work for the Opencode History MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
Install Opencode History MCP
uvx opencode-history-mcpOther tools in Opencode History MCP (6)
Find every session that modified or mentioned a specific file.
Full metadata for one session: task, files touched, cost, tokens, sub-agent count.
Read the actual paginated message history of a session.
Aggregate stats: session/message counts, cost, time range, activity distribution.
Browse sessions in a directory, sorted by date/messages/cost/tokens.
Full-text search (FTS5) over user prompts and assistant responses. Ranked by relevance + recency + activity.