Skip to content

Error codes ​

MCP Server Fuzzer surfaces every user-facing failure through numbered error codes. Each code follows the CCTTT format:

  • CC (two digits) identifies the category (e.g., 10 for Transport, 20 for Auth)
  • TTT (three digits) identifies the specific error within that category

This keeps diagnostics easy to scan while preserving enough room for future error types. Refer to the table below for the current registry.

CodeCategoryDescription
10001TransportTransport failure
10002TransportUnable to establish connection with the server
10003TransportMalformed or unexpected server response
10004TransportAuthentication with the server failed
10005TransportNetwork connectivity or policy failure
10006TransportInvalid transport payload
10007TransportTransport registration or selection error
20001AuthAuthentication subsystem error
20002AuthAuthentication configuration is invalid
20003AuthAuthentication provider is misconfigured
30001TimeoutOperation timed out
30002TimeoutSubprocess execution timed out
30003TimeoutNetwork request timed out
40001SafetySafety policy violated
40002SafetyNetwork access blocked by safety policy
40003SafetySystem command blocked by safety policy
40004SafetyFilesystem access blocked by safety policy
50001ServerServer returned an error
50002ServerServer is unavailable or not responding
50003ServerProtocol negotiation failed
60001CLICLI error
60002CLIInvalid CLI arguments
70001ReportingReporting error
70002ReportingReport validation failed
80001ConfigConfiguration error
80002ConfigConfiguration file could not be read
80003ConfigConfiguration validation failed
90001FuzzingFuzzing engine error
90002FuzzingFuzzing strategy failed
90003FuzzingAsync executor encountered an error
95001RuntimeRuntime management error
95002RuntimeFailed to start managed process
95003RuntimeFailed to stop managed process
95004RuntimeFailed to send process signal
95005RuntimeProcess registration failed
95006RuntimeProcess watchdog failed to start

Each exception class in mcp_fuzzer/exceptions.py sets its code and description fields so CLI output, logs, and structured reports can reference these values. Use MCPError.to_metadata() or get_error_registry() to fetch the mapping programmatically.

Released under the MIT License.