# A server runs outside the gateway (/docs/troubleshooting/server-outside-mcpd)

What turno doctor means by "<name> runs outside mcpd", and the fix.

This page is for when `turno doctor` reports the finding below: what it means and how to fix it.

## What you see [#what-you-see]

```text
  !  <name> runs outside mcpd
```

It is a warning; warnings do not change the exit code. Words in angle brackets stand for values from your machine.

## Why it happens [#why-it-happens]

An agent config starts this MCP server directly, so every session gets its own copy instead of sharing the gateway's.

## Fix [#fix]

turno mcp import when the server is not in mcp.toml yet; turno mcp sync (turno doctor --fix runs it) when it is; otherwise remove the entry from the agent config, as doctor says.

Then run `turno doctor` again to see the row turn into `ok`.

The check lives in [`packages/turno/src/cli/commands/doctor.ts`](https://github.com/wimo-dev/turno/blob/main/packages/turno/src/cli/commands/doctor.ts).