MCP troubleshooting
Symptoms, causes and fixes for connecting an MCP client to onefold.
The client says the server does not support dynamic client registration
Symptom. Incompatible auth server: does not support dynamic client registration, before any
browser opens.
Cause. The client can only sign in by registering itself dynamically. onefold does not offer that; it accepts clients that publish a Client ID Metadata Document.
Fix. Connect that client with an agent credential. Cursor is the common case.
Sign-in ends with invalid_scope
Symptom. The browser returns to the client with error=invalid_scope, or the client prints
OAuth provider returned invalid_scope.
Cause. The client asked for scopes other than developer:read and developer:write. Scopes
such as openid or profile belong to applications, not to an MCP connection.
Fix. Ask for the two MCP scopes. In Codex the first attempt fails this way and it then retries by itself; see Connect Codex. See Scopes and permissions.
Sign-in ends with invalid_target
Symptom. The client reports invalid_target, saying the resource parameter named a
protected resource this server will not issue a token for. onefold shows the same message on its
own error page instead only when it does not know the client or the address it returns to.
Cause. The client asked for a token for a different address than the MCP server's. The usual
reason is a trailing slash: the server is https://onefold.eitozx.com/api/mcp, and a client
configured with /api/mcp/ may name the wrong one. VS Code does.
Fix. Remove the trailing slash from the address in the client's configuration.
An error page about a mismatching redirect URI
Symptom. After signing in, an onefold error page reads Mismatching redirect URI.
Cause. The client sent you back to an address its published metadata does not list. A local
port is not the problem: any port is accepted on localhost, 127.0.0.1 and ::1. The scheme,
host or path differs.
Fix. Update the client. If you maintain it, list the redirect URI in its metadata document
without a port, and use http only for a loopback address.
Signed in, but the client is not connected
Symptom. The browser showed the consent screen and you approved it, and the client still reports that it needs authentication.
Cause. The client never received the redirect. A command-line client listens on a local port for it; if the command had already exited, or was run from a script with no terminal, nothing was listening.
Fix. Run the sign-in command in an interactive terminal and leave it running until it prints
that it is authenticated. In Claude Code, claude mcp login needs one.
A callback rejects the response
Symptom. A client you are writing fails on the redirect back from onefold.
Cause. The redirect carries iss beside code and state. A callback that refuses
parameters it does not recognise fails on it.
Fix. Accept the parameter. If your client talks to more than one authorization server, compare it with the issuer you expected before exchanging the code. See MCP authentication.
401 from the server
Symptom. The client reports HTTP 401, Authentication required, not_authenticated, or
that it needs authentication.
Cause. One of:
- the connection was disconnected, or the agent or its credential was revoked, in the portal;
- an agent credential was mistyped;
- the account that connected it was disabled or held, or its email address is not verified. Confirming the address ends the connection, with the API keys and agents it created, so connect again afterwards;
- the account's password was reset through Forgot password?, which ends every connection that account made, with the API keys and agents those connections created;
- an agent credential expired, or a lifetime cap shorter than its age was saved;
- the organization that owns the agent was suspended.
Fix. For a sign-in connection, sign in again and approve it. For an agent credential, check it on the Agents tab where its agent was created; if it is expired or gone, add a new credential.
A refresh is refused after disconnecting
Symptom. The client tries to refresh its token and gets invalid_grant.
Cause. That is what disconnecting does. A refresh token whose authorization was ended on purpose is refused at once.
Fix. Sign in again. The client is asked for a new consent.
A connection is not on an Agents tab
Symptom. A client signed in successfully and is not listed on an application's Agents tab.
Cause. A connection is listed on the Agents tab of each application it reaches, from the moment you approve it. One you limited to chosen applications is not listed on the others, and you see other members' connections only with View agents on that application.
Fix. Open an application you chose on the consent screen. To reach others, disconnect the client and connect it again with Every application or the applications you want.
Reconnecting after Disconnect
Disconnecting is not a ban. Start the client's sign-in again and approve the consent screen. It appears on the Agents tab as a new connection, and you choose what it may do and where again.
429 from the server
Symptom. Calls start failing with 429.
Cause. A connection may make 60 requests a minute to the platform server. The documentation server has a limit per address.
Fix. Slow down. Limits reset within a minute.
An image is too large
Symptom. An upload tool refuses the call before it runs, naming image_base64.
Cause. An image travels inside the call, which carries at most about 1.8 MB of image whatever your plan allows.
Fix. Make the file smaller, or upload it in the portal on the application's or organization's
appearance settings. Your agent can give you the link with how_do_i.
An approval link says the request expired or was already answered
Symptom. Opening the link the agent gave you shows that the request is no longer waiting.
Cause. A link lasts 30 minutes and can be answered once. Revoking or disconnecting the agent also closes every request it is waiting on.
Fix. Ask the agent to request the change again. It reads the outcome of the old request with
get_approval_request. See Changes you approve.
A refusal tells the agent to send you to the portal
That is expected when the agent's access, a missing permission or your plan does not allow the
call: the refusal carries a how_to with the steps and a link, for the agent to pass on. See
What you do in the portal.
A tool call failed but the status was 200
That is expected: a failed tool call still returns 200, with the failure inside the result.
See Tools and prompts.
Something else
For errors during sign-in that are not specific to MCP, see Troubleshooting.