FDE Times dataFDE jobs open 913▼15 Change in open roles over 7 days, like-for-like: roles from companies we started tracking this week are left outNew in 7 days 69Companies hiring 200Remote-friendly 24%Median US pay $200kTop hirer Databricks 106
中文VI

The newspaper of the Forward Deployed Engineer

Tools

Before blaming the model for a broken tool, open MCP Inspector

One npx command shows every JSON-RPC message, the server's stderr and exit codes that can fail a CI pipeline.

ShareLinkedInFacebookX

In brief

  • The official MCP debugging guide treats Inspector as the place to start: you call tools, prompts and resources directly, with no model in between.
  • One package, three clients: Web by default, CLI with --cli and TUI with --tui. It runs through npx and needs Node.js 22.23.4+, 24.22.1+ or 26.12.1+.
  • Inspector runs servers with your permissions: use a current version, connect only to servers you trust, and choose a Protocol Era yourself when testing against the 2026-07-28 spec.
Diagram: a stdio MCP server connected to MCP Inspector through two channels. The stdout channel leads to the Protocol tab and carries JSON-RPC messages, but among them is a log line, \"Connected to ticket DB\", highlighted in orange because it is not JSON-RPC. The stderr channel leads to the Console tab, with a note that the fix is to send logs to stderr.
In a stdio server, stdout is the protocol channel. A harmless log line slipped into it will break JSON-RPC. Logs should go to stderr, which the Inspector's Console tab displays. Source: the official Model Context Protocol debugging guide and MCP Inspector documentation.

The Model Context Protocol’s official debugging guide contains a short warning that many teams overlook: a local stdio MCP server must not write logs to stdout, because doing so interferes with the protocol. The consequences are often hard to spot. Sometimes all the user sees is an agent saying it “couldn’t call the tool”.

At a client site, that is usually the moment people start editing the prompt, switching models or suspecting the agent framework. Most of those hours are wasted, because the fault sits at the bottom layer: what the server returned, over which channel, with which environment variables. MCP Inspector exists to answer that question before anyone touches the prompt.

For an FDE, this is a skill worth having ready. If a client connects its internal systems to an agent through a home-grown MCP server, the person called in when it breaks may well be you.

One binary, three ways into a server

The official documentation describes Inspector as an interactive toolkit for testing and debugging MCP servers in the browser, on the command line and in the terminal. The @modelcontextprotocol/inspector package is developed by the MCP maintainers and the community.

According to npm, the package was created on 2024-11-19, version 2.0.0 shipped on 2026-07-28 and the latest release, 2.16.0, came out on 2026-11-18.

The package contains three clients sharing one binary: Web is the default, the CLI is enabled with --cli and the TUI with --tui. Nothing needs installing beyond Node.js 22.23.4+, 24.22.1+ or 26.12.1+; it runs through npx:

npx @modelcontextprotocol/inspector node path/to/server/index.js

Inspector can connect to stdio or Streamable HTTP servers. You call tools, prompts and resources directly and watch the stream of notifications. The crucial point is that the model no longer sits between you and the server.

Tracing a broken tool, tab by tab

Take a hypothetical case: a client has an MCP server for looking up internal tickets. It works fine when run from a terminal, but once attached to a client, the agent keeps reporting that the tool failed.

The first step is to open the web client and look at the Console tab. It shows the stderr of the stdio server process, where most servers write their diagnostics. Alongside it, the Protocol tab records every JSON-RPC message between Inspector and the server.

If the Console shows nothing unusual but the protocol is still misbehaving, search the server code for anything that prints to stdout. In this example, what flows over stdout might look like this:

{"jsonrpc":"2.0","id":1,"result":{"tools":[...]}}
Connected to ticket DB
{"jsonrpc":"2.0","id":2,"result":{...}}

The middle line is a harmless log message, but it is not JSON-RPC. For a stdio server, stdout is the protocol channel, so that line lands exactly where a message should be. The documentation also gives the fix: send logs to stderr, where the Console tab will display them for you.

If the protocol is clean and the tool still fails, think about environment variables. The debugging guide states plainly that a stdio server launched by a client automatically inherits only a limited subset of environment variables, and that the subset differs by platform.

An API token or database path present in your shell may not exist at all when the client launches the server, which is precisely the “works in the terminal, breaks in the client” kind of failure.

For HTTP servers, the Network tab shows the HTTP layer for SSE and Streamable HTTP servers. Work from the bottom up: HTTP, then JSON-RPC, then the content the tool returns.

Bringing the tests into CI with exit codes

Finding a bug once is half the job. The other half is making sure it does not come back after the next deploy, and the CLI is built for exactly this. When tools/call returns isError: true, the CLI still prints the payload but exits with code 5, so an && chain in CI will stop.

Exit code Meaning
3 The server requires authentication
4 Could not connect to the server
5 tools/call returned isError: true
6 tools/list --strict found error-level schema problems

The --strict flag deserves wider use. Combined with tools/list, it prints every tool schema compatibility problem to stderr, with the path, a description of the issue and a suggested fix, then exits with code 6 if any problem is at error level.

A schema that works with one client but breaks with another is the kind of bug to catch in CI, not one to leave for the client to discover.

A misleading default and a security risk

The first trap is the Protocol Era. By default Inspector uses legacy, meaning it calls initialize and does not probe. The documentation explains why: probing with server/discover hangs on legacy stdio servers that do not respond, and clutters the protocol record.

So to test against the 2026-07-28 spec, you have to select auto or modern yourself; otherwise a “pass” only means a pass with the old handshake.

The more serious risk is security. CVE-2025-49596, rated Critical, allowed remote code execution on Inspector versions below 0.14.1 because the client and proxy did not authenticate each other.

The fix shipped in 0.14.1. The current security documentation still stresses that the web backend can launch processes, and that only an API token stands between that capability and anything able to reach the port.

The practical upshot: a stdio server runs with your own permissions. On a laptop with access to a client’s systems, connect only to servers you trust enough, and do not leave an old Inspector version lurking in some script.

What to learn first, and what to put on a CV

Start with the web client and a stdio server you wrote yourself. Deliberately print a line to stdout, watch how the protocol breaks, then fix it. Next, remove an environment variable and observe the symptoms. Those two exercises drill the two causes the official debugging guide names.

If you are aiming for an FDE role involving MCP or agent integration, show that you can debug the protocol layer. On a CV, a line such as “built a CI step using the MCP Inspector CLI to block deploys when a tool fails or a schema is incompatible” carries far more weight than “experience with MCP”.

When an agent reports a broken tool, the first person to open Inspector is usually the first to find the bug. At a client site, that is enough to earn trust.

Was this article useful?

Use with your AI assistantAsk Claude ↗Ask ChatGPT ↗
9 sources
Read next on the roadmap · Stage 3: Applied AIWhen a client's hardest PDF is worth 25 times the parsing priceLlamaParse's Fast tier handles plain text, but tables with merged cells need a higher tier, so test the hardest pages before you quote a price.