Troubleshooting

Error reference

Use the error code to choose a recovery step without exposing secrets.

Swipe wide tables and code examples sideways to see the full content.

Swipe wide tables and code examples sideways to see the full content.

Toolport’s application errors carry a stable code, a human-readable message and optionally the input field responsible. The example below is the application payload; an MCP client may display it inside a tool-result envelope.

Example error

{
  "error": {
    "code": "INVALID_ARGUMENT",
    "message": "limit must be an integer from 1 to 50.",
    "field": "limit"
  }
}

Recovery by code

Code

Meaning

Action

AUTH_REQUIRED

Missing or invalid credential

Check token delivery and validity; reconnect.

ACCESS_DENIED

Credential cannot read repository

Verify allowed repository and least-privilege grant.

INVALID_ARGUMENT

Input violates schema

Correct the named field; reject unknown inputs.

NOT_FOUND

Known-access issue not found

Check repository and issue number for get_issue.

RATE_LIMITED

Upstream throttling

Wait or reduce requests; honor actual retry guidance.

UPSTREAM_UNAVAILABLE

Tracker unreachable

Check upstream status and retry when appropriate.

Retry deliberately

Correct INVALID_ARGUMENT before retrying. Repeating the same invalid input does not help. AUTH_REQUIRED and ACCESS_DENIED require a credential or access correction. Do not invent a fixed retry duration for RATE_LIMITED: this contract specifies none.

Protocol versus tool errors

A transport or initialization failure prevents the call from reaching the tool and belongs in Connection failures. An application failure is returned by the tool. MCP defines isError for tool execution failures; the code values in this table belong to Toolport’s example contract, not to the MCP protocol itself.

Safe diagnostics

Record the tool name, sanitized inputs, error code, client/server versions and the stage at which it failed. Never expose the token, an internal stack trace or private repository details in public logs. If a request identifier exists in your real implementation, include it; this contract does not promise one.

MCP: official tool error semantics

Connection failures

Create a free website with Framer, the website builder loved by startups, designers and agencies.