Hindsight MCP Server
MCP server for AI-assisted coding with development history: git, tests, Copilot.
Hindsight MCP scores 54 (Fair), licensed MIT and written in Rust. It installs as a local process. It declares 6 tools. Filed under Version control. GitHub shows 6 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
54 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
70/100 for listing completeness. Lost points: 6 of 6 tools barely described, short summary, no docs link.
How quality is graded
Where the 54 comes from
22 + 5 + 3 + 10 + 4 + 10 = 54. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 5 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "rbfinch-hindsight-mcp": { "command": "npx", "args": [ "-y", "https://github.com/Rbfinch/hindsight-mcp/releases/download/v0.1.5/hindsight-mcp-v0.1.5-x86_64-unknown-linux-gnu.tar.gz" ] } }}
Environment variables
This server does not declare environment variables.
Tools6Tool docs quality grade D
All capabilitiesAggregate stats
Commit info with tests
Query test failures
hindsight_ingesttoolTrigger data refresh
hindsight_searchtoolFull-text search
Chronological activity view
About
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
cargo install hindsight-mcp
Configure VS Code
Create .vscode/mcp.json in your project:
{
"servers": {
"hindsight": {
"type": "stdio",
"command": "hindsight-mcp",
"args": ["--workspace", "${workspaceFolder}"]
}
}
}
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 | Purpose | Example Prompt |
|---|---|---|
hindsight_timeline | Chronological activity view | "Show recent commits and test runs" |
hindsight_search | Full-text search | "Find commits about authentication" |
hindsight_failing_tests | Query test failures | "What tests are failing?" |
hindsight_activity_summary | Aggregate stats | "Summarise my week" |
hindsight_commit_details | Commit info with tests | "Details for commit abc123" |
hindsight_ingest | Trigger data refresh | "Refresh development history" |
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:
# Run all tests and ingest
hindsight-mcp test
# Test specific package
hindsight-mcp test -p my-crate
# Preview without writing to database
hindsight-mcp test --dry-run
The test command automatically:
- Spawns
cargo nextestwith correct flags - Auto-detects the current git commit
- Ingests results to the database
For CI pipelines or custom nextest invocations:
# Using stdin mode
NEXTEST_EXPERIMENTAL_LIBTEST_JSON=1 cargo nextest run \
--message-format libtest-json 2>/dev/null | \
hindsight-mcp test --stdin
# Using ingest command with explicit commit
NEXTEST_EXPERIMENTAL_LIBTEST_JSON=1 cargo nextest run \
--message-format libtest-json 2>/dev/null | \
hindsight-mcp ingest --tests --commit $(git rev-parse HEAD)
Data Sources
| Source | Data Collected |
|---|---|
| Git | Commits (SHA, author, message, timestamp, parents) |
| Tests | Run metadata, outcomes, durations, failure output |
| Copilot | Chat sessions, prompts, responses, attached files |
Git and Copilot data are ingested automatically. Test results require running hindsight-mcp test.
CLI Reference
hindsight-mcp [OPTIONS] [COMMAND]
Commands:
ingest Ingest data from various sources
test Run tests and ingest results
Options:
-d, --database <PATH> Database path [default: ~/.hindsight/hindsight.db]
-w, --workspace <PATH> Workspace path [default: current directory]
-v, --verbose Debug logging
-q, --quiet Errors only
--skip-init Skip database init
-h, --help Print help
-V, --version Print version
hindsight-mcp test [OPTIONS] [-- <NEXTEST_ARGS>...]
Options:
-p, --package <PKG> Package(s) to test
--bin <BIN> Binary(ies) to run
-E, --filter <EXPR> Filter expression
--stdin Read from stdin
--dry-run Preview only
--no-commit Do not link to commit
--commit <SHA> Explicit commit SHA
--show-output Show test output
Environment Variables
| Variable | Description |
|---|---|
HINDSIGHT_DATABASE | Database path |
HINDSIGHT_WORKSPACE | Default workspace |
Database Location
| Platform | Default Path |
|---|---|
| macOS | ~/Library/Application Support/hindsight/hindsight.db |
| Linux | ~/.local/share/hindsight/hindsight.db |
| Windows | %LOCALAPPDATA%\hindsight\hindsight.db |
Troubleshooting
| Problem | Solution |
|---|---|
| Server does not start | Check binary path; run with --verbose |
| No data showing | Run hindsight_ingest tool via Copilot |
| Log interference | Use --quiet in production |
Development
git clone https://github.com/Rbfinch/hindsight-mcp.git
cd hindsight-mcp
cargo build --release
cargo install cargo-nextest
cargo nextest run --workspace
hindsight/
├── crates/
│ ├── hindsight-mcp/ # MCP server binary
│ ├── hindsight-git/ # Git log processing
│ ├── hindsight-tests/ # Test result processing
│ └── hindsight-copilot/ # Copilot session parsing
cd crates/hindsight-tests
cargo +nightly fuzz run fuzz_nextest_run
cd crates/hindsight-copilot
cargo +nightly fuzz run fuzz_session_json
License
MIT
Frequently asked questions
What is Hindsight MCP Server?
MCP server for AI-assisted coding with development history: git, tests, Copilot.
How do I install Hindsight MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Hindsight MCP Server runs locally from the MCP bundle https://github.com/Rbfinch/hindsight-mcp/releases/download/v0.1.5/hindsight-mcp-v0.1.5-x86_64-unknown-linux-gnu.tar.gz with the command npx -y https://github.com/Rbfinch/hindsight-mcp/releases/download/v0.1.5/hindsight-mcp-v0.1.5-x86_64-unknown-linux-gnu.tar.gz.
Is Hindsight MCP Server free and open source?
Yes. Hindsight MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Hindsight MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Hindsight MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Hindsight MCP Server provide?
Hindsight MCP Server provides 6 tools, including hindsight_activity_summary, hindsight_commit_details, hindsight_failing_tests, and hindsight_ingest. See the full tool list for descriptions and parameters.
How is Hindsight MCP Server's trust score calculated?
Hindsight MCP Server scores 54 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.
