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.codeCauseFix
INVALID_INPUTThe 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_ERRORThe 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_ERRORThe 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_ERRORThe 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_ERRORexecute() 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_OUTPUTThe 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_OUTPUTexecute() returned undefined.Return a value, even { ok: true }.
INVALID_PATH_PARAMETERA 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_FOUNDSkills-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_DENIEDThe 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_UNAVAILABLEThe 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_TIMEOUTA 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_UNSUPPORTEDA 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_FAILEDThe 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_ALLOWEDA 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_DISABLEDThe 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_REQUIREDA 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_EXCEEDEDAn 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_AUTHORIZEDexecute_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_TIMEOUTAn agent exhausted its turns or time. Public messages are preserved.Adjust the limits. See agent errors.
REMOTE_CIRCUIT_OPENA 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:

errorerror_descriptionMeaning
invalid_grantAuthorization code has already been usedThe code was redeemed before, or another request claimed it first.
invalid_grantRefresh token is invalid or expiredThe 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

ClassCodeVisibilityMeaning
FeatureOffErrorFEATURE_OFFPublicAn entry is turned off. Reference.
StaleToolListErrorSTALE_TOOL_LISTPublicList tools again; the session used an older surface. Reference.
ToolAliasConflictErrorTOOL_ALIAS_CONFLICTInternalAn alias is another tool's name or alias. Reference.
InvalidFileSignalErrorINVALID_FILE_SIGNALInternalA file signal needs a path, key and positive poll interval. Reference.
HookOrderCycleErrorHOOK_ORDER_CYCLEInternalRemove a before/after constraint in the reported cycle. Reference.
InvalidResourceStoreErrorINVALID_RESOURCE_STOREInternalInvalid resource-store options, key or missing from. Reference.
LazyAppConfigurationErrorLAZY_APP_CONFIGURATION_ERRORInternalA lazy app or its manifest cannot be used. Reference.
LazyAppLoadErrorLAZY_APP_LOAD_FAILEDPublicAn app could not load; inspect retryable and the server log. Reference.

Job runs

ClassCodeVisibilityMeaning
JobTimeoutErrorJOB_TIMEOUTPublicAn attempt exceeded its deadline. Reference.
JobCancelledErrorJOB_CANCELLEDPublicA run was cancelled. Reference.
JobInterruptedErrorJOB_INTERRUPTEDPublicThe server shut down or its runner disappeared. Reference.
JobRunnerUnavailableErrorJOB_RUNNER_UNAVAILABLEPublicThis runtime, entry or store cannot support the runner. Reference.
JobRunnerBootErrorJOB_RUNNER_BOOT_FAILEDPublicThe detached process failed before taking over. Reference.
JobAdmissionTimeoutErrorJOB_ADMISSION_TIMEOUTPublicAdmission capacity did not become available in time. Reference.
JobRunNotFoundErrorJOB_RUN_NOT_FOUNDPublicCancellation cannot find a run the caller may access. Reference.
JobRunFinishedErrorJOB_RUN_FINISHEDPublicA finished run cannot be cancelled. Reference.
JobRunNotCancellableErrorJOB_RUN_NOT_CANCELLABLEPubliccancel_job does not cancel workflows. Reference.
JobStoreNotSupportedErrorJOB_STORE_NOT_SUPPORTEDInternalUse Redis or SQLite for job stores, not Vercel KV. Reference.

Offload

ClassCodeVisibilityMeaning
OffloadBudgetExceededErrorOFFLOAD_BUDGET_EXCEEDEDPublicThe worker exceeded its budget and was terminated. Reference.
OffloadAbortedErrorOFFLOAD_ABORTEDPublicCancellation or shutdown terminated the worker. Reference.
OffloadUnsupportedRuntimeErrorOFFLOAD_UNSUPPORTED_RUNTIMEInternalWorker threads require Node. Reference.
InvalidOffloadCallErrorINVALID_OFFLOAD_CALLInternalInvalid function reference or offload options. Reference.
OffloadNotCloneableErrorOFFLOAD_NOT_CLONEABLEInternalArguments or result cannot cross structured clone. Reference.
OffloadWorkerErrorOFFLOAD_WORKER_FAILEDInternalA worker crashed or exited before answering. Reference.

