Skip to content

Troubleshooting

Start by checking the server from the command line, outside the agent:

curl -s https://clarive.example.com/api/v2/ping                 # the server and its API answer
clarive whoami                                                   # the token works
clarive api search topic | head                                  # the server publishes operations

In Claude Code, /mcp shows each server's status and its tools, and claude mcp get clarive the command or URL it uses. Run the bridge by hand to see its errors (type a request, or Ctrl-C to leave):

clarive mcp --debug
{"jsonrpc":"2.0","id":1,"method":"tools/list"}

The server fails to connect

  • Through the bridge: the client could not start clarive. Give the full path of the binary in the client's configuration (desktop applications do not see your shell's PATH), and check clarive mcp starts from a terminal. no server configured means the profile has no URL: run clarive login --url ....
  • Directly: check the URL ends in /mcp and starts with https://, and that the client sends the Authorization header. A client that only does OAuth needs no header: see Microsoft Copilot and OAuth.

401 / Authentication required / Invalid, expired or revoked token

The token is missing, expired, revoked or disabled, its user is inactive, or it is a git-only token from Preferences. With the bridge, run clarive login again. Directly, make a new token (clarive auth create-token) and update the client's configuration.

405 This server does not offer an SSE stream

The client opened a GET to listen for server events. Clarive answers every request directly and has no event stream; MCP clients fall back to plain POST requests. If yours does not, configure it for the Streamable HTTP transport ("type": "http"), not SSE, or use the bridge.

The tool list is empty

  • The user has no permission for anything: clarive whoami --actions.
  • The options leave nothing: namespaces with a typo, or read_only on namespaces that only have write tools.
  • clarive api search topic finds nothing and GET /api/v2/ops lists no operations: the server did not load its API modules. The first builds of 7.24 did not find them in packed installations (bin/cla.exe); install a later build. Otherwise, the web server log names any module that failed to load (API module ... failed to load).

A tool the agent needs is missing

Tools whose permission the user lacks are not listed. clarive api describe <operation> shows the permission; ask an administrator for a role that grants it. A read token, or read_only, hides every tool that changes data.

forbidden: ... was not run, event.mcp.call stopped it: ...

An event rule refused the call (see Auditing and control); the message after the colon is the rule's. Ask whoever maintains the rule.

unavailable: Clarive is in maintenance mode

Only administrators can use the API during maintenance. Wait until it ends.

Answers are cut

Answers longer than 256 KB are cut with a note. Ask the agent for less: a smaller limit, a filter, a summary, or one page at a time.

Calls time out

A tool that runs something remotely (server_execute, rule_run, ci_run_service) takes as long as that takes. The bridge has no limit of its own, but your client may: raise its tool timeout. For jobs, the agent should create the job and then follow it with job_get and job_logs instead of waiting in one call.

Too many tools

Hundreds of tools fill a model's context before it starts working. Use --compact (the agent searches for operations and calls them through clarive_call) or --namespaces with the namespaces you need. See Connecting agents.

OAuth: the client says the resource or issuer does not match

The discovery documents name the URL Clarive works out from the request. Behind a proxy that hides the public host or ends TLS without X-Forwarded-Proto, they may say http:// or an internal host. Set oauth.issuer in the config to the public URL (https://clarive.example.com) and restart. Check with curl https://<your server>/.well-known/oauth-protected-resource: resource must be the URL the client was given, ending in /mcp.

OAuth: "Redirect URI not allowed for dynamic registration"

The client registered itself with a callback that is not in oauth.dcr_redirect_uris. Add its pattern there, or create a client for it with oauth.create_client and configure the client manually. See Microsoft Copilot and OAuth.

After signing in, the browser goes back to the consent page: the login page reloads it, SAML2 brings it back as RelayState, and a CAS login finds it in a cookie the consent page left (half an hour). If the app opens instead (an IdP that drops RelayState, cookies blocked), start the connection again from the client: you are signed in now and the consent page shows at once.