MCP server reference
Start xpd mcp to expose xpd's API discovery gate and ManimGX animation tools over the Model Context Protocol (FastMCP 4.2). Every tool delegates to the matching xpd binary, and agents continue to run lint, audit, search, and ledger commands in their shell. See xpd mcp for server flags.
claude mcp add xpd -- uvx xpd mcpThe server is named xpd, and xpd (052c696d) lists 6 tools, 23 resources, 9 resource templates and 4 prompts.
| Tool | What it does | May change files |
|---|---|---|
discovery_gate |
Read Python files and check direct imported calls in the chosen symbols' modules. | No |
fix_plan |
Extract typed-hole fix plans with static AST and workspace evidence. | No |
fix_apply_plan |
Apply answered fix plans atomically through xpd's libcst validator and rollback journal. | Yes |
animate_status |
Report whether the managed ManimGX runtime is ready and how to set it up. | No |
animate_render |
Render a ManimGX scene in the managed local runtime. | Yes |
animate_artifact |
Inspect a storyboard or still, download an MP4, subtitles, or source archive, or read the manifest or render log. | No |
The resources page lists the resources and templates, and the prompts page lists the prompts.
Instructions
Section titled “Instructions”The server gives the agent these instructions when it connects.
xpd lints Python for slow or wrong habits with pandas, NumPy, SciPy, scikit-learn, scikit-lego, MAPIE, Category Encoders, linearmodels, arch, pymoo, plotly and Apache Hamilton, profiles data files, and checks that a refactor keeps its result. Its commands run in your shell, and this server adds what a command cannot do. Every path is relative to the project root.
- Before choosing a library, run `xpd find "<task>"`, then `xpd api <name>` with a returned name. `xpd api Class.method` prints a method's parameters with their defaults.- After you write or change Python, run `xpd check <paths>`. Fix every error. Fix a warning unless you can say why the code is right. `xpd check --fix` writes the safe fixes, and `xpd api <pack>/<rule>` explains a rule.- When you make, change or review a chart, in plotly or any other library, run `xpd charts <file>` and answer each question of Tufte's book that it prints.- To make a new chart, table or view, write a spec and run `xpd charts create start <spec.json>`, `xpd tables create start` or `xpd views create start`, then follow the next command each reply prints.- For model feature engineering, run `xpd feature-engineering` and follow skill://xpd/SKILL.md.- Before you choose methods for a data file, run `xpd profile <file>`.- After you refactor data logic, run `xpd equiv <script.py> --since HEAD`. The refactor is done when it prints `"equivalent": true`.- Before and after a refactor of a codebase, run `xpd enhance` (or `xpd enhance untangle`).- For open-ended goals when you are unsure which workflow fits, run `xpd quest start`.- To build a model from a data file, follow the `build_pipeline` prompt and call `discovery_gate` on the files once the library is chosen.- When asked to animate a concept as a video, run `xpd animate guide` and `xpd animate catalog` in the shell to compare sibling ManimGX primitives before coding. Use `animate_status` to check the managed runtime, `xpd animate inspect` to check layout and storyboards without encoding video, `animate_render` with `draft` or `preview` to iterate, and `animate_artifact` to inspect the storyboard before the final render.- skill://xpd/SKILL.md holds the workflows and style a linter cannot check.How a call runs
Section titled “How a call runs”Each tool validates that every file path stays inside the project root (--root, XPD_MCP_ROOT, client MCP roots when PLUGIN_ROOT is set, or the working directory), executes the matching xpd command, and returns typed JSON or media artifacts.
Errors and background tasks
Section titled “Errors and background tasks”Paths outside the project root and non-result binary failures return MCP tool errors with the command message. Failing discovery gate checks return as normal structured results. Clients can run animate_render as a background task with progress updates.