Persistent questions

ClassCodeVisibilityMeaning
QuestionPendingErrorQUESTION_PENDINGPublicThe question remains in the inbox; call again for its answer. Reference.
QuestionSupersededErrorQUESTION_SUPERSEDEDPublicA newer call waits for this caller's same question. Reference.
QuestionNotFoundErrorQUESTION_NOT_FOUNDPublicNo question with that id is waiting for this person. Reference.
QuestionAlreadyAnsweredErrorQUESTION_ALREADY_ANSWEREDPublicThe first answer has already been recorded. Reference.
QuestionStoreBusyErrorQUESTION_STORE_BUSYInternalConcurrent writes prevented the question update. Reference.
InvalidQuestionStoreErrorINVALID_QUESTION_STOREInternalThe persistent-question store is unavailable or unsupported. Reference.

HTTP routes and people auth

ClassCodeVisibilityMeaning
InvalidHttpRouteErrorINVALID_HTTP_ROUTEInternalA 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.
InvalidHttpRouteResponseErrorINVALID_HTTP_ROUTE_RESPONSEInternalA route's handle() returned a response its kind doesn't accept; the request answers 500. New in 1.11.1. Reference.
InvalidPeopleAuthOptionsErrorINVALID_PEOPLE_AUTH_OPTIONSInternalCorrect the named http.auth.people fields. Reference.
PersonNotSignedInErrorPERSON_NOT_SIGNED_INPublicSign in with a code for this route's auth kind. Reference.
CrossOriginRequestErrorCROSS_ORIGIN_REQUESTPublicA mutating route request came from another origin. Reference.
SignInRefusedErrorSIGN_IN_REFUSEDPublicThe sign-in token or code is wrong, used or expired. Reference.
SignInLockedErrorSIGN_IN_LOCKEDPublicToo many failed sign-in attempts; wait a minute, then try again. Reference.

Lifecycle, local processes and builds

ClassCodeVisibilityMeaning
ProviderBootstrapErrorPROVIDER_BOOTSTRAP_FAILEDInternalA provider failed in onBootstrap(). Reference.
DutyNameConflictErrorDUTY_NAME_CONFLICTInternalTwo duty classes share a name in one server, whatever their scopes. The second to start doesn't run; the server stays up. Reference.
UnsafeDutyStoreErrorUNSAFE_DUTY_STOREInternalDuty lease storage has unsafe ownership or permissions. Reference.
InvalidSharedServerOptionsErrorINVALID_SHARED_SERVER_OPTIONSInternalCorrect the named runShared() options. Reference.
UnsafeSharedServerDirectoryErrorUNSAFE_SHARED_SERVER_DIRECTORYInternalUse owner-only shared-server files and directories. Reference.
SharedServerStartErrorSHARED_SERVER_START_FAILEDInternalThe shared server could not start or prove its identity in time. Reference.
SharedServerIdentityErrorSHARED_SERVER_IDENTITY_REFUSEDInternalThe endpoint failed shared-server identity verification. Reference.
BrowserStoreUnavailableErrorBROWSER_STORE_UNAVAILABLEInternalA browser cannot open the listed Redis or SQLite stores. Reference.
BrowserEntryPointUnavailableErrorBROWSER_ENTRY_POINT_UNAVAILABLEInternalrunShared() and runUnixSocket() require Node. Reference.
StoreNotOpenedInBuildErrorSTORE_NOT_OPENED_IN_BUILDInternalA manifest build tried to use a store stand-in. Reference.
CallRecorderConfigurationErrorCALL_RECORDER_CONFIGURATION_ERRORInternalCorrect invalid recorder options. Reference.
SecureStoreConfigErrorSECURE_STORE_CONFIG_INVALIDAuth internalAn auth.secureStore backing cannot be used. Reference.
ObservabilityConfigurationErrorOBSERVABILITY_CONFIGURATIONInternalCorrect invalid stalls or devEvents options. Reference.

