Skip to main content

MCP server for the Faultlines feature map — serve precise codebase context to AI coding agents (Cursor, Claude Code, Cline, Aider) instead of having them grep the repo.

Project description

faultlines-mcp

MCP server for the Faultlines feature map — serve precise, structured codebase context to AI coding agents (Cursor, Claude Code, Cline, Aider) instead of having them grep the whole repo.

The server reads a Faultlines feature-map JSON (features → flows → files, with metrics like health, churn, ownership, and hotspots) and exposes it over the Model Context Protocol as a small set of read-only tools. It is fully standalone: it never imports the engine and has zero runtime dependency on it (optional auto-refresh shells out to the faultlines CLI via subprocess).

Install

# one-off, no install (recommended)
uvx faultlines-mcp

# or install into an environment
pip install faultlines-mcp

Use with an agent

Point your MCP client at the faultlines-mcp command. Example (Claude Code / Cursor mcp config):

{
  "mcpServers": {
    "faultlines": {
      "command": "uvx",
      "args": ["faultlines-mcp"]
    }
  }
}

The server loads the feature-map JSON for the current repo (or the path you configure) and answers tool calls against it.

Tools (read-only)

  • list_features — every detected feature
  • find_feature — fuzzy-find a feature by query
  • get_feature_files — files that make up a feature
  • get_flow_files — files for a specific flow within a feature
  • get_repo_summary — high-level repo overview
  • get_hotspots — files/features with the highest bug-fix churn
  • get_feature_owners — top contributors + bus-factor risk
  • get_regression_risk — risk for a set of changed files
  • find_symbols_in_flow / find_symbols_for_feature — symbol-level drill-down
  • get_feature_errors — production errors per feature (Sentry, when the hosted connection supplies runtime data; otherwise a graceful "unavailable")
  • get_feature_pageviews — product usage per feature (PostHog, same runtime rule)

Modes

  • stdio (default) — local use with an agent; pure stdlib + the MCP protocol library, no web framework pulled in.
  • HTTP service (pip install 'faultlines-mcp[http]', run faultlines-mcp-serve) — the shape the hosted Faultlines dashboard proxies to.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

faultlines_mcp-0.2.1.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

faultlines_mcp-0.2.1-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file faultlines_mcp-0.2.1.tar.gz.

File metadata

  • Download URL: faultlines_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for faultlines_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 23a533e07e7c1d7a1039e5b611b28fbf2205cb6538eaf316582554dd07abf07b
MD5 6f9cd1574e3f863cc665d76cb59e97fc
BLAKE2b-256 d63be84984f10684509330d4f124c238f2d044ab5f936595346b5ee595d30763

See more details on using hashes here.

File details

Details for the file faultlines_mcp-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: faultlines_mcp-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for faultlines_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 30221898c271c42f803dabc06cf1cc06222af967ad0cd34c0da32d9ec676c8ba
MD5 4bb03da228a2e1a120c48cfb346378d4
BLAKE2b-256 a402f68d37f3ae3ed475409adcf8bac2b651e6efefd8c16ac3ed7e44851d61e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page