cd /news/developer-tools/apx-mcp-check-is-the-fastest-way-to-… · home topics developer-tools article
[ARTICLE · art-41787] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

APX `mcp check` Is the Fastest Way to Debug Shadowed MCPs

APX, the local runtime and tooling layer for the APC portable context layer, introduces `apx mcp check` to debug shadowed MCPs by showing source files, active entries after merge, and conflicts. The command reveals which MCP configuration won and which got shadowed, addressing the limitation of `apx mcp list` which only shows the merged result. APX enforces a priority order of runtime > shared > global, and `mcp check` makes conflicts visible to help developers identify unexpected overrides.

read3 min views1 publishedJun 27, 2026

mcp check

Is the Fastest Way to Debug Shadowed MCPs APC is the portable context layer. APX is the local runtime and tooling layer that makes APC useful every day. When an MCP setup feels wrong, the fastest fix is usually not to stare at the final list of servers. It is to inspect how APX merged the sources.

That is why apx mcp check

matters. It shows the source files, the active entries after merge, and any conflicts. In other words, it answers the real question: which MCP won, and what got shadowed?

list

is not enough apx mcp list

is useful, but it only shows the merged result. That is good for a quick inventory and bad for debugging drift. If the same MCP name exists in more than one scope, the final list hides the path that produced it.

A clean list can still hide a bad setup. For example:

.apc/mcps.json

~/.apx/projects/<id>/mcps.json

~/.apx/mcps.json

The name looks fine. The source may not be the one you expected.

APX is explicit about priority: runtime > shared > global

. The runtime file wins when names collide, then the shared APC file, then the machine-wide global file. The tests cover that chain, and the CLI prints conflicts on purpose.

That means two things:

If a server disappears or behaves differently than expected, do not guess. Ask APX which source won.

mcp check

shows apx mcp check

gives you three useful views at once:

That is the right level for debugging. It tells you whether APX is reading the repo file, the runtime file, or the global file. It also tells you whether an entry is APX-owned or coming from a foreign IDE config that APX only reads advisory.

A typical flow looks like this:

apx mcp check --project iacrmar
apx mcp list --scope runtime --project iacrmar
apx mcp list --scope shared --project iacrmar

Use check

first. Use list

second, when you already know where to look.

Imagine you add github

in shared scope because you want every clone of the repo to know the server exists. Later, you add another github

entry in runtime scope because this machine needs a token.

That is not a bug. It is a layered override. But if you forget the runtime copy exists, you may edit the shared file and still see the runtime version win. The project looks unchanged, because APX is doing what the merge rule says.

apx mcp check

makes that obvious. It will show the runtime entry as the winner and report the shared entry as the loser.

APX can inspect foreign MCP configs from other tools, but it will not rewrite them. The code is careful here: if an MCP comes from a foreign source, APX tells you to change it in that tool's config instead. That is a good boundary. APX should manage APX-owned scopes, not silently mutate somebody else's setup.

So the practical rule is simple:

APC stays portable because it only carries the shared part of the story. If a token or a local endpoint sneaks into the repo, the clone-safe contract breaks. APX protects that contract by keeping runtime state local and by making conflicts visible instead of hidden.

That is the deeper reason mcp check

exists. It is not a status screen. It is a sanity check for the boundary between portable context and local execution.

When MCP behavior looks wrong, start with apx mcp check

.

It shows the files, the winners, and the conflicts. That is usually enough to explain the issue in one pass, without guessing which layer won or which file got shadowed.

── more in #developer-tools 4 stories · sorted by recency
── more on @apx 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/apx-mcp-check-is-the…] indexed:0 read:3min 2026-06-27 ·