GuidesUpdated

MCP server configured but unavailable to your coding agent?

Find why an MCP server isn't reaching your coding agent by checking scope, connection, login and tool use, with a read-only docs server as a test.

On this page

Seeing an MCP server's name is only the first check. The CLI must load its config, connect, pass any login, expose the tool to the session, and choose to use it. Find the first step that fails. Canopy can inspect supported CLI configs, but one CLI's server or login never becomes another CLI's tool.

Canopy agent sessions beside shared project context
Canopy agent sessions beside shared project context

Name the CLI and project that fail

Note the agent CLI and version, project directory, server name, and whether the server should be personal or project-wide. In Canopy, confirm which CLI owns the session. Canopy's MCP view shows servers across CLI configs but doesn't grant access. Run the CLI's own status command before editing config.

Configured is not the same as connected

In Codex, `codex mcp list` shows configured servers and `codex mcp login <server-name>` handles OAuth. In Claude Code, `claude mcp list` and `claude mcp get <name>` show status, and `/mcp` checks it inside a session. States include connected, needs authentication, failed, pending approval, rejected and disabled. Never paste a token into chat; use the CLI's login flow.

Fix the first failing step, then check status again.
What you seeCheckNext step
Not listedCLI, project, user/project scope, config locationAdd it to the CLI that will use it
Listed but pending or disabledProject trust and tool settingsReview and enable it in that CLI
Authentication neededProvider account and authorization scopeUse the CLI's login flow
Connection failedServer process or URL, network, environment variablesFix the endpoint or process; check status again
Connected but unusedTool present in the live session; task wordingAsk for one specific read-only, tool-backed answer

Test with a public read-only server

OpenAI runs a public docs MCP server at `https://developers.openai.com/mcp`. Add it with `codex mcp add openaiDeveloperDocs --url https://developers.openai.com/mcp` or `claude mcp add --transport http openaiDeveloperDocs https://developers.openai.com/mcp`, only in the CLI you're testing. Run `mcp list` (and `/mcp` in Claude Code), then ask the agent to find one API field and cite the page. The server only returns documentation, so you test discovery without exposing GitHub, tickets or a database.

Check scope and approval before copying config

Claude Code has user and project scopes; project servers live in `.mcp.json` and need workspace trust and approval. Codex has its own config and OAuth state, so a Claude Code server isn't in Codex, and the two may use different credentials. For a team, commit only a safe project-level definition, then have each person approve and log in. Review a server's tools before enabling one that can write.

Prove the agent used the tool

A plausible answer isn't proof of an MCP call. Ask for a current fact only the server knows, request a source link, and check the CLI's tool activity. If the answer came from memory, tell it to use the server. If one CLI works and another doesn't, compare their status, scope and login. Record CLI and Canopy versions, since integrations differ by release.

Copyable resources

MCP connection diagnosis

Start with a read-only server; leave credential values out.

Canopy release / platform: [ ]
Agent CLI and version: [ ]
Project directory and server name: [ ]
Expected scope (personal or project): [ ]
CLI list/get status: [ ]
In-session status and approval: [ ]
Authentication state, no tokens: [ ]
Server URL or process and error: [ ]
One read-only tool request and cited result: [ ]
Next failing step and owner: [ ]

Frequently asked questions

Why can Claude Code use an MCP server but Codex cannot?

Each CLI loads its own config and login. Add, approve and check the server in Codex separately; Canopy doesn't transfer Claude Code's tools or credentials.

Does a server in Canopy's MCP view mean an agent can use it?

No. Discovery isn't proof of a live connection, authorization or tool use. Check the owning CLI's status and make a real tool-backed request.

Should I put an MCP token in AGENTS.md or CLAUDE.md?

No. Those files are instructions, not a secret store. Use the CLI's credential and MCP config flow, and keep tokens out of committed files.

Is an MCP server the same as a skill?

No. An MCP server supplies live tools or data. A skill describes a repeatable workflow and may tell the agent when to use those tools.

More questions and answers →

Sources and further reading