failslice-mcp
The MCP server of FailSlice, for AI agents in Claude Code, Claude Desktop, Cursor and other MCP clients.
FailSlice shrinks a multi-table CSV/Parquet dataset to the handful of rows that still trigger a data bug, keeps foreign keys intact, verifies the result in a fresh process and exports a ready-to-run pytest regression test. Over MCP, an agent drives that loop with paths and SQL: it sees counts, schemas, bounded previews (at most 20 rows) and reports on the reduced rows, never the full dataset.
What this package is
This distribution only provides the failslice-mcp command, so that
uvx failslice-mcp works without installing anything first. The server itself is part of
the failslice package, which this one installs,
pinned to the same version. If you already use failslice, python -m failslice.mcp_server starts the same server.
Setup
uv is the only requirement; uvx fetches Python 3.11+ if
needed. Use absolute paths.
Claude Code:
claude mcp add failslice -- uvx failslice-mcp --root /absolute/path/to/your/data
Claude Desktop (claude_desktop_config.json) and Cursor (.cursor/mcp.json):
{
"mcpServers": {
"failslice": {
"command": "uvx",
"args": ["failslice-mcp", "--root", "/absolute/path/to/your/data"]
}
}
}
Claude Desktop does not read your shell's PATH: if it cannot start uvx, put the
absolute path that which uvx prints in command.
Tools
| tool | does |
|---|---|
inspect_dataset |
row and NULL counts, schemas, orphan counts for declared foreign keys, previews |
suggest_relationships |
primary/foreign key suggestions with evidence and confidence |
check_predicate |
validates the failure predicate and checks that it is deterministic |
reduce_failure |
reduces the data, replays the result in a fresh process, writes the report, manifest and test |
verify_reproducer |
replays a finished run in a fresh process |
explain_reproducer |
observations on the surviving rows (not a diagnosis) |
export_pytest |
re-verifies a run and writes a standalone pytest bundle |
Runs are also readable as resources (failslice://runs, manifests, reports, table
previews), and the debug-data-bug prompt walks the agent from a bug description to an
exported test.
Safety
The server reads supported data files only inside --root and writes only under
<root>/.failslice/. One expensive operation runs at a time and budgets have ceilings
(--max-evals, --wall-clock, --eval-timeout). Cancelling a predicate check, a
reduction or a replay stops its child process; artifact steps that are already running
finish first. Previews show real data values, so point --root only at data the agent
may read.
FailSlice isolates rows; it does not determine the root cause.
More
Full reference (options, budgets, resources, limits): docs/mcp.md · FailSlice README · Changelog
Created and maintained by Saeed Mahdian (@sdmhdn). MIT license.
Metadata
Release files for failslice-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| failslice_mcp-0.1.1.tar.gz | 3.7 kB | With provenance | Details for failslice_mcp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| failslice_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for failslice_mcp-0.1.1-py3-none-any.whl |
Total release size: 7.6 kB
Release files / failslice_mcp-0.1.1.tar.gz
| Download URL | failslice_mcp-0.1.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0e25bd91fabbdc37a5241da1d03949b210734d171003673f56ead4dc1812822
|
|
BLAKE2b-256 checksum How to use checksums |
2d79e3a840c2252f7bef45089823af5a707d53dd3f59d36e95f271b959630c89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logRelease files / failslice_mcp-0.1.1-py3-none-any.whl
| Download URL | failslice_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10135eeb0a2c991dc5c9cad4e0237f7c428b105267e46976b5964a8e8f5d1dfa
|
|
BLAKE2b-256 checksum How to use checksums |
dc60441d473364ac7eb48f357de3d6cee8fa8a600ffb6d6abe5dd1c3c8a26d6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logSecurity for failslice-mcp 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for failslice_mcp-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.