doctor

A command that checks whether a PyWry development setup is installed and reachable. PyWry is a Python toolkit for making desktop, browser, or notebook interfaces.

In plain words
What is it for?
Checking Python and PyWry versions, required extras, the native PyTauri module, and the PyWry MCP server startup.
Why use it?
It identifies missing Python packages, native components, or the PyWry tool server before development begins. It also checks whether the configured server can start.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/deeleeramone/pywry/doctor
Clone the repo
git clone --depth 1 https://github.com/deeleeramone/PyWry
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 478 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00027 $0.00478
Opus 5 $0.00014 $0.00239
Sonnet 5 $0.00005 $0.00096
Haiku 4.5 $0.00003 $0.00048

Measured 2d ago against content hash 9c609c43e5ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

doctor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude/plugins/pywry/commands/doctor.md · 18 lines

What it actually says

Run the following diagnostic steps and report a green/red summary:

  1. Python interpreter — run python --version and report the version. Fail if less than 3.10.
  2. PyWry importable — run python -c "import pywry; print(pywry.__version__)". Fail if ImportError; suggest pip install pywry.
  3. MCP extra installed — run python -c "import pywry.mcp, fastmcp; print(fastmcp.__version__)". Fail if ImportError; suggest pip install 'pywry[dev]' (or pywry[all]) — [dev] also pulls in ruff so the plugin's post‑edit format hook works.
  4. Native PyTauri binary — run python -c "import pytauri; print(pytauri.__file__)" and confirm the module loads. Fail if the platform wheel is missing; link to the PyWry README's Linux system‑package note when on Linux.
  5. MCP server smoke start — run pywry mcp --transport stdio in the background with a 3‑second timeout (this is the same command the plugin's .mcp.json launches). Confirm it starts without crashing (a clean stdio server waits on input). Kill it after. On Windows, also verify pywry.exe is on PATH — the plugin launches the console script rather than bare python to avoid the Microsoft Store Python shim.
  6. Claude Code MCP connection — remind the user to run /mcp in Claude Code to confirm pywry is listed and connected.

For each step, print a single line: ✓ step name or ✗ step name — reason — suggested fix. Do not run PyWry example scripts or create files. This command is read‑only.

If all six checks pass, end with PyWry is healthy. Try /pywry:scaffold <name> to create a new app.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 18 lines · 27 tokens per session scan A 9c609c43e5ed

Subscribe to this mod's changes

doctor is a command published in the GitHub repository deeleeramone/PyWry (93 stars, last pushed 8d ago), licensed Apache-2.0. It adds 27 tokens to every session and 478 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.