TROUBLESHOOTING

DSH plugin troubleshooting

Each guide starts with the answer, then lists the checks that separate the plausible causes. Every step names what its result rules in or out, so a check that looks fine still tells you where to look next.

01

I installed a DSH plugin but the agent does not pick it up

An install that succeeded only proves the package landed on disk. The usual cause is that the plugin was never composed into the profile you are running, or its patch declares nothing the agent can call.

  1. re-run the install with the same --profile flag you used, and note which profile it names

    The profile is a positional argument on every plugin command. A plugin added under `default` is composed only for `default`, so running `web` shows none of it. If the two names differ, the install succeeded into a profile you are not using.

  2. open the plugin package.json and read dsh.bundle.patch

    A plugin whose manifest declares no patch, or points at a file that does not exist, installs cleanly and registers nothing. The registry only publishes repositories whose declared patch file was verified non-empty, so a repository that passed this check is not the likely culprit — a local or private package is.

  3. restart the session, then ask the agent to list its tools

    Registrations are effect-based: disposing the owning plugin fiber unregisters whatever it added. A plugin installed while a session is live is composed on the next session, not the current one.

02

Why does installing a plugin fail with ERR_PNPM_ADDING_TO_ROOT?

An outdated pnpm on your PATH is shadowing the one DSH ships. The generic allowBuilds hint DSH prints alongside this error is misleading here: resolution failed before any build script ran.

  1. pnpm --version

    Below 10 is the cause. DSH writes profile settings into pnpm-workspace.yaml that only pnpm 10+ reads; pnpm 7–9 see a workspace root and abort.

  2. which -a pnpm

    More than one path means a version manager line such as $HOME/.n/bin is winning. Prepend the DSH app bin directory (on macOS typically <DSH app>/Contents/Resources/host/bin) ahead of it.

03

My MCP server runs fine on its own but DSH cannot connect to it

A server that works in your terminal is being launched differently by the plugin: another working directory, a smaller environment, or a transport the two sides disagree about.

  1. run the exact command the plugin configures, from the profile working directory

    A relative path or a `.env` file that only exists in your shell directory is the most common failure. If it breaks here, the plugin is not the problem.

  2. compare the transport: stdio vs HTTP

    A server started as a subprocess speaks stdio; one already listening on a port speaks HTTP. Configuring the wrong one connects to nothing and usually reports a timeout rather than an error.

  3. print the environment the plugin passes through

    Credentials read from your shell profile are absent when the plugin launches the process. Set them in the profile configuration rather than relying on your interactive shell.

04

How do I know whether a plugin is compatible with the DSH version I run

There is no compatibility field to trust in the registry. Compatibility is a property of the plugin against your installed host, so it has to be checked from the manifest and the repository, not inferred from being listed.

  1. check the DSH version you are running (app About screen, or the CLI you launch it with)

    Record the host version first. Without it, "compatible" has no referent and a bug report cannot be reproduced.

  2. read the plugin package.json engines and peerDependencies

    An engines range that excludes your host version is a declared incompatibility. An absent range is not a promise of compatibility — it means the author declared nothing.

  3. check the repository last commit and its issues for your version

    A plugin that has not been touched since before your host release may still work, but nothing in the registry proves it does. Stars are not a compatibility signal.

◇
What these guides do not cover

A plugin that passes manifest validation has not been audited. These guides help you find why a plugin is not working; they are not a security review, and a working plugin is not a safe one.