@modelcontextprotocol/sdk
    Preparing search index...

    Class InvalidRequestError

    Invalid request error - The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    errorUri?: string
    message: string
    name: string
    stack?: string
    errorCode: string = "invalid_request"
    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