# Troubleshooting

Resolve setup errors, missing tools, conflicting saves and failed uploads.

## Invalid connection request

Start sign-in from the MCP client. DevGuides expects a complete authorization request including PKCE, a resource and a matching callback. Opening the consent page by itself cannot identify the client. Check the registered ID and exact callback in [Connect your agent](https://www.devguides.com/docs/connect). For Codex CLI, set both the callback port and the full callback URL.

## My client asks for a secret

For a listed client, use its public client ID, OAuth with PKCE and an empty secret. Perplexity’s automatic registration warning appears when the public client ID is missing. Set `devguides-perplexity` and use its standard callback. If your custom integration uses a different callback, follow [Client identification](https://www.devguides.com/docs/oauth#identify-your-client).

## Some tools are missing

Inspect the result of `tools/list` or the client’s tools screen. DevGuides exposes only the tools available to the current grant. [Authorize the connection again](https://www.devguides.com/docs/permissions#change-or-revoke-access) for additional scopes, refresh the tool list and start a new session. In ChatGPT, check the workspace allows write actions and select **@DevGuides** on messages that need the plugin.

## A draft or publication failed

| Result | What to do |
| --- | --- |
| `conflict` | Preserve your proposed changes. Read the latest draft or private revision and review the differences before saving or publishing again. For a reused creation key, retry with the original fields. |
| `invalid` | Check title, Markdown, topic count, slug and banner ownership. A public guide needs a nonblank body. |
| `rate_limited` | Wait the returned `retryAfterSeconds` before publishing. You can keep saving private work. |
| `unavailable` | Check the guide ID, signed-in author and consent. Use draft tools for an unpublished guide and revision tools for a published one. |

## A token exchange failed

For `invalid_target`, check the exact resource URL, including `www` and `/api/mcp`. For `invalid_request`, check the form encoding, required fields and duplicate parameters. For `invalid_grant` after refresh, use the newest stored tokens or sign in again. On `temporarily_unavailable`, retry later. [OAuth reference](https://www.devguides.com/docs/oauth)

## Media will not display

Check the file type and byte limits, PUT the original bytes with the returned headers, then finish the upload. Use the finished DevGuides URL for the banner or inline image. For video, keep the finished Markdown on its own line. [Media upload guide](https://www.devguides.com/docs/media)

If the problem persists, [contact DevGuides support](https://www.devguides.com/support) with the client name, action and error message. Keep tokens and temporary upload URLs out of support messages.
