MCP Inspector
Test the server directly with the MCP Inspector:Server logs
The MCP server redirects all console output to stderr (stdout is reserved for JSON-RPC). Log lines are tagged by level:Common issues
”Export named ‘X’ not found”
The SDK package hasn’t been rebuilt after a code change. Run:Stray stdout corrupts the transport
If the MCP client crashes with a JSON parse error, something is writing to stdout. The server redirectsconsole.* methods to stderr, but native C++ addons or direct process.stdout.write calls can still leak. Check for third-party dependencies writing to stdout.
Session not found
Thesession_id is invalid — either the session was closed or was never opened. Call superdoc_open to start a new session. Do not reuse session IDs across conversations.
Refs are stale
Every mutation invalidates all outstanding refs. If a tool returns a ref-related error, re-fetch blocks withsuperdoc_get_content({action: "blocks"}) or re-search before retrying.
Related
- MCP overview — setup and tool reference
- How to use — workflow patterns and common operations
- Agent debugging — debugging for SDK-based agent integrations

