MCP server for AI-assisted coding with development history: git, tests, Copilot.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
An MCP server for AI-assisted coding that leverages development history.
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:
cargo install cargo-nextestCreate .vscode/mcp.json in your project:
Cmd+Shift+P)hindsight is listedThat's it! Copilot will use hindsight tools to answer questions about your development history.
| 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" |
limit (int): Max events, default 50workspace (string): Filter by pathquery (string): Search query (required)source (string): "all", "commits", or "messages"limit (int): Max results, default 20limit (int): Max tests, default 50workspace (string): Filter by pathcommit (string): Filter by SHAdays (int): Days to summarise, default 7sha (string): Commit SHA (required)workspace (string): Path to ingest (required)source (string): "git", "copilot", or "all"incremental (bool): Only new data, default truelimit (int): Max itemsRun tests and automatically ingest results:
The test command automatically:
cargo nextest with correct flagsFor CI pipelines or custom nextest invocations:
| 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.
| Variable | Description |
|---|---|
HINDSIGHT_DATABASE | Database path |
HINDSIGHT_WORKSPACE | Default workspace |
| Platform | Default Path |
|---|---|
| macOS | ~/Library/Application Support/hindsight/hindsight.db |
| Linux | ~/.local/share/hindsight/hindsight.db |
| Windows | %LOCALAPPDATA%\hindsight\hindsight.db |
| 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 |
MIT
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/hindsight-mcp)<a href="https://allmcps.com/mcp/hindsight-mcp"><img src="https://allmcps.com/api/badge/hindsight-mcp?style=directory" alt="Hindsight MCP on AllMCPs" /></a>