Errors, pagination and limits
Look up the errors the Intuidy MCP server and OAuth endpoints return, and the limits that apply to AIPI keys and MCP clients.
This page lists the errors that the Intuidy MCP server and OAuth endpoints return, and the limits that apply when you call AIPI, the Intuidy REST API, or the MCP server.
Authentication and scope errors
| Error | Cause | Fix |
|---|---|---|
Unauthorized: Missing or invalid Bearer token | A request to the MCP server has no bearer token, or the token is not valid. The response carries a WWW-Authenticate header with the Bearer scheme and the error invalid_token. | Send an AIPI key or an OAuth access token as a bearer token in the Authorization header. In Settings → AIPI Keys, check that the key's status is Active, not Revoked or Expired. |
insufficient_scope | The AIPI key or OAuth access token doesn't hold the scope the request needs. | Add the scope to the key in Settings → AIPI Keys. |
Internal server error | The MCP server could not process the request. | Send the request again. If it keeps failing, see Get help. |
Missing MCP tools
The MCP server advertises a tool only when the key's scopes reach it. A missing tool means a missing scope, not a missing capability.
- Call the
get_key_infotool. It returns the key's scopes and the capabilities hidden from the key. - Add the scope it names in Settings → AIPI Keys.
- The blanket scopes
mcp,mcp:read, andmcp:writenever cover integrations (the Connected services scopes), data rule writes (policies:write), users, or approvals. Grant each of those by name. - A key with no API or MCP scopes can't call anything.
OAuth errors
MCP clients that sign in instead of sending an AIPI key use the OAuth authorization code grant with PKCE. The token endpoint accepts the grant types authorization_code and refresh_token.
| Endpoint | Error code | Message | Cause |
|---|---|---|---|
| Token | invalid_request | code is required | An authorization_code request has no code. |
| Token | invalid_request | code_verifier is required | An authorization_code request has no code_verifier. |
| Token | invalid_request | refresh_token is required | A refresh_token request has no refresh_token. |
| Token | invalid_grant | redirect_uri does not match the authorization request | The redirect_uri differs from the one sent in the authorization request. |
| Token | invalid_grant | PKCE verification failed | The code_verifier doesn't match the challenge sent in the authorization request. |
| Token | invalid_target | resource does not match the authorization request | The resource differs from the one sent in the authorization request. |
| Token | unsupported_grant_type | grant_type must be authorization_code or refresh_token | The grant_type is any other value. |
| Registration | invalid_redirect_uri | — | A redirect URI in the client registration is not accepted. |
| Registration | invalid_client_metadata | — | The client metadata in the registration is not valid. |
| Revocation | invalid_request | token is required | The request has no token. |
Sign-in screen messages
The person who approves an OAuth connection sees these messages on the Intuidy sign-in screen, not the calling app.
| Message | Meaning | What to do |
|---|---|---|
| "This connection request can't be completed" | The connecting app could not be verified, or the connection could not be recorded. Nothing was connected. | Close the window and start the connection again from the app that opened it. |
| "The app did not open." | The app may no longer be listening for the sign-in. | Try again from the app, or close the window. |
Limits
| Limit | Behavior |
|---|---|
| REST coverage | No REST operation serves notebooks, managed databases, or the knowledge base. A key reaches them through the MCP server only. |
| MCP tool list | Filtered by the key's scopes and fixed when the client connects. After an Intuidy release, reconnect to see added or changed tools. |
| Tool-call duration | A workflow or agent run can take longer than a client's per-call timeout. Codex defaults to 60 seconds per tool call. Raise the timeout in the client's configuration; see MCP server. |
| Agent runs | Run Agent (Wait for Answer) holds the call until the agent answers. Start Agent Job (Async) and Get Agent Job Status start a run and check on it in separate calls. |
| OAuth grant types | authorization_code and refresh_token. |
Each REST operation's parameters and responses are defined in the OpenAPI document. See Download OpenAPI.
↳ Authentication ↳ MCP server ↳ Download OpenAPI