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 featurefind_feature— fuzzy-find a feature by queryget_feature_files— files that make up a featureget_flow_files— files for a specific flow within a featureget_repo_summary— high-level repo overviewget_hotspots— files/features with the highest bug-fix churnget_feature_owners— top contributors + bus-factor riskget_regression_risk— risk for a set of changed filesfind_symbols_in_flow/find_symbols_for_feature— symbol-level drill-downget_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]', runfaultlines-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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23a533e07e7c1d7a1039e5b611b28fbf2205cb6538eaf316582554dd07abf07b
|
|
| MD5 |
6f9cd1574e3f863cc665d76cb59e97fc
|
|
| BLAKE2b-256 |
d63be84984f10684509330d4f124c238f2d044ab5f936595346b5ee595d30763
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30221898c271c42f803dabc06cf1cc06222af967ad0cd34c0da32d9ec676c8ba
|
|
| MD5 |
4bb03da228a2e1a120c48cfb346378d4
|
|
| BLAKE2b-256 |
a402f68d37f3ae3ed475409adcf8bac2b651e6efefd8c16ac3ed7e44851d61e7
|