Plugins and credential providers

New in 1.11.1.

ClassCodeVisibilityMeaning
DuplicatePluginEntryErrorDUPLICATE_PLUGIN_ENTRYPublicOne plugins list names a plugin twice; the server doesn't start. Reference.
DuplicatePluginErrorDUPLICATE_PLUGINPublicA plugin with oncePerServer is installed twice in one server; the server doesn't start. Reference.
PluginConfiguredTwiceErrorPLUGIN_CONFIGURED_TWICEPublicobservability is set and plugins lists ObservabilityPlugin too; the server doesn't start. Reference.
AuthProvidersNotConfiguredErrorAUTH_PROVIDERS_NOT_CONFIGUREDAuth internalthis.authProviders read a credential on a server without authProvidersVault. Its public message and AUTH_PROVIDERS_NOT_CONFIGURED code reach the client. Reference.
CredentialProviderAlreadyRegisteredErrorCREDENTIAL_PROVIDER_ALREADY_REGISTEREDAuth internalTwo 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:

ClassCodeVisibilityMeaning
UnauthorizedErrorUNAUTHORIZEDPublicThe server's auth did not accept the auth token. Reference.
PublicMcpErrorINSUFFICIENT_SCOPEPublicThe 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

ClassCodeVisibilityMeaning
ResultHandleNotFoundErrorRESULT_HANDLE_NOT_FOUNDPublicA handle is unknown, expired or belongs to another caller. Reference.
ResultPathNotFoundErrorRESULT_PATH_NOT_FOUNDPublicChoose a dot path or JSON pointer listed in the result shape. Reference.
ResultSliceTooLargeErrorRESULT_SLICE_TOO_LARGEPublicRequest fewer items, fields or a deeper path. Reference.
ResultHandlesConfigurationErrorRESULT_HANDLES_CONFIGURATIONInternalCorrect 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.

ErrorCodeFor an OpenAI clientClass and its codedataMeaning
NotFound-32023-32011EventNotFoundError, 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-32012EventForbiddenError, 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-32013EventResourceExhaustedError, 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-32014EventUnsupportedError, 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-32015EventCallbackEndpointError, 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:

CodeWhen
-32602The 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.
-32601The 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.
-32020Under 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

ClassCodeVisibilityMeaning
EventNameConflictErrorEVENT_NAME_CONFLICTInternalTwo 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 }).
EventsNotEnabledErrorEVENTS_NOT_ENABLEDInternalpublish() on a server without events: no app declares one, or events.enabled is false.
EventNotRegisteredErrorEVENT_NOT_REGISTEREDInternalpublish() of an event no app lists, or one its availableWhen keeps out of this environment.
InvalidEventPublishErrorINVALID_EVENT_PUBLISHInternalThe 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.
EventSubscriptionStoreErrorEVENT_SUBSCRIPTION_STOREInternalevents.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).
EventPublishEndpointErrorEVENT_PUBLISH_ENDPOINTInternalevents.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.
InvalidDecoratorMetadataErrorINVALID_DECORATOR_METADATAInternalAn 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:

ClassCodeMeaning
EventRequestErrorEVENT_REQUEST_FAILEDThe server refused an events request. rpcCode is its JSON-RPC code, method the request, data the error's data: events/stream failed (-32023): ….
NoCompatibleDeliveryModeErrorNO_COMPATIBLE_DELIVERY_MODEThe 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. …
DuplicateEventSubscriptionErrorDUPLICATE_EVENT_SUBSCRIPTIONThe client already holds a webhook subscription to that event with those arguments. Iterate that one, or cancel it first.
EventSubscriptionTerminatedErrorEVENT_TERMINATEDThe 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

