
Hindsight MCP
io.github.RbfinchPublished by GitHub account Rbfinchv0.1.5Updated Oct 27, 2026
MCP server for AI-assisted coding with development history: git, tests, Copilot.
Overview
Local MCP server that indexes git commits, test results and GitHub Copilot sessions into SQLite so an assistant can search and summarize your development…
- What you can do
- Search commits and Copilot chat messages with full-text queries
- View a chronological timeline of commits and test runs, filtered by workspace
- Inspect test failures and per-commit details, including linked test outcomes
- Summarize activity over a chosen number of days
- Refresh the local database by ingesting git, Copilot or all sources
- When to use it
- Useful when you want an assistant in VS Code to answer questions about your own project history — what you worked on recently, which commits touched a topic, or which tests are failing — without manually digging through git logs and chat sessions.
- Requirements
- Runs as a local binary (installed via cargo or a platform archive) over stdio; needs VS Code 1.99+ with GitHub Copilot for the documented setup, and cargo-nextest for test ingestion. Data is stored in a local SQLite database whose path can be set with HINDSIGHT_DATABASE; HINDSIGHT_WORKSPACE sets the default workspace.
Installation
In SourceWeft
- Open Hindsight MCP in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
hindsight-mcp
An MCP server for AI-assisted coding that leverages development history.
Overview
hindsight-mcp consolidates development data (git logs, test results, and GitHub Copilot sessions) into a searchable SQLite database, making it accessible to AI assistants through MCP tool calls in VS Code.
Key Features:
- Full-text search across commits and Copilot conversations
- Track test results linked to specific commits
- Activity summaries and timeline views
- Automatic git and Copilot session ingestion
Quick Start
Prerequisites
- VS Code v1.99+ with GitHub Copilot
- cargo-nextest (for test ingestion):
cargo install cargo-nextest
Installation
Configure VS Code
Create .vscode/mcp.json in your project:
Verify Setup
- Open VS Code Command Palette (
Cmd+Shift+P) - Run "MCP: List Servers"
- Confirm
hindsightis listed - In Copilot Chat, switch to Agent mode
- Ask: "What have I been working on recently?"
That's it! Copilot will use hindsight tools to answer questions about your development history.
MCP Tools
Tool Arguments Reference
hindsight_timeline
limit(int): Max events, default 50workspace(string): Filter by path
hindsight_search
query(string): Search query (required)source(string): "all", "commits", or "messages"limit(int): Max results, default 20
hindsight_failing_tests
limit(int): Max tests, default 50workspace(string): Filter by pathcommit(string): Filter by SHA
hindsight_activity_summary
days(int): Days to summarise, default 7
hindsight_commit_details
sha(string): Commit SHA (required)
hindsight_ingest
workspace(string): Path to ingest (required)source(string): "git", "copilot", or "all"incremental(bool): Only new data, default truelimit(int): Max items
Test Ingestion
Run tests and automatically ingest results:
The test command automatically:
- Spawns
cargo nextestwith correct flags - Auto-detects the current git commit
- Ingests results to the database
CI / Advanced Usage
For CI pipelines or custom nextest invocations:
Data Sources
Git and Copilot data are ingested automatically. Test results require running hindsight-mcp test.
CLI Reference
Test Subcommand Options
Environment Variables
Database Location
Troubleshooting
Development
Building from Source
Running Tests
Workspace Structure
Fuzzing
License
MIT
Source: README.md at commit dab92d5
Tools
0Version history
1- v0.1.5LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts