@modelcontextprotocol/sdk
    Preparing search index...

    Class InsufficientScopeError

    Insufficient scope error - The request requires higher privileges than provided by the access token.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    errorUri?: string
    message: string
    name: string
    stack?: string
    errorCode: string = 'insufficient_scope'
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    stackTraceLimit: number

    Accessors

    Methods

    • Converts the error to a standard OAuth error response object

      Returns { error: string; error_description?: string; error_uri?: string }

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void