Overview
Transport errors are thrown by the MCP transport layer — the component responsible for managing HTTP connections, sessions, and message framing. Most are internal errors exceptUnsupportedContentTypeError, which is a client-facing 400 error.
Error Reference
MethodNotImplementedError
Thrown when calling an abstract or placeholder method that has not been implemented.| Property | Type | Value |
|---|---|---|
code | string | METHOD_NOT_IMPLEMENTED |
statusCode | number | 500 |
isPublic | boolean | false |
UnsupportedTransportTypeError
Thrown when an unsupported transport type is specified in configuration.| Property | Type | Value |
|---|---|---|
code | string | UNSUPPORTED_TRANSPORT_TYPE |
statusCode | number | 500 |
isPublic | boolean | false |
TransportBusRequiredError
Thrown when a transport bus is required but not provided.| Property | Type | Value |
|---|---|---|
code | string | TRANSPORT_BUS_REQUIRED |
statusCode | number | 500 |
isPublic | boolean | false |
InvalidTransportSessionError
Thrown when a transport session is invalid or missing.| Property | Type | Value |
|---|---|---|
code | string | INVALID_TRANSPORT_SESSION |
statusCode | number | 500 |
isPublic | boolean | false |
TransportNotConnectedError
Thrown when an operation is attempted on a transport that is not connected.| Property | Type | Value |
|---|---|---|
code | string | TRANSPORT_NOT_CONNECTED |
statusCode | number | 500 |
isPublic | boolean | false |
TransportAlreadyStartedError
Thrown when attempting to start a transport that is already running.| Property | Type | Value |
|---|---|---|
code | string | TRANSPORT_ALREADY_STARTED |
statusCode | number | 500 |
isPublic | boolean | false |
UnsupportedContentTypeError
Thrown when a request uses an unsupportedContent-Type header. This is a public error since it represents a client-side issue.
| Property | Type | Value |
|---|---|---|
code | string | UNSUPPORTED_CONTENT_TYPE |
statusCode | number | 400 |
isPublic | boolean | true |
contentType | string | The unsupported content type |