Skip to Content

Troubleshootingturno doctor --security

The gateway token is old

What turno doctor --security means by "the mcpd token is <days> days old (more than <token_max_age_days>)<derived>", and the fix.

View source

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

What you see

  !  the mcpd token is <days> days old (more than <token_max_age_days>)<derived>
     fix: turno mcp token rotate && turno mcp sync

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

Why it happens

The master token is older than doctor's limit. Rotating it replaces it and invalidates every profile token.

Fix

Run:

turno mcp token rotate && turno mcp sync

turno doctor --security --fix does not run it for you, because it needs a decision or an answer from you.

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

The check lives in packages/turno/src/cli/security.ts.

On this page