Pular para o conteúdo principal

Class: MCPAuthAuthServerError

Error thrown when there is an issue with the remote authorization server, such as invalid metadata or a configuration that does not satisfy the MCP authorization specification.

Extends

Constructors

Constructor

new MCPAuthAuthServerError(code: AuthServerErrorCode, cause?: unknown): MCPAuthAuthServerError;

Parameters

code

AuthServerErrorCode

cause?

unknown

Returns

MCPAuthAuthServerError

Overrides

MCPAuthError.constructor

Properties

cause?

readonly optional cause: unknown;

Inherited from

MCPAuthError.cause


code

readonly code: AuthServerErrorCode;

The error code in snake_case format.

Inherited from

MCPAuthError.code


message

message: string;

Inherited from

MCPAuthError.message


name

name: string = 'MCPAuthAuthServerError';

Overrides

MCPAuthError.name


stack?

optional stack: string;

Inherited from

MCPAuthError.stack


prepareStackTrace()?

static optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any;

Optional override for formatting stack traces

Parameters

err

Error

stackTraces

CallSite[]

Returns

any

See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from

MCPAuthError.prepareStackTrace


stackTraceLimit

static stackTraceLimit: number;

Inherited from

MCPAuthError.stackTraceLimit

Methods

captureStackTrace()

static captureStackTrace(targetObject: object, constructorOpt?: Function): void;

Create .stack property on a target object

Parameters

targetObject

object

constructorOpt?

Function

Returns

void

Inherited from

MCPAuthError.captureStackTrace