# MCP troubleshooting

> Fix a coding agent that cannot sign in to Corfedo, does not trust its certificate or does not see your repositories.

Source: https://docs.corfedo.ai/connect/mcp/troubleshooting/

After a fix, ask your agent "Use Corfedo to list my repositories" to confirm.

## Sign-in and access

| What you see | Why | What to do |
| --- | --- | --- |
| **Connect** offers no coding agents | The workspace turns MCP off or allows no clients | Ask a workspace administrator to allow your client in **Settings** › **Client access** |
| "This workspace does not allow this client for the requested resource", or "You cannot authorize this client in this workspace" | Your client is not among the allowed ones, or you are not an active member | Check that your client is listed on **Connect**. If it is not, ask an administrator to allow it. If it is, ask them to check your membership. |
| Registration failed, no dynamic client registration, or sign-in never starts | The client does not send a client ID metadata document | For Cursor, add `auth.CLIENT_ID` as in [MCP clients](https://docs.corfedo.ai/connect/mcp/clients/). Clients with only dynamic client registration, such as JetBrains AI Assistant and Junie, cannot connect. |
| "The client metadata document could not be used" | The installation could not fetch the client's identity from its vendor over HTTPS | Try again in a minute. If it persists, ask the operator whether the installation can reach the vendor, for example `claude.ai` or `cursor.com`. |
| "This sign-in request is too long to continue" | The client sends a request too long to carry through sign-in from a browser that is not signed in to Corfedo | Sign in to Corfedo in that browser, then start the connection again from the agent |
| "A workspace administrator has turned off access from … for your account" | Coding agent access is limited to members of selected groups | Ask an administrator to add you, or sign in with another account |
| The agent asks you to sign in again or loses access | The connection was revoked, expired, or its client is no longer allowed | Sign in again when the browser opens |

## The agent does not trust the certificate

The agent reports a certificate or TLS error while the workspace opens fine in your browser. The installation uses a local certificate authority, for example on `corfedo.localhost`, and many agents use their runtime's trust settings instead of the system's. Copy the installation's root certificate to your machine. On the Docker host it is `~/corfedo/generated/caddy-root.crt` by default. Point the runtime at your copy in the shell you start the agent from:

```sh
export NODE_EXTRA_CA_CERTS="$HOME/corfedo/generated/caddy-root.crt"
```

Python uses `SSL_CERT_FILE` or `REQUESTS_CA_BUNDLE` the same way. An installation with a certificate from a public authority needs none of this.

## The agent sees fewer repositories than you expect

`list_repositories` misses repositories you can open in the browser, or a tool returns `repository_not_found`.

| Why | What to do |
| --- | --- |
| You chose **Selected repositories** when you approved the client | Select **Revoke** for the client in **Connect** › **Manage connections** and connect it again |
| The repository does not show **Searchable** yet | Wait for indexing, or ask a workspace administrator |
| You do not have access to the repository | Ask a workspace administrator |

For other tool errors, see [When a tool fails](https://docs.corfedo.ai/connect/mcp/tools/#when-a-tool-fails).
