Error codes
Covers FrontMCP 1.12.2 as of
FrontMCP reports problems in two ways. Protocol errors are JSON-RPC error responses with a numeric code: the request itself couldn't be handled. Tool errors are normal results with isError: true: the request was fine, but the tool couldn't do what was asked. Models can read tool errors and try again. Error classes lists the class behind each code, and which ones keep their message in production.
Tool errors
A tool error arrives as a result like this:
{
"content": [{ "type": "text", "text": "There's no ticket T-9." }],
"isError": true,
"_meta": { "errorId": "err_4418a34f3368d9dc", "code": "PUBLIC_ERROR" }
}
_meta.code | Cause | Fix |
|---|---|---|
INVALID_INPUT | The arguments didn't match inputSchema. execute() didn't run. Jobs report Invalid input for job "…"; workflows report Invalid input for workflow "…", before starting steps. These input failures are not retried. The text lists each problem. | Check the field paths in the message. If a model keeps getting it wrong, describe the field better. |
PUBLIC_ERROR | The tool failed with a PublicMcpError, through this.fail() or throw. A PublicMcpError with a code of its own sends that code instead. | Intended: the message is for the model. |
SERVER_ERROR | The tool called this.fail(new Error(...)) with a plain Error. In production the text is "Internal FrontMCP error" and an error ID. | Use PublicMcpError if the message is meant for the model. |
INTERNAL_ERROR | The tool failed with an InternalMcpError through this.fail(). An InternalMcpError with a code of its own sends that code. In production the text is "Internal FrontMCP error" and an error ID. | Intended, if the message is only for your logs. |
TOOL_EXECUTION_ERROR | execute() threw a non-public error other than an auth error, like a plain Error or an InternalMcpError. In development the text is prefixed Tool "…" execution failed: and ends with the stack; in production it's "Internal FrontMCP error" and an error ID. | Find the error ID in the server's log, next to the original message and stack. Use PublicMcpError for errors the model should read. |
INVALID_OUTPUT | The result didn't match the tool's outputSchema, held NaN or Infinity, or carried undeclared keys under output.undeclaredKeys: "fail". A "keep" policy also fails if parsing prevents a dropped key from being restored. An agent's answer that doesn't match its outputSchema fails the same way (since 1.8.7; 1.8.5 and 1.8.6 reported TOOL_EXECUTION_ERROR). In development the text names the first field that didn't match; in production it's "Output validation failed. Please contact support." | Fix the result, or the schema if the result is right. See Shaping Tool Results. |
FLOW_EXITED_WITHOUT_OUTPUT | execute() returned undefined. | Return a value, even { ok: true }. |
INVALID_PATH_PARAMETER | A tool of the OpenAPI adapter got a path parameter that is . or .., or one that would take the URL outside the operation's path. Nothing is sent. | Send a valid value. |
TOOL_NOT_FOUND | Skills-only mode rejects the external call, no tool has that name, the tool has visibility: "internal", or CodeCall takes it out of tools/list (since 1.9). The text is Tool "…" not found. | Check the name in tools/list. |
AUTHORITY_DENIED | The caller doesn't pass the tool's authorities rule. execute() didn't run. | Sign in as a caller the rule allows, or change the rule. |
ENTRY_UNAVAILABLE | The tool's availableWhen doesn't match the environment the server runs in. | Run the server where the tool is meant to be available, or change availableWhen. |
RATE_LIMIT_EXCEEDED, CONCURRENCY_LIMIT, QUEUE_TIMEOUT, EXECUTION_TIMEOUT | A tool's rateLimit, concurrency or timeout, a throttle default, or the task concurrency cap stopped the call. TaskConcurrencyLimitError uses CONCURRENCY_LIMIT in an isError result. The message says when to retry, or which limit. | Intended. See Guard options. |
GUARD_STORAGE_UNSUPPORTED | A concurrency limit's storage lacks atomic compare-and-delete or compare-and-expire. GuardStorageUnsupportedError stops startup for global/default concurrency, or fails a tool's first concurrency check. | Use memory, Redis, Upstash or Vercel KV, or implement both atomic methods. See the message. |
APPROVAL_REQUIRED, APPROVAL_OPERATION_FAILED, APPROVAL_SCOPE_NOT_ALLOWED, CHALLENGE_VALIDATION_FAILED | The Approval plugin refused a call that needs the user's approval (APPROVAL_REQUIRED, whose text is the tool's approvalMessage), or a grant it can't make. They are public errors, so the client reads the message in production too. | Grant the approval, or change the grant the tool makes. |
REMEMBER_SCOPE_NOT_ALLOWED | A memory tool was called with a scope outside the plugin's tools.allowedScopes, the default scope included. The message names the scope and the allowed ones. | Pass an allowed scope, or add it to allowedScopes. |
FEATURE_FLAG_DISABLED | The tool is disabled by a feature flag. The text names the tool and the flag. | Turn the flag on for the caller, or call a different tool. |
REMEMBER_IDENTITY_REQUIRED | A Remember scope needs a caller to keep values apart, and the caller is anonymous (session and user scope). | Sign the caller in, or use global scope. |
AGENT_CALL_DEPTH_EXCEEDED | An agent called another, which called another, past swarm.maxCallDepth (3 by default). The text lists the agents running. New in 1.9. | Give a chain of agents a way to end before the limit: see Agents That Call Agents. |
JOB_NOT_AUTHORIZED | execute_job or execute_workflow was called with a name that doesn't exist, or that the caller may not run. | Check the name with list_jobs. See @Job. |
AGENT_LOOP_EXCEEDED, AGENT_TIMEOUT | An agent exhausted its turns or time. Public messages are preserved. | Adjust the limits. See agent errors. |
REMOTE_CIRCUIT_OPEN | A remote app's circuit breaker is open after repeated failures. | Wait for the delay in the public message and fix the remote failure. |
A failed model request creates internal AgentLlmError (AGENT_LLM_ERROR). The client receives TOOL_EXECUTION_ERROR; check the server log and model connection.
OAuth token errors
The token endpoint answers a failed redemption with HTTP 400 and an OAuth JSON body, rather than a JSON-RPC error or a tool result:
error | error_description | Meaning |
|---|---|---|
invalid_grant | Authorization code has already been used | The code was redeemed before, or another request claimed it first. |
invalid_grant | Refresh token is invalid or expired | The refresh token expired, was used, or another request claimed it first. |
Changed in 1.12.2: before, a request that lost a concurrent claim could get 500 Internal Server Error. See refreshing a token for both concurrent requests in a Playground, and refresh errors for what the client should do.
Live entries, jobs and local server errors
New in 1.11.0. Public errors keep their messages in production. Internal errors below usually stop startup or appear in logs; thrown from a tool, they follow the normal error wrapping. refused() uses REFUSED unless given a custom code.
Live surface and aliases
| Class | Code | Visibility | Meaning |
|---|---|---|---|
FeatureOffError | FEATURE_OFF | Public | An entry is turned off. Reference. |
StaleToolListError | STALE_TOOL_LIST | Public | List tools again; the session used an older surface. Reference. |
ToolAliasConflictError | TOOL_ALIAS_CONFLICT | Internal | An alias is another tool's name or alias. Reference. |
InvalidFileSignalError | INVALID_FILE_SIGNAL | Internal | A file signal needs a path, key and positive poll interval. Reference. |
HookOrderCycleError | HOOK_ORDER_CYCLE | Internal | Remove a before/after constraint in the reported cycle. Reference. |
InvalidResourceStoreError | INVALID_RESOURCE_STORE | Internal | Invalid resource-store options, key or missing from. Reference. |
LazyAppConfigurationError | LAZY_APP_CONFIGURATION_ERROR | Internal | A lazy app or its manifest cannot be used. Reference. |
LazyAppLoadError | LAZY_APP_LOAD_FAILED | Public | An app could not load; inspect retryable and the server log. Reference. |
Job runs
| Class | Code | Visibility | Meaning |
|---|---|---|---|
JobTimeoutError | JOB_TIMEOUT | Public | An attempt exceeded its deadline. Reference. |
JobCancelledError | JOB_CANCELLED | Public | A run was cancelled. Reference. |
JobInterruptedError | JOB_INTERRUPTED | Public | The server shut down or its runner disappeared. Reference. |
JobRunnerUnavailableError | JOB_RUNNER_UNAVAILABLE | Public | This runtime, entry or store cannot support the runner. Reference. |
JobRunnerBootError | JOB_RUNNER_BOOT_FAILED | Public | The detached process failed before taking over. Reference. |
JobAdmissionTimeoutError | JOB_ADMISSION_TIMEOUT | Public | Admission capacity did not become available in time. Reference. |
JobRunNotFoundError | JOB_RUN_NOT_FOUND | Public | Cancellation cannot find a run the caller may access. Reference. |
JobRunFinishedError | JOB_RUN_FINISHED | Public | A finished run cannot be cancelled. Reference. |
JobRunNotCancellableError | JOB_RUN_NOT_CANCELLABLE | Public | cancel_job does not cancel workflows. Reference. |
JobStoreNotSupportedError | JOB_STORE_NOT_SUPPORTED | Internal | Use Redis or SQLite for job stores, not Vercel KV. Reference. |
Offload
| Class | Code | Visibility | Meaning |
|---|---|---|---|
OffloadBudgetExceededError | OFFLOAD_BUDGET_EXCEEDED | Public | The worker exceeded its budget and was terminated. Reference. |
OffloadAbortedError | OFFLOAD_ABORTED | Public | Cancellation or shutdown terminated the worker. Reference. |
OffloadUnsupportedRuntimeError | OFFLOAD_UNSUPPORTED_RUNTIME | Internal | Worker threads require Node. Reference. |
InvalidOffloadCallError | INVALID_OFFLOAD_CALL | Internal | Invalid function reference or offload options. Reference. |
OffloadNotCloneableError | OFFLOAD_NOT_CLONEABLE | Internal | Arguments or result cannot cross structured clone. Reference. |
OffloadWorkerError | OFFLOAD_WORKER_FAILED | Internal | A worker crashed or exited before answering. Reference. |
Persistent questions
| Class | Code | Visibility | Meaning |
|---|---|---|---|
QuestionPendingError | QUESTION_PENDING | Public | The question remains in the inbox; call again for its answer. Reference. |
QuestionSupersededError | QUESTION_SUPERSEDED | Public | A newer call waits for this caller's same question. Reference. |
QuestionNotFoundError | QUESTION_NOT_FOUND | Public | No question with that id is waiting for this person. Reference. |
QuestionAlreadyAnsweredError | QUESTION_ALREADY_ANSWERED | Public | The first answer has already been recorded. Reference. |
QuestionStoreBusyError | QUESTION_STORE_BUSY | Internal | Concurrent writes prevented the question update. Reference. |
InvalidQuestionStoreError | INVALID_QUESTION_STORE | Internal | The persistent-question store is unavailable or unsupported. Reference. |
HTTP routes and people auth
| Class | Code | Visibility | Meaning |
|---|---|---|---|
InvalidHttpRouteError | INVALID_HTTP_ROUTE | Internal | A duplicate route, an unusable path returned by a path function, an SSE route on the MCP path, a class that isn't an @HttpRoute, or a signed-in (people/subject) route with no http.auth.people. A reserved path fails with ReservedRouteCollisionError instead, and a bad literal path fails at the decorator with INVALID_DECORATOR_METADATA. Reference. |
InvalidHttpRouteResponseError | INVALID_HTTP_ROUTE_RESPONSE | Internal | A route's handle() returned a response its kind doesn't accept; the request answers 500. New in 1.11.1. Reference. |
InvalidPeopleAuthOptionsError | INVALID_PEOPLE_AUTH_OPTIONS | Internal | Correct the named http.auth.people fields. Reference. |
PersonNotSignedInError | PERSON_NOT_SIGNED_IN | Public | Sign in with a code for this route's auth kind. Reference. |
CrossOriginRequestError | CROSS_ORIGIN_REQUEST | Public | A mutating route request came from another origin. Reference. |
SignInRefusedError | SIGN_IN_REFUSED | Public | The sign-in token or code is wrong, used or expired. Reference. |
SignInLockedError | SIGN_IN_LOCKED | Public | Too many failed sign-in attempts; wait a minute, then try again. Reference. |
Lifecycle, local processes and builds
| Class | Code | Visibility | Meaning |
|---|---|---|---|
ProviderBootstrapError | PROVIDER_BOOTSTRAP_FAILED | Internal | A provider failed in onBootstrap(). Reference. |
DutyNameConflictError | DUTY_NAME_CONFLICT | Internal | Two duty classes share a name in one server, whatever their scopes. The second to start doesn't run; the server stays up. Reference. |
UnsafeDutyStoreError | UNSAFE_DUTY_STORE | Internal | Duty lease storage has unsafe ownership or permissions. Reference. |
InvalidSharedServerOptionsError | INVALID_SHARED_SERVER_OPTIONS | Internal | Correct the named runShared() options. Reference. |
UnsafeSharedServerDirectoryError | UNSAFE_SHARED_SERVER_DIRECTORY | Internal | Use owner-only shared-server files and directories. Reference. |
SharedServerStartError | SHARED_SERVER_START_FAILED | Internal | The shared server could not start or prove its identity in time. Reference. |
SharedServerIdentityError | SHARED_SERVER_IDENTITY_REFUSED | Internal | The endpoint failed shared-server identity verification. Reference. |
BrowserStoreUnavailableError | BROWSER_STORE_UNAVAILABLE | Internal | A browser cannot open the listed Redis or SQLite stores. Reference. |
BrowserEntryPointUnavailableError | BROWSER_ENTRY_POINT_UNAVAILABLE | Internal | runShared() and runUnixSocket() require Node. Reference. |
StoreNotOpenedInBuildError | STORE_NOT_OPENED_IN_BUILD | Internal | A manifest build tried to use a store stand-in. Reference. |
CallRecorderConfigurationError | CALL_RECORDER_CONFIGURATION_ERROR | Internal | Correct invalid recorder options. Reference. |
SecureStoreConfigError | SECURE_STORE_CONFIG_INVALID | Auth internal | An auth.secureStore backing cannot be used. Reference. |
ObservabilityConfigurationError | OBSERVABILITY_CONFIGURATION | Internal | Correct invalid stalls or devEvents options. Reference. |
Plugins and credential providers
New in 1.11.1.
| Class | Code | Visibility | Meaning |
|---|---|---|---|
DuplicatePluginEntryError | DUPLICATE_PLUGIN_ENTRY | Public | One plugins list names a plugin twice; the server doesn't start. Reference. |
DuplicatePluginError | DUPLICATE_PLUGIN | Public | A plugin with oncePerServer is installed twice in one server; the server doesn't start. Reference. |
PluginConfiguredTwiceError | PLUGIN_CONFIGURED_TWICE | Public | observability is set and plugins lists ObservabilityPlugin too; the server doesn't start. Reference. |
AuthProvidersNotConfiguredError | AUTH_PROVIDERS_NOT_CONFIGURED | Auth internal | this.authProviders read a credential on a server without authProvidersVault. Its public message and AUTH_PROVIDERS_NOT_CONFIGURED code reach the client. Reference. |
CredentialProviderAlreadyRegisteredError | CREDENTIAL_PROVIDER_ALREADY_REGISTERED | Auth internal | Two authProvidersVault providers share a name; the server doesn't start. Reference. |
Tokens given to connect()
New in 1.11.1. On a server with auth, connect() checks its authToken and rejects with one of these:
| Class | Code | Visibility | Meaning |
|---|---|---|---|
UnauthorizedError | UNAUTHORIZED | Public | The server's auth did not accept the auth token. Reference. |
PublicMcpError | INSUFFICIENT_SCOPE | Public | The auth token lacks the scopes the server requires: the token is valid but lacks one of auth.requiredScopes. Its statusCode is 403. Reference. |
Result handles
| Class | Code | Visibility | Meaning |
|---|---|---|---|
ResultHandleNotFoundError | RESULT_HANDLE_NOT_FOUND | Public | A handle is unknown, expired or belongs to another caller. Reference. |
ResultPathNotFoundError | RESULT_PATH_NOT_FOUND | Public | Choose a dot path or JSON pointer listed in the result shape. Reference. |
ResultSliceTooLargeError | RESULT_SLICE_TOO_LARGE | Public | Request fewer items, fields or a deeper path. Reference. |
ResultHandlesConfigurationError | RESULT_HANDLES_CONFIGURATION | Internal | Correct invalid plugin options. Reference. |
ReplayRecordingError from @frontmcp/testing reports a recording file and line the replay cannot read. OwnedProcessError from @frontmcp/utils reports an invalid process marker or failed process listing. These are local errors, not MCP result codes.
Events, duties and workers
New in 1.12.0. @Event, @Duty and @Worker describe each failure where it happens; these tables are the lookup. @frontmcp/sdk exports every class here except RemoteEventForwardError.
Events errors
events/poll, events/stream, events/subscribe and events/unsubscribe refuse a request with a JSON-RPC error, HTTP 200. Each error has two codes: the one SEP-3415 gives it, and the one of the earlier design, which ChatGPT implements. A caller detected as an OpenAI client gets the second, every other caller the first, unless events.compat is "sep-3415" or "sketch", which pins one for every caller.
| Error | Code | For an OpenAI client | Class and its code | data | Meaning |
|---|---|---|---|---|---|
| NotFound | -32023 | -32011 | EventNotFoundError, EVENT_NOT_FOUND | { kind, name } | The server serves no event of that name to this caller: Event "…" is not served. Call events/list for the events this server offers. |
| Forbidden | -32024 | -32012 | EventForbiddenError, EVENT_FORBIDDEN | { reason } | The caller may not use the event: it's anonymous where a signed-in caller is needed, the event's authorities refuse it, or its authorize() threw. reason is the message of a PublicMcpError that authorize() threw, and the event refused it for any other error. |
| ResourceExhausted | -32025 | -32013 | EventResourceExhaustedError, EVENT_RESOURCE_EXHAUSTED | { limit, max } | The caller holds events.subscriptions.maxPerPrincipal of something: subscriptions (limit: "subscriptions"), events/poll leases ("pollLeases") or open events/stream requests ("streams"); or the callback's host was sent too many verification requests in a minute ("verifications"). Changed in 1.12.1: before, polls and streams said "subscriptions" too. |
| Unsupported | -32026 | -32014 | EventUnsupportedError, EVENT_UNSUPPORTED | { feature, value, supported } | The request asks for a delivery mode the event isn't offered in: "push" is not a supported deliveryMode. Supported: webhook. |
| CallbackEndpointError | -32027 | -32015 | EventCallbackEndpointError, EVENT_CALLBACK_ENDPOINT_ERROR | { reason } | The callback of an events/subscribe didn't prove it accepts deliveries. reason is a category, like challenge_failed or http_4xx, never the callback's answer. |
data also has the errorId. The five classes extend EventProtocolError, a PublicMcpError; an event's authorize() refuses a caller by throwing a PublicMcpError. The same requests also answer with FrontMCP's general codes:
| Code | When |
|---|---|
-32602 | The arguments don't match the event's inputSchema (Invalid subscription arguments, with data.code INVALID_INPUT), or an events/subscribe names a callback URL or a secret the server won't use. |
-32601 | The server doesn't perform that request's delivery mode: events/subscribe on a server with public auth, events/stream in a serverless deployment or with events.push.enabled: false, and every events request, events/list included, on a server without events or with events.enabled: false. HTTP 404. |
-32020 | Under MCP 2026-07-28 over HTTP, the request has no Mcp-Name header with the event's name: Header mismatch: the mcp-name header is required for events/poll. HTTP 400. |
The HTTP publish endpoint (POST /events/publish, with events.publishEndpoint.enabled) isn't JSON-RPC: it answers 202 with { eventId, matched }, or an HTTP status and { "error": "…" }, like 401 {"error":"Unauthorized"} for a request that isn't signed. @Event lists each status.
A refusal also sets ctx.error for an events:publish-http finalize hook to a PublicMcpError with code EVENT_PUBLISH_REFUSED, the HTTP status as statusCode, and message HTTP <status>: <error>. This is a flow failure for hooks and tracing; the HTTP answer keeps its body. IP-filter refusals use HTTP 403: forbidden, global rate-limit refusals use HTTP 429: rate_limited, and an unreachable rate-limit store uses HTTP 503: service_unavailable. Changed in 1.12.2: before, these guard refusals left ctx.error unset. See the hook example.
Checked in Node, through createFetchHandler() and a connect() client: the five SEP-3415 codes, -32011 and -32012 for a client named openai-mcp, compat: "sketch", and the three general codes. -32013, -32014 and -32015 are read from FrontMCP's code.
Publishing and events configuration
| Class | Code | Visibility | Meaning |
|---|---|---|---|
EventNameConflictError | EVENT_NAME_CONFLICT | Internal | Two events on one endpoint declare the same name; the server doesn't start. Event "…" is declared twice: each event of a server needs its own name. Rename one of them with @Event({ name }). |
EventsNotEnabledError | EVENTS_NOT_ENABLED | Internal | publish() on a server without events: no app declares one, or events.enabled is false. |
EventNotRegisteredError | EVENT_NOT_REGISTERED | Internal | publish() of an event no app lists, or one its availableWhen keeps out of this environment. |
InvalidEventPublishError | INVALID_EVENT_PUBLISH | Internal | The published data doesn't match the event's payloadSchema, the timestamp given to publish() isn't a date ("…" is not a timestamp), or its check() returned more events than it was asked for. |
EventSubscriptionStoreError | EVENT_SUBSCRIPTION_STORE | Internal | events.store can't be used; the server doesn't start. Without a secret: Event subscription store: the sqlite store keeps webhook signing secrets, so it needs a secret to encrypt them with: set MCP_EVENTS_SECRET (or MCP_SESSION_SECRET / MCP_SERVER_SECRET). |
EventPublishEndpointError | EVENT_PUBLISH_ENDPOINT | Internal | events.publishEndpoint can't be served; the server doesn't start. On a public server without a secret: Event publish endpoint: the server runs in public auth mode, so nothing tells who publishes. … A secret under 32 characters is a ZodError instead. |
InvalidDecoratorMetadataError | INVALID_DECORATOR_METADATA | Internal | An invalid @Event or event() option, thrown where it's declared: @Event invalid metadata for "name": An event name must not contain whitespace or control characters. |
These are mistakes of the server's own code, so they're internal. A tool that lets one escape from this.events.publish() answers TOOL_EXECUTION_ERROR, as for any internal error it throws.
Event clients
What client.events throws, on a connect() client and on a test client. All are public errors:
| Class | Code | Meaning |
|---|---|---|
EventRequestError | EVENT_REQUEST_FAILED | The server refused an events request. rpcCode is its JSON-RPC code, method the request, data the error's data: events/stream failed (-32023): …. |
NoCompatibleDeliveryModeError | NO_COMPATIBLE_DELIVERY_MODE | The event offers no delivery mode the client can use, or not the one options.delivery forces: Event "ticket.closed" is offered by poll, push, and this client can use push, poll. … |
DuplicateEventSubscriptionError | DUPLICATE_EVENT_SUBSCRIPTION | The client already holds a webhook subscription to that event with those arguments. Iterate that one, or cancel it first. |
EventSubscriptionTerminatedError | EVENT_TERMINATED | The server ended a subscription the client was iterating. error is the server's error, like { code: -32024, message: "Forbidden", data: { reason: "Access revoked" } }, and eventName the event. |
createRemoteEventForwarder() from @frontmcp/react throws RemoteEventForwardError, a plain Error with the status and body of a publish endpoint's answer that wasn't 2xx.
Duties, workers and schedules
| Class | Code | Visibility | Meaning |
|---|---|---|---|
InvalidDutyCronError | INVALID_DUTY_CRON | Internal | A @Duty's cron can't be read: Duty "…" has a cron expression that can't be read ("…"): …. The server doesn't start. |
ClusterScopeNeedsRedisError | CLUSTER_SCOPE_NEEDS_REDIS | Internal | A duty or a worker has scope: "cluster", and the server has no top-level redis. The server doesn't start. |
WorkerNameConflictError | WORKER_NAME_CONFLICT | Internal | Two @Worker classes share a name in one server, whatever their scopes (changed in 1.12.1: before, only workers with a lease). The server starts, logs Provider "…" failed in onReady(): Worker "…" of server "…" is declared by two classes in this process (… and …): give one of them its own name with @Worker({ name }), and the second class doesn't run. |
InternalMcpError | BACKGROUND_STOP_TIMEOUT | Internal | While App.esm() replaced a loaded version, a duty or a worker of the old one didn't stop within lifecycle.shutdownHookTimeoutMs: Provider "…" did not stop its background work within 3000 ms. Read in FrontMCP's code, not run here. |
InvalidDecoratorMetadataError | INVALID_DECORATOR_METADATA | Internal | An invalid @Duty or @Worker option, thrown when the class is decorated: @Duty invalid metadata for "scope": scope must be 'machine', 'workspace' or 'cluster', @Worker invalid metadata for "run": … has no run() method. |
WorkflowTriggerConfigError | INVALID_WORKFLOW_TRIGGER | Internal | A workflow with trigger: "schedule" has no schedule.cron, or one that can't be read: Workflow "…": schedule.cron "…" can't be read: …. The server doesn't start. |
The first two are thrown from the provider's onBootstrap(), so what startup rejects with is a ProviderBootstrapError (PROVIDER_BOOTSTRAP_FAILED) whose message ends with theirs, and whose originalError is the class above. A duty or a leased worker whose lease store can't be opened doesn't stop the server: it logs the failure, and /readyz answers 503 with the reason, like the lease store cannot be opened: Invalid sqlite configuration: the sqlite type needs @frontmcp/storage-sqlite. Install it with: npm install @frontmcp/storage-sqlite for a machine or workspace scope without that package or a top-level redis.
Protocol errors
| Code | Meaning | Fix |
|---|---|---|
-32000 | Method not allowed. The stateless fetch path for older revisions received a standalone GET or an unsupported method such as PUT, with HTTP 405 and Allow: POST, DELETE. | Send MCP calls as POST. A standalone notification stream needs a stateful session. See the response below. |
-32001 | Unauthorized. A tool needs a credential from one of its authProviders that the user hasn't connected (Progressive auth). Where the server's auth gives callers a credential vault, as local mode does, data.authUrl says where to connect it, or data.signInRequired: true says the caller has to sign in first. A server whose credentials all come from credential providers gives neither. Also: a resource or prompt that failed with UnauthorizedError, or a request refused by throttle.ipFilter (with HTTP 403). | Send the user to authUrl, sign the caller in, or mark the provider required: false. For ipFilter, see Guard options. |
-32003 | Forbidden. A resource or prompt refused by an authorities rule, or that failed with a public error whose statusCode is 403. | Sign in as a caller who's allowed. |
-32011 to -32015, -32023 to -32027 | Events errors: NotFound, Forbidden, ResourceExhausted, Unsupported and CallbackEndpointError, from the events requests. New in 1.12.0. | See the table above. |
-32020 | Header mismatch MCP 2026-07-28 (HTTP only). A mirrored header (Mcp-Method, Mcp-Name, MCP-Protocol-Version) disagrees with the request body. Since 1.12.0, also an events/poll, events/stream, events/subscribe or events/unsubscribe request without an Mcp-Name header: the mcp-name header is required for events/poll. | Send headers that match the body, and the event's name in Mcp-Name. |
-32021 | Missing client capability MCP 2026-07-28. The request needs a capability the client didn't declare in _meta. | Declare the capability in io.modelcontextprotocol/clientCapabilities. |
-32022 | Unsupported protocol version. The error lists the supported and requested versions. Since 1.12.0, a server that pushes to Claude Code sessions (it has a channel, or an event with the channel option) answers every 2026-07-28 request over stdio with it: Unsupported protocol version: 2026-07-28, with supported listing the four revisions initialize negotiates. | Use a version the server supports. FrontMCP serves every revision from 2024-11-05 to 2026-07-28; over stdio, open a session with initialize when the server declines 2026-07-28. See Protocol versions. |
-32029 | Rate limited. The server's throttle.global limit refused the request, with HTTP 429 and a Retry-After header. The message says how many seconds to wait. | Wait that long. See Guard options. |
-32601 | Method not found. Under 2026-07-28 this includes removed methods such as initialize, ping and logging/setLevel. | Use the 2026-07-28 equivalents, such as server/discover. |
-32602 | Invalid params, including malformed method parameters or inputResponses under MCP 2026-07-28, a resource or prompt that doesn't exist (a missing resource was -32002 before 2026-07-28), a missing prompt argument, a call to a task-only tool from a client without the tasks extension, and a public error from a resource or prompt, such as a PublicMcpError, whose code is in data.code. | Check the field paths in Invalid params: <field>: <problem>, the method's parameters and the resource URI. Bad tool arguments still use the INVALID_INPUT tool result above. |
-32603 | Internal error: a resource or prompt failed with an error that isn't public, or with a public error whose statusCode is 500 or more. For errors that aren't public, production's message is "Internal FrontMCP error" and an error ID. On the older protocol path, malformed requests can also get this code with raw Zod issues from the underlying MCP SDK. Also No skill bundle is loaded: …, with data: { code: "SKILL_BUNDLE_NOT_LOADED", retryable: true }, from the skill requests while a plugin's skills haven't loaded (new in 1.11.1). | For server failures, find the error ID in the server's log. Fail with a PublicMcpError if the message is for the client. For malformed requests, fix the fields the Zod issues name. See this.fail. For SKILL_BUNDLE_NOT_LOADED, ask again later: see @Skill. |
Error classes shows how an error's statusCode picks its code.
The 2026-07-28 errors apply over stdio too, including -32021 and -32022; stdio has no mirrored HTTP headers to check. Changed in 1.12.0: before, a stdio server answered 2026-07-28 requests whatever it served. One that pushes to Claude Code sessions now declines them with -32022, because Claude Code delivers channel events only on a session opened with initialize; a server without a channel, or an event with channel, answers them as before. Checked by running both over stdio. Changed in 1.10.5: before, server/discover over stdio returned -32601; it now returns discovery. See Protocol versions.
Invalid params: params.name: Invalid input: expected string, received undefined
A 2026-07-28 tools/call is missing params.name. Send the registered tool name. Changed in 1.10.13: before, this could return a successful result containing a raw ZodError and stack, with an internal error logged. It now gets JSON-RPC -32602, before the handler runs, with no internal error logged. Rejecting malformed requests shows this response and the separate INVALID_INPUT result for bad tool arguments.
Invalid params: params.inputResponses: …
On MCP 2026-07-28, inputResponses must be an object whose values are answer objects, keyed by input request id. Changed in 1.10.13: before, a string or a non-object answer could reach the tool. It now gets -32602 naming the invalid path, before the tool runs. Follow the elicitation round trip when answering an input_required result.
HTTP status codes
Under 2026-07-28, GET and DELETE on the MCP endpoint return 405: every request is a POST, and there's no session to close. Tool errors, including every tool limit, arrive with 200. throttle.global answers with 429 and throttle.ipFilter with 403, before the request reaches a tool (see Guard options). The Node HTTP server and the fetch handler answer 413 for a body over http.bodyLimit ("4mb" by default). Limits above 4 MiB apply on Workers and edge runtimes too: see body size limits.
Method not allowed.
On the stateless fetch path for older revisions, GET and other unsupported methods such as PUT get HTTP 405, JSON-RPC -32000 and Allow: POST, DELETE. Changed in 1.10.12: before, GET opened an event stream that couldn't send anything, and unsupported methods advertised GET in Allow. A Durable Object session still serves its standalone GET stream. See the fetch handler's responses.
Cannot POST /mcp/message
Changed in 1.10.11: before, initialize posts to the legacy HTTP+SSE message endpoint with Accept: */*, application/* or another value listing neither JSON nor an event stream got this HTTP 404. The message endpoint now accepts any Accept value, or none: accepted messages get 202, with their results on the SSE stream. Upgrade the server, use the message URL and session id named by the stream, and keep legacy SSE enabled. See client troubleshooting.
Unix socket startup errors
These exported SDK errors stop startup. The server requires owner-only socket permissions on POSIX:
| Class and code | Message | What to do |
|---|---|---|
UnsafeSocketDirectoryError, UNSAFE_SOCKET_DIRECTORY | Refusing to create a Unix socket under … (mode …): … | Use a directory you or root own with safe permissions, including its ancestors. |
SocketInUseError, SOCKET_IN_USE | Unix socket … is already in use by a running server. | Use that server, stop it through its owner, or choose another path. |
SocketPathConflictError, SOCKET_PATH_CONFLICT | Refusing to replace …: … | Inspect the path or probe error; only a stale socket owned by this user is replaced. |
SocketPermissionError, SOCKET_PERMISSION | Could not make Unix socket … owner-only (0600): … | Check filesystem permissions. Worker threads and cluster workers need an owner-only directory (0700). |
See Node troubleshooting for the full checks and CLI socket permissions.
Hook and output diagnostics
| Message | What to do |
|---|---|
Flow aborted: <reason> | A flow hook aborted the run. The first failure is available as ctx.error and in the job attempt record; see job hooks. |
TS1241: Unable to resolve signature of method decorator when called as an expression | Type the hook parameter with its matching FlowCtxOf<Name>. See hook parameter checks. |
Ignored a throw from a Finally hook of '…': it cannot change the stage's outcome | Keep cleanup in Finally; use another hook kind to respond or fail. See Finally hooks. |
Tool "…": tools/list leaves out its outputSchema because … | Declare an object or union of objects, or inspect the conversion reason. See schema advertisement. |
Tool "…" answered with keys its outputSchema does not declare, so they were stripped: … | Declare the keys or return fewer fields. See output policy. |
@FrontMcp invalid metadata for "skillsConfig": … | Use the field's accepted values. Invalid skills configuration raises InvalidDecoratorMetadataError; see skills troubleshooting. |
SyntaxError: Unexpected token 'export' from jose/dist/webapi/index.js | Configure the CommonJS unit-test preset so Jest transforms ESM-only dependencies. |
Remote redirects
Redirect to <url> not followed reports a refused redirect from a remote app's default Streamable HTTP transport, for example one that changes host or the request's method. A POST follows only 307 or 308 within the allowed origin; point App.remote() at the final MCP endpoint. A redirect from HTTPS to HTTP reports Redirect to plain http not followed; try <url> instead. A browser that hides the target reports Redirect not followed: this runtime does not expose the redirect target. These are transport errors, not new FrontMCP error codes. See remote redirect troubleshooting.
Skilled OpenAPI request errors
These are action failures from @frontmcp/plugin-skilled-openapi, rather than new MCP error codes. A run_workflow result is an error result with success: false and the message in error; an execute_action result is an error result with the message as its text.
| Message | What to do |
|---|---|
AgentScript rejected: `fetch` isn't available in run_workflow. … | The script uses an unavailable global. Only callTool, Math and JSON are available; reach the API through callTool(actionId, input). Rejected before execution or confirmation, with no stats. Changed in 1.11.2: before, Node.js and Workers reported internal names such as '__safe_fetch' is not defined at run time. See workflow validation. |
AgentScript rejected: Line … length (…) exceeds maximum allowed (10000) | Shorten long literals or build the value in separate statements: the check runs on reformatted code, so adding line breaks alone may not help. Pre-scanner refusals keep their reason after AgentScript rejected:; the script hasn't run. Changed in 1.11.2: before, this check ran only in web pages. See the pre-scanner. |
No skill bundle is loaded: … | The server has no bundle yet, or it failed to load; the reason follows the colon. Code SKILL_BUNDLE_NOT_LOADED, retryable, from all four tools. New in 1.11.1. See when no bundle is loaded. |
action "…" failed with status …: … | The API answered with an error status; its error body, redacted and cut to 2 KB, follows. Fix the call, or set outbound.errorBodies: "status-only" to leave bodies out. Changed in 1.11.1: before, the message ended at the status. |
unknown action "…" — run search_skill then load_skill to discover available actions | No skill the caller may see lists the action. Changed in 1.11.1: an action of a skill hidden from the caller answers this too. |
the user declined: … | The user said no to an action confirm names; nothing was sent. New in 1.11.1. |
the user's confirmation is needed for …, and this client can't ask for it: … (or this server can't ask for it: …) | Enable elicitation, use a client that supports it, or set confirm.whenUnsupported: "allow". New in 1.11.1. |
the user did not answer in time: … | The user didn't answer the confirmation before this.elicit() timed out; nothing was sent. Run the action again when the user can answer. New in 1.11.1. |
request aborted: the workflow ended before the request finished | The script ended while the request was in flight, and the plugin aborted it. New in 1.11.1. |
response exceeded maxResponseBytes (…) | Request less data or raise the operation's maxResponseBytes (otherwise outbound.defaultMaxResponseBytes, 256 KB by default). The oversized body is canceled so the connection can close. Changed in 1.10.14: before, the body wasn't canceled. |
timeout after …ms | Check the API's response time or raise the operation's timeoutMs (otherwise outbound.defaultTimeoutMs, 30 seconds by default). Changed in 1.10.14: before, timeouts during body reads could be reported as aborted. |
too many content-encodings in response: …, at most 5 | The direct Node.js transport refuses more than five encoding layers. Configure the API or proxy to send fewer. |
Response constructor: Invalid response status code 204 (or 205) | Upgrade the plugin. Changed in 1.10.15: before, a 204 or 205 answer from the API failed the action with this message; it now succeeds with no data. See outbound requests. |
init() throws VaultRefListedTwiceError for a vaultRef listed under both credentials and authProviders, and a server that installs the plugin twice stops with DuplicatePluginError (DUPLICATE_PLUGIN). See Skilled OpenAPI troubleshooting and its response-limit tests.
CLI build errors
These stop a build before it writes a usable deployment:
| Message | What to do |
|---|---|
An SEA binary can only load Node built-ins, so it cannot load the native addon(s) … | Disable SEA; for CLI, use --js. |
Native addon "…" (build.dependencies.nativeAddons) is not installed under …/node_modules | Install the addon, or remove it from nativeAddons. |
userConfig "…" maps to "…", which is not an environment variable name | Set the entry's env to a valid name. |
userConfig "…" and "…" both map to the env var … | Set a distinct env for one entry. |
See the CLI troubleshooting entries.
Browser bundle errors
Could not resolve "vm" or "worker_threads" from @enclave-vm/core means esbuild reached the optional Node-only engine for dynamic jobs. Since 1.11.1 the SDK's browser build leaves it out; on an older SDK, or without the browser condition, keep it external. See the browser build error.
Package loading errors
Changed in 1.10.10: before, loading the 1.10.9 cache or dashboard plugin or @frontmcp/edge alongside an older top-level @enclave-vm/ast could fail with ERR_PACKAGE_PATH_NOT_EXPORTED: Package subpath './redos' is not defined by "exports". Changed in 1.11.0: before, all three bundled @frontmcp/utils and depended directly on @enclave-vm/ast. They now import the matching utils package. Upgrade them with the SDK and reinstall dependencies. See package-loading troubleshooting.
Registry and route errors
These report startup or publishing failures, rather than tool results:
| Message or class | What to do |
|---|---|
ReservedRouteCollisionError: Custom http.route … collides with the reserved FrontMCP path | Move the custom route. Changed in 1.10.0: before, a custom route could use <entryPath>/server-card. It is now reserved, even with no registry option. See reserved paths. |
FlowNotRegisteredError, FLOW_NOT_REGISTERED: Flow "…" is not registered | Changed in 1.10.0: before, create(), createDirect() and connect() registered http:* flows and the default public auth's flows. They now omit http:* flows and, without explicit auth, OAuth, OAuth discovery and session:verify flows (connect()'s CLI mode keeps its existing initialization). Use an HTTP entry point for HTTP work. See initialization. |
registry.name must be "<namespace>/<name>" in reverse-DNS form, e.g. "com.acme/weather" | Use the registry name format. |
registry.description is required when registry.name is set | Supply a 1–100 character description. |
registry.publicKey must be a base64 Ed25519 public key or a "v=MCPv1; k=...; p=..." record | Use the public key printed by keygen, not its private hex seed. |
registry.publicKeyEnv must be an environment variable name | Use letters, digits and underscores, starting with a letter or underscore. |
MCP Registry domain proof not served: … | Warning: the environment key is invalid and the proof returns 404. Correct the public key. |
RegistryError: The HTTP proof is not ready: … | Correct the deployed proof's status, redirect, size or key mismatch named in the message. |
No private key: pass --key-file <path>, set MCP_REGISTRY_PRIVATE_KEY, or create … | Run keygen or supply the private key to the CLI. |
The private key must be a 64-character hex Ed25519 seed (what keygen writes) or a PEM. | Supply keygen's file or an Ed25519 PEM. Unreadable PEMs and other algorithms are rejected. |
An HTTP proof on … grants … / A DNS proof on … grants … | Match the namespace to the domain proved, or choose DNS for subdomains. |
--auth github-oidc works only in GitHub Actions, in a job with "permissions: id-token: write". | Run in GitHub Actions with that permission and an io.github.<owner>/<server> name. |
server.json is not valid: … / <registry>/v0.1/validate rejected server.json: … | Fix each field path listed in the validation report. |
cannot publish duplicate version | Publish a new version; deletion doesn't free a version for reuse. |
missing required 'mcpName' field | Add mcpName to the npm package and publish a new npm version. |
remote URL … is already used by server … | Use that server name or a different remote URL. |
Pass --server-version <version> to change one version, or --all-versions to change every version. | Supply exactly one selector to registry status. |
Registry schema errors are ZodError validation failures. CLI RegistryError failures print the message and exit with code 1; they have no MCP error code. See MCP Registry troubleshooting and CLI troubleshooting.
The channel warning Channel "…" has a webhook source but no HTTP server to serve … means the server runs in process. Use an HTTP entry point to receive webhooks.
Testing integration errors
Protocol version 2026-07-28 has no HTTP+SSE transport
The test client combines protocolVersion: "2026-07-28" with transport: "sse". Use "streamable-http" for that revision. See test fixtures.
@frontmcp/testing/playwright is not implemented
The Playwright subpath is a placeholder. Calling test or expect, or reading an integration member such as test.describe, throws the message with alternatives. Use @playwright/test against a server started with TestServer.start() from @frontmcp/testing, or MockOAuthServer and TestTokenFactory for OAuth tests without a browser. Changed in 1.9.7: before, member access or expect() could fail with an unhelpful TypeError.
Decorator type errors
execute() requires a parameter matching the input schema
An agent's execute() override omits its parameter while inputSchema has fields. Add a matching parameter. With inputSchema: {}, the override can omit it. Changed in 1.9.7: that empty-input override compiles; the missing parameter for a schema with fields reports this message. See Running an agent without input.
Prompt and resource output validation
Prompt output validation failed (<reason> at <path>) and Resource output validation failed (<reason>) use INVALID_OUTPUT. Development messages name the entry and validation reason; production hides internal details. A prompt’s details also include entry, reason and path. See prompt output and resource output.
Changed in 1.11.3: before, prompt errors said “Tool” and omitted the reason and path; resource messages omitted the reason.
Scripts, responses and widgets
| Code or message | From | Meaning |
|---|---|---|
PRESCANNER_LINE_TOO_LONG, PRESCANNER_BIDI_ATTACK, PRESCANNER_REGEX_BLOCKED | codecall:execute, with status illegal_access | The script has a line over 2,000 characters, a BiDi control character, or a regular expression literal, and nothing in it ran. See CodeCall troubleshooting. |
Response body exceeds the limit of <n> bytes | ResponseTooLargeError, from readBodyWithLimit() and readTextWithLimit() | The response was bigger than the limit, and reading stopped there. See Reading a response with a size limit. |
This content is not a PDF document. | The PDF renderer | A data: URI of another media type. See UI troubleshooting. |
INVALID_SPECIFIER | createTypeFetcher() | An import it can't turn into a CDN URL. See UI troubleshooting. |
Client registration errors
POST /oauth/register answers a body it can't read with 400 and invalid_redirect_uri, for a redirect URI that isn't a URL, or invalid_client_metadata, for anything else; error_description names each field. Changed in 1.12.1: before, these were 500 server_misconfigured. See Local mode.
Configuration and session errors
Job "…" is declared in code and cannot be updated and Workflow "…" is declared in code and cannot be updated use INVALID_INPUT. The update tools only change runtime registrations; edit a declared class and restart instead.
| Class | Code | Meaning |
|---|---|---|
ApprovalConfigurationError | APPROVAL_CONFIGURATION | Invalid external approval or delegation configuration, at startup. See Approval startup checks. Also thrown by a call that uses up an alwaysPrompt approval on a storage without compare-and-delete, like Cloudflare KV (its message). |
SigningKeyInvalidError | SIGNING_KEY_INVALID | Invalid private signing key or public jwks; correct the option path in the startup message. See signing keys. |
UpstreamClientRegistrationError | UPSTREAM_CLIENT_REGISTRATION_FAILED | Upstream registration failed; fix its registration endpoint or configure client credentials manually. |
CimdClientAssertionError | CIMD_CLIENT_ASSERTION_INVALID | Invalid or missing private-key assertion; the token endpoint returns invalid_client. See private-key clients. |
WorkflowTriggerConfigError | INVALID_WORKFLOW_TRIGGER | Invalid workflow trigger options; the startup message names the field. See workflow triggers. |
InvalidToolUiConfigError | INVALID_TOOL_UI_CONFIG | Invalid widget route, URL or bundling configuration. See Tool UI. |
ToolUiConfigurationError | TOOL_UI_CONFIGURATION | A rendering option cannot use the template, or its configuration is invalid. See rendering options. |
PublicMcpError | SKILL_SESSION_LIMIT | 10,000 skill sessions are already activated. End unused MCP sessions before activating another. |
CachePluginConfigurationError | none | An unknown cache type fails startup. Use memory, redis, redis-client or global-store. |
[Logger] Log transport … failed, and its later failures are not reported: …
A log transport threw or returned a rejected promise. FrontMCP reports one failure per transport to stderr and continues using the others. Changed in 1.11.3: before, rejected promises were unhandled. See log transport failures.