failslice-mcp 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- failslice_mcp-0.1.1/.gitignore +34 -0
- failslice_mcp-0.1.1/LICENSE +21 -0
- failslice_mcp-0.1.1/PKG-INFO +112 -0
- failslice_mcp-0.1.1/README.md +83 -0
- failslice_mcp-0.1.1/pyproject.toml +49 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Agent hand-off notes (Codex prompts/outputs) — never committed
|
|
2
|
+
.handoff/
|
|
3
|
+
|
|
4
|
+
# Python
|
|
5
|
+
__pycache__/
|
|
6
|
+
*.py[cod]
|
|
7
|
+
*.egg-info/
|
|
8
|
+
build/
|
|
9
|
+
dist/
|
|
10
|
+
.venv/
|
|
11
|
+
.python-version.local
|
|
12
|
+
|
|
13
|
+
# Tooling caches
|
|
14
|
+
.pytest_cache/
|
|
15
|
+
.mypy_cache/
|
|
16
|
+
.ruff_cache/
|
|
17
|
+
.hypothesis/
|
|
18
|
+
.coverage
|
|
19
|
+
.coverage.*
|
|
20
|
+
coverage.xml
|
|
21
|
+
htmlcov/
|
|
22
|
+
|
|
23
|
+
# FailSlice run outputs and generated example data
|
|
24
|
+
.failslice/
|
|
25
|
+
failslice-out/
|
|
26
|
+
examples/**/data/generated/
|
|
27
|
+
benchmarks/.work/
|
|
28
|
+
*.duckdb
|
|
29
|
+
*.duckdb.wal
|
|
30
|
+
|
|
31
|
+
# Editors / OS
|
|
32
|
+
.vscode/
|
|
33
|
+
.idea/
|
|
34
|
+
.DS_Store
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Saeed Mahdian <saeed.mahdian@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: failslice-mcp
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: MCP server for FailSlice: shrink multi-table data to a small, verified reproducer of a data bug.
|
|
5
|
+
Project-URL: Homepage, https://github.com/sdmhdn/failslice
|
|
6
|
+
Project-URL: Documentation, https://github.com/sdmhdn/failslice/blob/main/docs/mcp.md
|
|
7
|
+
Project-URL: Source, https://github.com/sdmhdn/failslice
|
|
8
|
+
Project-URL: Issues, https://github.com/sdmhdn/failslice/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/sdmhdn/failslice/blob/main/CHANGELOG.md
|
|
10
|
+
Author-email: Saeed Mahdian <saeed.mahdian@gmail.com>
|
|
11
|
+
Maintainer-email: Saeed Mahdian <saeed.mahdian@gmail.com>
|
|
12
|
+
License-Expression: MIT
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Keywords: data-quality,delta-debugging,duckdb,mcp,mcp-server
|
|
15
|
+
Classifier: Development Status :: 3 - Alpha
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
24
|
+
Classifier: Topic :: Software Development :: Debuggers
|
|
25
|
+
Classifier: Topic :: Software Development :: Testing
|
|
26
|
+
Requires-Python: >=3.11
|
|
27
|
+
Requires-Dist: failslice==0.1.1
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
|
|
30
|
+
# failslice-mcp
|
|
31
|
+
|
|
32
|
+
The MCP server of [FailSlice](https://github.com/sdmhdn/failslice), for AI agents in
|
|
33
|
+
Claude Code, Claude Desktop, Cursor and other MCP clients.
|
|
34
|
+
|
|
35
|
+
FailSlice shrinks a multi-table CSV/Parquet dataset to the handful of rows that still
|
|
36
|
+
trigger a data bug, keeps foreign keys intact, verifies the result in a fresh process and
|
|
37
|
+
exports a ready-to-run pytest regression test. Over MCP, an agent drives that loop with
|
|
38
|
+
paths and SQL: it sees counts, schemas, bounded previews (at most 20 rows) and reports on
|
|
39
|
+
the reduced rows, never the full dataset.
|
|
40
|
+
|
|
41
|
+
## What this package is
|
|
42
|
+
|
|
43
|
+
This distribution only provides the `failslice-mcp` command, so that
|
|
44
|
+
`uvx failslice-mcp` works without installing anything first. The server itself is part of
|
|
45
|
+
the [`failslice`](https://pypi.org/project/failslice/) package, which this one installs,
|
|
46
|
+
pinned to the same version. If you already use `failslice`, `python -m
|
|
47
|
+
failslice.mcp_server` starts the same server.
|
|
48
|
+
|
|
49
|
+
## Setup
|
|
50
|
+
|
|
51
|
+
[uv](https://docs.astral.sh/uv/) is the only requirement; `uvx` fetches Python 3.11+ if
|
|
52
|
+
needed. Use absolute paths.
|
|
53
|
+
|
|
54
|
+
Claude Code:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
claude mcp add failslice -- uvx failslice-mcp --root /absolute/path/to/your/data
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Claude Desktop (`claude_desktop_config.json`) and Cursor (`.cursor/mcp.json`):
|
|
61
|
+
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"mcpServers": {
|
|
65
|
+
"failslice": {
|
|
66
|
+
"command": "uvx",
|
|
67
|
+
"args": ["failslice-mcp", "--root", "/absolute/path/to/your/data"]
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Claude Desktop does not read your shell's `PATH`: if it cannot start `uvx`, put the
|
|
74
|
+
absolute path that `which uvx` prints in `command`.
|
|
75
|
+
|
|
76
|
+
## Tools
|
|
77
|
+
|
|
78
|
+
| tool | does |
|
|
79
|
+
|---|---|
|
|
80
|
+
| `inspect_dataset` | row and NULL counts, schemas, orphan counts for declared foreign keys, previews |
|
|
81
|
+
| `suggest_relationships` | primary/foreign key **suggestions** with evidence and confidence |
|
|
82
|
+
| `check_predicate` | validates the failure predicate and checks that it is deterministic |
|
|
83
|
+
| `reduce_failure` | reduces the data, replays the result in a fresh process, writes the report, manifest and test |
|
|
84
|
+
| `verify_reproducer` | replays a finished run in a fresh process |
|
|
85
|
+
| `explain_reproducer` | observations on the surviving rows (not a diagnosis) |
|
|
86
|
+
| `export_pytest` | re-verifies a run and writes a standalone pytest bundle |
|
|
87
|
+
|
|
88
|
+
Runs are also readable as resources (`failslice://runs`, manifests, reports, table
|
|
89
|
+
previews), and the `debug-data-bug` prompt walks the agent from a bug description to an
|
|
90
|
+
exported test.
|
|
91
|
+
|
|
92
|
+
## Safety
|
|
93
|
+
|
|
94
|
+
The server reads supported data files only inside `--root` and writes only under
|
|
95
|
+
`<root>/.failslice/`. One expensive operation runs at a time and budgets have ceilings
|
|
96
|
+
(`--max-evals`, `--wall-clock`, `--eval-timeout`). Cancelling a predicate check, a
|
|
97
|
+
reduction or a replay stops its child process; artifact steps that are already running
|
|
98
|
+
finish first. Previews show real data values, so point `--root` only at data the agent
|
|
99
|
+
may read.
|
|
100
|
+
|
|
101
|
+
FailSlice isolates rows; it does not determine the root cause.
|
|
102
|
+
|
|
103
|
+
## More
|
|
104
|
+
|
|
105
|
+
Full reference (options, budgets, resources, limits):
|
|
106
|
+
[docs/mcp.md](https://github.com/sdmhdn/failslice/blob/main/docs/mcp.md) ·
|
|
107
|
+
[FailSlice README](https://github.com/sdmhdn/failslice#readme) ·
|
|
108
|
+
[Changelog](https://github.com/sdmhdn/failslice/blob/main/CHANGELOG.md)
|
|
109
|
+
|
|
110
|
+
Created and maintained by Saeed Mahdian ([@sdmhdn](https://github.com/sdmhdn)). MIT license.
|
|
111
|
+
|
|
112
|
+
<!-- mcp-name: io.github.sdmhdn/failslice -->
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# failslice-mcp
|
|
2
|
+
|
|
3
|
+
The MCP server of [FailSlice](https://github.com/sdmhdn/failslice), for AI agents in
|
|
4
|
+
Claude Code, Claude Desktop, Cursor and other MCP clients.
|
|
5
|
+
|
|
6
|
+
FailSlice shrinks a multi-table CSV/Parquet dataset to the handful of rows that still
|
|
7
|
+
trigger a data bug, keeps foreign keys intact, verifies the result in a fresh process and
|
|
8
|
+
exports a ready-to-run pytest regression test. Over MCP, an agent drives that loop with
|
|
9
|
+
paths and SQL: it sees counts, schemas, bounded previews (at most 20 rows) and reports on
|
|
10
|
+
the reduced rows, never the full dataset.
|
|
11
|
+
|
|
12
|
+
## What this package is
|
|
13
|
+
|
|
14
|
+
This distribution only provides the `failslice-mcp` command, so that
|
|
15
|
+
`uvx failslice-mcp` works without installing anything first. The server itself is part of
|
|
16
|
+
the [`failslice`](https://pypi.org/project/failslice/) package, which this one installs,
|
|
17
|
+
pinned to the same version. If you already use `failslice`, `python -m
|
|
18
|
+
failslice.mcp_server` starts the same server.
|
|
19
|
+
|
|
20
|
+
## Setup
|
|
21
|
+
|
|
22
|
+
[uv](https://docs.astral.sh/uv/) is the only requirement; `uvx` fetches Python 3.11+ if
|
|
23
|
+
needed. Use absolute paths.
|
|
24
|
+
|
|
25
|
+
Claude Code:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
claude mcp add failslice -- uvx failslice-mcp --root /absolute/path/to/your/data
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Claude Desktop (`claude_desktop_config.json`) and Cursor (`.cursor/mcp.json`):
|
|
32
|
+
|
|
33
|
+
```json
|
|
34
|
+
{
|
|
35
|
+
"mcpServers": {
|
|
36
|
+
"failslice": {
|
|
37
|
+
"command": "uvx",
|
|
38
|
+
"args": ["failslice-mcp", "--root", "/absolute/path/to/your/data"]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Claude Desktop does not read your shell's `PATH`: if it cannot start `uvx`, put the
|
|
45
|
+
absolute path that `which uvx` prints in `command`.
|
|
46
|
+
|
|
47
|
+
## Tools
|
|
48
|
+
|
|
49
|
+
| tool | does |
|
|
50
|
+
|---|---|
|
|
51
|
+
| `inspect_dataset` | row and NULL counts, schemas, orphan counts for declared foreign keys, previews |
|
|
52
|
+
| `suggest_relationships` | primary/foreign key **suggestions** with evidence and confidence |
|
|
53
|
+
| `check_predicate` | validates the failure predicate and checks that it is deterministic |
|
|
54
|
+
| `reduce_failure` | reduces the data, replays the result in a fresh process, writes the report, manifest and test |
|
|
55
|
+
| `verify_reproducer` | replays a finished run in a fresh process |
|
|
56
|
+
| `explain_reproducer` | observations on the surviving rows (not a diagnosis) |
|
|
57
|
+
| `export_pytest` | re-verifies a run and writes a standalone pytest bundle |
|
|
58
|
+
|
|
59
|
+
Runs are also readable as resources (`failslice://runs`, manifests, reports, table
|
|
60
|
+
previews), and the `debug-data-bug` prompt walks the agent from a bug description to an
|
|
61
|
+
exported test.
|
|
62
|
+
|
|
63
|
+
## Safety
|
|
64
|
+
|
|
65
|
+
The server reads supported data files only inside `--root` and writes only under
|
|
66
|
+
`<root>/.failslice/`. One expensive operation runs at a time and budgets have ceilings
|
|
67
|
+
(`--max-evals`, `--wall-clock`, `--eval-timeout`). Cancelling a predicate check, a
|
|
68
|
+
reduction or a replay stops its child process; artifact steps that are already running
|
|
69
|
+
finish first. Previews show real data values, so point `--root` only at data the agent
|
|
70
|
+
may read.
|
|
71
|
+
|
|
72
|
+
FailSlice isolates rows; it does not determine the root cause.
|
|
73
|
+
|
|
74
|
+
## More
|
|
75
|
+
|
|
76
|
+
Full reference (options, budgets, resources, limits):
|
|
77
|
+
[docs/mcp.md](https://github.com/sdmhdn/failslice/blob/main/docs/mcp.md) ·
|
|
78
|
+
[FailSlice README](https://github.com/sdmhdn/failslice#readme) ·
|
|
79
|
+
[Changelog](https://github.com/sdmhdn/failslice/blob/main/CHANGELOG.md)
|
|
80
|
+
|
|
81
|
+
Created and maintained by Saeed Mahdian ([@sdmhdn](https://github.com/sdmhdn)). MIT license.
|
|
82
|
+
|
|
83
|
+
<!-- mcp-name: io.github.sdmhdn/failslice -->
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# The `failslice-mcp` distribution only provides the `failslice-mcp` command, so that
|
|
2
|
+
# `uvx failslice-mcp` works; the server itself lives in `failslice` (ADR 0013).
|
|
3
|
+
# Its version always equals failslice's and it pins that exact version (test-enforced).
|
|
4
|
+
[build-system]
|
|
5
|
+
requires = ["hatchling>=1.33"]
|
|
6
|
+
build-backend = "hatchling.build"
|
|
7
|
+
|
|
8
|
+
[project]
|
|
9
|
+
name = "failslice-mcp"
|
|
10
|
+
version = "0.1.1"
|
|
11
|
+
description = "MCP server for FailSlice: shrink multi-table data to a small, verified reproducer of a data bug."
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
requires-python = ">=3.11"
|
|
14
|
+
license = "MIT"
|
|
15
|
+
license-files = ["LICENSE"]
|
|
16
|
+
authors = [{ name = "Saeed Mahdian", email = "saeed.mahdian@gmail.com" }]
|
|
17
|
+
maintainers = [{ name = "Saeed Mahdian", email = "saeed.mahdian@gmail.com" }]
|
|
18
|
+
keywords = ["mcp", "mcp-server", "delta-debugging", "duckdb", "data-quality"]
|
|
19
|
+
classifiers = [
|
|
20
|
+
"Development Status :: 3 - Alpha",
|
|
21
|
+
"Intended Audience :: Developers",
|
|
22
|
+
"Operating System :: OS Independent",
|
|
23
|
+
"Programming Language :: Python :: 3",
|
|
24
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
25
|
+
"Programming Language :: Python :: 3.11",
|
|
26
|
+
"Programming Language :: Python :: 3.12",
|
|
27
|
+
"Programming Language :: Python :: 3.13",
|
|
28
|
+
"Programming Language :: Python :: 3.14",
|
|
29
|
+
"Topic :: Software Development :: Debuggers",
|
|
30
|
+
"Topic :: Software Development :: Testing",
|
|
31
|
+
]
|
|
32
|
+
dependencies = ["failslice==0.1.1"]
|
|
33
|
+
|
|
34
|
+
[project.scripts]
|
|
35
|
+
failslice-mcp = "failslice.mcp_server:main"
|
|
36
|
+
|
|
37
|
+
[project.urls]
|
|
38
|
+
Homepage = "https://github.com/sdmhdn/failslice"
|
|
39
|
+
Documentation = "https://github.com/sdmhdn/failslice/blob/main/docs/mcp.md"
|
|
40
|
+
Source = "https://github.com/sdmhdn/failslice"
|
|
41
|
+
Issues = "https://github.com/sdmhdn/failslice/issues"
|
|
42
|
+
Changelog = "https://github.com/sdmhdn/failslice/blob/main/CHANGELOG.md"
|
|
43
|
+
|
|
44
|
+
[tool.hatch.build.targets.wheel]
|
|
45
|
+
# No Python code of its own: the wheel carries only metadata and the entry point.
|
|
46
|
+
bypass-selection = true
|
|
47
|
+
|
|
48
|
+
[tool.uv.sources]
|
|
49
|
+
failslice = { workspace = true }
|