Skip to main content
Percher is getting started, with a limited number of registrations each day. Create an account.

Bring your own agent: using Percher Doctor

Your assistant works on your app. Doctor checks its state on Percher and suggests the next supported action.

Percher has no built-in AI. You bring the assistant you already use: Claude, ChatGPT, Cursor or another client that connects over MCP.

Your assistant can work with the code and context you give it. Doctor adds the platform checks: whether the app is asleep, whether a deployment failed, or whether a hold or pause needs attention. Doctor uses rules, not a language model. Your assistant interprets the result and makes changes with the permissions you grant it.

The loop

  1. Ask your assistant to run percher_doctor for the app.
  2. Read the result and follow the suggested next step. Your assistant uses

deploy or runtime mode when Doctor requests it.

  1. Let your assistant make the relevant change, or provide the information

it asks for.

  1. Publish when a code or configuration change needs deploying.
  2. Run Doctor again to check the current platform state. Also verify the

app's behaviour yourself: a successful check is not a complete app test.

Doctor does not edit files or publish. Those are separate actions.

What the result helps you do

Tell sleep from failure. On plans with idle sleep, an app without visits can sleep until its next visitor. Doctor can report it as asleep without waking it just to check. If something else prevents the app from serving, follow the reported action instead of treating it as ordinary sleep.

Respond to a hold or pause. Doctor identifies holds and pauses separately from crashes. A security hold keeps the app stopped; resuming does not lift it. A successful live publish with an image that passes the security scan lifts that hold. Other restrictions may still apply.

Investigate repeated crashes. Doctor can report a crash loop and suggest a runtime check. A recognised crash cause gets a specific next step, such as checking a missing dependency or an import path. An unclassified failure may still need log inspection.

Supply missing configuration. If a publish finds missing values for the keys listed in [env].required, it asks for them before building. Doctor can also suggest this action when it recognises a missing-variable failure. Your assistant needs you to supply secret values; it cannot infer them from the code.

Understand database checks. Doctor distinguishes a missing managed PocketBase database from a database whose status could not be checked. An unavailable check does not establish that the database is missing.

Investigate a failed deployment. In deploy mode, Doctor uses recognised platform errors to choose a recovery. Other failures may need build-log inspection. Doctor reports deployment status separately from the app's current state.

Where it runs

The hosted connector at https://mcp.percher.app/mcp runs these checks. It checks platform state and cannot read files on your computer. The published CLI (1.7.0) and local MCP server (1.5.1) still use the earlier doctor rules; their update is being prepared.

If your app itself calls an LLM, keep the provider key server-side: see Bring your own LLM provider.