ClassCodeVisibilityMeaning
InvalidDutyCronErrorINVALID_DUTY_CRONInternalA @Duty's cron can't be read: Duty "…" has a cron expression that can't be read ("…"): …. The server doesn't start.
ClusterScopeNeedsRedisErrorCLUSTER_SCOPE_NEEDS_REDISInternalA duty or a worker has scope: "cluster", and the server has no top-level redis. The server doesn't start.
WorkerNameConflictErrorWORKER_NAME_CONFLICTInternalTwo @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.
InternalMcpErrorBACKGROUND_STOP_TIMEOUTInternalWhile 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.
InvalidDecoratorMetadataErrorINVALID_DECORATOR_METADATAInternalAn 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.
WorkflowTriggerConfigErrorINVALID_WORKFLOW_TRIGGERInternalA 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

CodeMeaningFix
-32000Method 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.
-32001Unauthorized. 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.
-32003Forbidden. 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 -32027Events errors: NotFound, Forbidden, ResourceExhausted, Unsupported and CallbackEndpointError, from the events requests. New in 1.12.0.See the table above.
-32020Header 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.
-32021Missing 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.
-32022Unsupported 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.
-32029Rate 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.
-32601Method 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.
-32602Invalid 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.
-32603Internal 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 codeMessageWhat to do
UnsafeSocketDirectoryError, UNSAFE_SOCKET_DIRECTORYRefusing to create a Unix socket under … (mode …): …Use a directory you or root own with safe permissions, including its ancestors.
SocketInUseError, SOCKET_IN_USEUnix socket … is already in use by a running server.Use that server, stop it through its owner, or choose another path.
SocketPathConflictError, SOCKET_PATH_CONFLICTRefusing to replace …: …Inspect the path or probe error; only a stale socket owned by this user is replaced.
SocketPermissionError, SOCKET_PERMISSIONCould 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

MessageWhat 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 expressionType 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 outcomeKeep 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.jsConfigure 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.

MessageWhat 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 actionsNo 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 finishedThe 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 …msCheck 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 5The 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:

MessageWhat 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_modulesInstall the addon, or remove it from nativeAddons.
userConfig "…" maps to "…", which is not an environment variable nameSet 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 classWhat to do
ReservedRouteCollisionError: Custom http.route … collides with the reserved FrontMCP pathMove 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 registeredChanged 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 setSupply a 1–100 character description.
registry.publicKey must be a base64 Ed25519 public key or a "v=MCPv1; k=...; p=..." recordUse the public key printed by keygen, not its private hex seed.
registry.publicKeyEnv must be an environment variable nameUse 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 versionPublish a new version; deletion doesn't free a version for reuse.
missing required 'mcpName' fieldAdd 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 messageFromMeaning
PRESCANNER_LINE_TOO_LONG, PRESCANNER_BIDI_ATTACK, PRESCANNER_REGEX_BLOCKEDcodecall:execute, with status illegal_accessThe 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> bytesResponseTooLargeError, 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 rendererA data: URI of another media type. See UI troubleshooting.
INVALID_SPECIFIERcreateTypeFetcher()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.

ClassCodeMeaning
ApprovalConfigurationErrorAPPROVAL_CONFIGURATIONInvalid 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).
SigningKeyInvalidErrorSIGNING_KEY_INVALIDInvalid private signing key or public jwks; correct the option path in the startup message. See signing keys.
UpstreamClientRegistrationErrorUPSTREAM_CLIENT_REGISTRATION_FAILEDUpstream registration failed; fix its registration endpoint or configure client credentials manually.
CimdClientAssertionErrorCIMD_CLIENT_ASSERTION_INVALIDInvalid or missing private-key assertion; the token endpoint returns invalid_client. See private-key clients.
WorkflowTriggerConfigErrorINVALID_WORKFLOW_TRIGGERInvalid workflow trigger options; the startup message names the field. See workflow triggers.
InvalidToolUiConfigErrorINVALID_TOOL_UI_CONFIGInvalid widget route, URL or bundling configuration. See Tool UI.
ToolUiConfigurationErrorTOOL_UI_CONFIGURATIONA rendering option cannot use the template, or its configuration is invalid. See rendering options.
PublicMcpErrorSKILL_SESSION_LIMIT10,000 skill sessions are already activated. End unused MCP sessions before activating another.
CachePluginConfigurationErrornoneAn 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.

Report a docs issue · Report a security concern privately