← Back to Docs

MCP Integrations

Connect SourcePrep to your favorite AI editors using the Model Context Protocol.

What is MCP?

The Model Context Protocol (MCP) is an open standard that enables AI models to interact with external data and tools.

SourcePrep runs a local MCP server that exposes your indexed codebase as a set of tools. It supports both Stdio (recommended for local editors) and SSE (for remote/containerized setups). When you connect an editor like Cursor or Windsurf, their internal AI agents gain the ability to:

  • Get Oriented: Call prep with no arguments to get ambient context — module structures, hub files, and your selected focus areas formatted perfectly for internal understanding.
  • Search Semantically: Use prep_search to find code by meaning ("auth logic") rather than just keywords, expanding structurally to provide required imports automatically.
  • Code Graph: Follow import paths and function calls (Rust-powered graph) defensively. Use prep_impact to see exact blast radiuses before modifying a file.
  • Persistent Memory: Use prep_observe to write cross-session notes that get automatically flagged as `[STALE]` when the underlying files are modified.
  • Audit Codebase: Use prep_audit to get a health report with architecture findings, tech debt, dead code, and test coverage gaps. Learn more →

Tools Reference

ToolPurpose
prepAmbient context — hub files, module summaries, focus areas (no arguments needed)
prep_searchSemantic search with trace expansion, atlas routing, LOD compression
prep_impactBlast radius analysis — what depends on a file or symbol
prep_observeSave or retrieve cross-session notes about the codebase (with stale flags)
prep_auditRun or retrieve codebase health audits (action = scan, refactor, verify, report)

Live Dashboard Preview

These are live, interactive previews of the SourcePrep dashboard panels your agents interact with.

Loading component preview…

Semantic Search Panel — find code by meaning, not keywords

Loading component preview…

Index Status Card — real-time view of your codebase index