SYMBOL INDEX (1798 symbols across 127 files) FILE: examples/client-quickstart/src/index.ts constant ANTHROPIC_MODEL (line 6) | const ANTHROPIC_MODEL = 'claude-sonnet-4-5'; class MCPClient (line 8) | class MCPClient { method constructor (line 14) | constructor() { method anthropic (line 19) | private get anthropic(): Anthropic { method connectToServer (line 26) | async connectToServer(serverScriptPath: string) { method processQuery (line 58) | async processQuery(query: string) { method chatLoop (line 127) | async chatLoop() { method cleanup (line 150) | async cleanup() { function main (line 157) | async function main() { FILE: examples/client/src/clientGuide.examples.ts function connect_streamableHttp (line 34) | async function connect_streamableHttp() { function connect_stdio (line 45) | async function connect_stdio() { function connect_sseFallback (line 59) | async function connect_sseFallback(url: string) { function disconnect_streamableHttp (line 84) | async function disconnect_streamableHttp(client: Client, transport: Stre... function serverInstructions_basic (line 96) | async function serverInstructions_basic(client: Client) { function auth_clientCredentials (line 111) | async function auth_clientCredentials() { function auth_privateKeyJwt (line 127) | async function auth_privateKeyJwt(pemEncodedKey: string) { function auth_crossAppAccess (line 141) | async function auth_crossAppAccess(getIdToken: () => Promise) { function callTool_basic (line 172) | async function callTool_basic(client: Client) { function callTool_structuredOutput (line 195) | async function callTool_structuredOutput(client: Client) { function callTool_progress (line 210) | async function callTool_progress(client: Client) { function readResource_basic (line 227) | async function readResource_basic(client: Client) { function subscribeResource_basic (line 249) | async function subscribeResource_basic(client: Client) { function getPrompt_basic (line 266) | async function getPrompt_basic(client: Client) { function complete_basic (line 289) | async function complete_basic(client: Client) { function notificationHandler_basic (line 310) | function notificationHandler_basic(client: Client) { function setLoggingLevel_basic (line 327) | async function setLoggingLevel_basic(client: Client) { function listChanged_basic (line 334) | async function listChanged_basic() { function capabilities_declaration (line 364) | function capabilities_declaration() { function sampling_handler (line 380) | function sampling_handler(client: Client) { function elicitation_handler (line 400) | function elicitation_handler(client: Client) { function roots_handler (line 417) | function roots_handler(client: Client) { function errorHandling_toolErrors (line 435) | async function errorHandling_toolErrors(client: Client) { function errorHandling_lifecycle (line 464) | function errorHandling_lifecycle(client: Client) { function errorHandling_timeout (line 479) | async function errorHandling_timeout(client: Client) { function middleware_basic (line 500) | async function middleware_basic() { function resumptionToken_basic (line 516) | async function resumptionToken_basic(client: Client) { FILE: examples/client/src/elicitationUrlExample.ts constant OAUTH_CALLBACK_PORT (line 33) | const OAUTH_CALLBACK_PORT = 8090; constant OAUTH_CALLBACK_URL (line 34) | const OAUTH_CALLBACK_URL = `http://localhost:${OAUTH_CALLBACK_PORT}/call... type QueuedElicitation (line 64) | interface QueuedElicitation { function main (line 86) | async function main(): Promise { function waitForElicitationsToComplete (line 111) | async function waitForElicitationsToComplete(): Promise { function printHelp (line 118) | function printHelp(): void { function commandLoop (line 132) | async function commandLoop(): Promise { function elicitationLoop (line 231) | async function elicitationLoop(): Promise { constant ALLOWED_SCHEMES (line 272) | const ALLOWED_SCHEMES = new Set(['http:', 'https:']); function openBrowser (line 274) | async function openBrowser(url: string): Promise { function elicitationRequestHandler (line 302) | async function elicitationRequestHandler(request: ElicitRequest): Promis... function handleElicitationRequest (line 335) | async function handleElicitationRequest(request: ElicitRequest): Promise... function handleURLElicitation (line 360) | async function handleURLElicitation(params: ElicitRequestURLParams): Pro... function waitForOAuthCallback (line 443) | async function waitForOAuthCallback(): Promise { function attemptConnection (line 504) | async function attemptConnection(oauthProvider: InMemoryOAuthClientProvi... function connect (line 536) | async function connect(url?: string): Promise { function disconnect (line 602) | async function disconnect(): Promise { function terminateSession (line 618) | async function terminateSession(): Promise { function reconnect (line 648) | async function reconnect(): Promise { function listTools (line 655) | async function listTools(): Promise { function callTool (line 681) | async function callTool(name: string, args: Record): Pr... function cleanup (line 753) | async function cleanup(): Promise { function callPaymentConfirmTool (line 781) | async function callPaymentConfirmTool(): Promise { function callThirdPartyAuthTool (line 786) | async function callThirdPartyAuthTool(): Promise { FILE: examples/client/src/multipleClientsParallel.ts type ClientConfig (line 17) | interface ClientConfig { function createAndRunClient (line 24) | async function createAndRunClient(config: ClientConfig): Promise<{ id: s... function main (line 75) | async function main(): Promise { FILE: examples/client/src/parallelToolCallsClient.ts function main (line 16) | async function main(): Promise { function listTools (line 83) | async function listTools(client: Client): Promise { function startParallelNotificationTools (line 108) | async function startParallelNotificationTools(client: Client): Promise { method openBrowser (line 48) | private async openBrowser(url: string): Promise { method waitForOAuthCallback (line 75) | private async waitForOAuthCallback(): Promise { method attemptConnection (line 131) | private async attemptConnection(oauthProvider: InMemoryOAuthClientProv... method connect (line 162) | async connect(): Promise { method interactiveLoop (line 207) | async interactiveLoop(): Promise { method listTools (line 247) | private async listTools(): Promise { method handleCallTool (line 278) | private async handleCallTool(command: string): Promise { method callTool (line 302) | private async callTool(toolName: string, toolArgs: Record { method streamTool (line 355) | private async streamTool(toolName: string, toolArgs: Record { FILE: examples/client/src/simpleOAuthClientProvider.ts class InMemoryOAuthClientProvider (line 7) | class InMemoryOAuthClientProvider implements OAuthClientProvider { method constructor (line 12) | constructor( method redirectUrl (line 27) | get redirectUrl(): string | URL { method clientMetadata (line 31) | get clientMetadata(): OAuthClientMetadata { method clientInformation (line 35) | clientInformation(): OAuthClientInformationMixed | undefined { method saveClientInformation (line 39) | saveClientInformation(clientInformation: OAuthClientInformationMixed):... method tokens (line 43) | tokens(): OAuthTokens | undefined { method saveTokens (line 47) | saveTokens(tokens: OAuthTokens): void { method redirectToAuthorization (line 51) | redirectToAuthorization(authorizationUrl: URL): void { method saveCodeVerifier (line 55) | saveCodeVerifier(codeVerifier: string): void { method codeVerifier (line 59) | codeVerifier(): string { FILE: examples/client/src/simpleStreamableHttp.ts function main (line 39) | async function main(): Promise { function printHelp (line 51) | function printHelp(): void { function commandLoop (line 74) | function commandLoop(): void { function connect (line 240) | async function connect(url?: string): Promise { function disconnect (line 562) | async function disconnect(): Promise { function terminateSession (line 578) | async function terminateSession(): Promise { function reconnect (line 608) | async function reconnect(): Promise { function listTools (line 615) | async function listTools(): Promise { function callTool (line 641) | async function callTool(name: string, args: Record): Pr... function callGreetTool (line 705) | async function callGreetTool(name: string): Promise { function callMultiGreetTool (line 709) | async function callMultiGreetTool(name: string): Promise { function callCollectInfoTool (line 714) | async function callCollectInfoTool(infoType: string): Promise { function callCollectInfoWithTask (line 719) | async function callCollectInfoWithTask(infoType: string): Promise { function startNotifications (line 725) | async function startNotifications(interval: number, count: number): Prom... function runNotificationsToolWithResumability (line 730) | async function runNotificationsToolWithResumability(interval: number, co... function listPrompts (line 766) | async function listPrompts(): Promise { function getPrompt (line 791) | async function getPrompt(name: string, args: Record): P... function listResources (line 816) | async function listResources(): Promise { function readResource (line 842) | async function readResource(uri: string): Promise { function callToolTask (line 883) | async function callToolTask(name: string, args: Record)... function cleanup (line 947) | async function cleanup(): Promise { FILE: examples/client/src/simpleTaskInteractiveClient.ts function question (line 21) | function question(prompt: string): Promise { function getTextContent (line 29) | function getTextContent(result: { content: Array<{ type: string; text?: ... function elicitationCallback (line 34) | async function elicitationCallback(params: { function samplingCallback (line 49) | async function samplingCallback(params: CreateMessageRequest['params']):... function run (line 80) | async function run(url: string): Promise { FILE: examples/client/src/ssePollingClient.ts constant SERVER_URL (line 17) | const SERVER_URL = 'http://localhost:3001/mcp'; function main (line 19) | async function main(): Promise { FILE: examples/client/src/streamableHttpWithSseFallbackClient.ts function main (line 20) | async function main(): Promise { function connectWithBackwardsCompatibility (line 67) | async function connectWithBackwardsCompatibility(url: string): Promise<{ function listTools (line 126) | async function listTools(client: Client): Promise { function startNotificationTool (line 150) | async function startNotificationTool(client: Client): Promise { FILE: examples/server-quickstart/src/index.ts constant NWS_API_BASE (line 5) | const NWS_API_BASE = 'https://api.weather.gov'; constant USER_AGENT (line 6) | const USER_AGENT = 'weather-app/1.0'; function makeNWSRequest (line 17) | async function makeNWSRequest(url: string): Promise { type AlertFeature (line 35) | interface AlertFeature { function formatAlert (line 46) | function formatAlert(feature: AlertFeature): string { type ForecastPeriod (line 58) | interface ForecastPeriod { type AlertsResponse (line 67) | interface AlertsResponse { type PointsResponse (line 71) | interface PointsResponse { type ForecastResponse (line 77) | interface ForecastResponse { function main (line 211) | async function main() { FILE: examples/server/src/customProtocolVersion.ts constant CUSTOM_VERSIONS (line 19) | const CUSTOM_VERSIONS = ['2026-01-01', ...SUPPORTED_PROTOCOL_VERSIONS]; constant PORT (line 54) | const PORT = process.env.MCP_PORT ? Number.parseInt(process.env.MCP_PORT... FILE: examples/server/src/elicitationFormExample.ts function main (line 321) | async function main() { FILE: examples/server/src/elicitationUrlExample.ts type ElicitationMetadata (line 125) | interface ElicitationMetadata { constant ELICITATION_TTL_MS (line 137) | const ELICITATION_TTL_MS = 60 * 60 * 1000; constant CLEANUP_INTERVAL_MS (line 138) | const CLEANUP_INTERVAL_MS = 10 * 60 * 1000; function cleanupOldElicitations (line 140) | function cleanupOldElicitations() { function generateElicitationId (line 156) | function generateElicitationId(): string { function generateTrackedElicitation (line 163) | function generateTrackedElicitation(sessionId: string, createCompletionN... function completeURLElicitation (line 190) | function completeURLElicitation(elicitationId: string) { constant MCP_PORT (line 218) | const MCP_PORT = process.env.MCP_PORT ? Number.parseInt(process.env.MCP_... constant AUTH_PORT (line 219) | const AUTH_PORT = process.env.MCP_AUTH_PORT ? Number.parseInt(process.en... function sendApiKeyElicitation (line 259) | async function sendApiKeyElicitation( function getUserSessionCookie (line 393) | function getUserSessionCookie(cookieHeader?: string): { userId: string; ... type ElicitationSender (line 554) | type ElicitationSender = (params: ElicitRequestURLParams) => Promise (... type SessionElicitationInfo (line 558) | interface SessionElicitationInfo { FILE: examples/server/src/honoWebStandardStreamableHttp.ts constant PORT (line 62) | const PORT = process.env.MCP_PORT ? Number.parseInt(process.env.MCP_PORT... FILE: examples/server/src/inMemoryEventStore.ts class InMemoryEventStore (line 8) | class InMemoryEventStore implements EventStore { method generateEventId (line 14) | private generateEventId(streamId: string): string { method getStreamIdFromEventId (line 21) | private getStreamIdFromEventId(eventId: string): string { method storeEvent (line 30) | async storeEvent(streamId: string, message: JSONRPCMessage): Promise { method constructor (line 51) | constructor() { method setResult (line 58) | setResult(value: T): void { method setException (line 64) | setException(error: Error): void { method wait (line 70) | wait(): Promise { method done (line 74) | done(): boolean { type QueuedRequestWithResolver (line 83) | interface QueuedRequestWithResolver extends QueuedRequest { type QueuedMessageWithResolver (line 88) | type QueuedMessageWithResolver = QueuedRequestWithResolver | QueuedMessage; class TaskMessageQueueWithResolvers (line 90) | class TaskMessageQueueWithResolvers implements TaskMessageQueue { method getQueue (line 94) | private getQueue(taskId: string): QueuedMessageWithResolver[] { method enqueue (line 103) | async enqueue(taskId: string, message: QueuedMessage, _sessionId?: str... method enqueueWithResolver (line 113) | async enqueueWithResolver( method dequeue (line 131) | async dequeue(taskId: string, _sessionId?: string): Promise { method notifyWaiters (line 158) | private notifyWaiters(taskId: string): void { method cleanup (line 168) | cleanup(): void { class TaskStoreWithNotifications (line 178) | class TaskStoreWithNotifications extends InMemoryTaskStore { method updateTaskStatus (line 181) | override async updateTaskStatus(taskId: string, status: Task['status']... method storeTaskResult (line 186) | override async storeTaskResult(taskId: string, status: 'completed' | '... method waitForUpdate (line 191) | async waitForUpdate(taskId: string): Promise { method notifyUpdate (line 202) | private notifyUpdate(taskId: string): void { class TaskResultHandler (line 217) | class TaskResultHandler { method constructor (line 220) | constructor( method handle (line 225) | async handle(taskId: string, server: Server, _sessionId: string): Prom... method deliverQueuedMessages (line 254) | private async deliverQueuedMessages(taskId: string, server: Server, _s... method waitForUpdate (line 302) | private async waitForUpdate(taskId: string): Promise { method routeResponse (line 307) | routeResponse(requestId: RequestId, response: Record)... method routeError (line 317) | routeError(requestId: RequestId, error: Error): boolean { class TaskSession (line 332) | class TaskSession { method constructor (line 335) | constructor( method nextRequestId (line 342) | private nextRequestId(): string { method elicit (line 346) | async elicit( method createMessage (line 396) | async createMessage( constant PORT (line 446) | const PORT = process.env.PORT ? Number.parseInt(process.env.PORT, 10) : ... FILE: examples/server/src/ssePollingExample.ts constant PORT (line 126) | const PORT = 3001; FILE: examples/server/src/standaloneSseWithGetStreamableHttp.ts constant PORT (line 133) | const PORT = 3000; FILE: examples/server/src/toolWithSampleServer.ts function main (line 47) | async function main() { FILE: examples/shared/src/auth.ts constant DEMO_PASSWORD (line 18) | const DEMO_PASSWORD = randomBytes(16).toString('base64url'); function getDatabase (line 24) | function getDatabase(): InstanceType { function initializeSchema (line 40) | function initializeSchema(db: InstanceType): void { constant DEMO_USER_CREDENTIALS (line 167) | const DEMO_USER_CREDENTIALS = { type CreateDemoAuthOptions (line 173) | interface CreateDemoAuthOptions { function createDemoAuth (line 190) | function createDemoAuth(options: CreateDemoAuthOptions) { type DemoAuth (line 250) | type DemoAuth = ReturnType; FILE: examples/shared/src/authMiddleware.ts type RequireBearerAuthOptions (line 13) | interface RequireBearerAuthOptions { function requireBearerAuth (line 24) | function requireBearerAuth( function getOAuthProtectedResourceMetadataUrl (line 90) | function getOAuthProtectedResourceMetadataUrl(serverUrl: URL): URL { FILE: examples/shared/src/authServer.ts type SetupAuthServerOptions (line 21) | interface SetupAuthServerOptions { function getAuth (line 44) | function getAuth(): DemoAuth { function ensureDemoUserExists (line 55) | async function ensureDemoUserExists(auth: DemoAuth): Promise { function setupAuthServer (line 88) | function setupAuthServer(options: SetupAuthServerOptions): void { function createProtectedResourceMetadataRouter (line 271) | function createProtectedResourceMetadataRouter(resourcePath = '/mcp'): R... function verifyAccessToken (line 290) | async function verifyAccessToken( FILE: packages/client/src/client/auth.examples.ts method redirectUrl (line 20) | get redirectUrl(): URL | undefined { method clientMetadata (line 23) | get clientMetadata() { method clientInformation (line 26) | clientInformation(): undefined { method tokens (line 29) | tokens(): undefined { method saveTokens (line 32) | saveTokens() { method redirectToAuthorization (line 35) | redirectToAuthorization() { method saveCodeVerifier (line 38) | saveCodeVerifier() { method codeVerifier (line 41) | codeVerifier() { function fetchToken_clientCredentials (line 49) | async function fetchToken_clientCredentials(authServerUrl: URL, metadata... FILE: packages/client/src/client/auth.ts type AddClientAuthentication (line 30) | type AddClientAuthentication = ( type OAuthClientProvider (line 44) | interface OAuthClientProvider { type OAuthDiscoveryState (line 267) | interface OAuthDiscoveryState extends OAuthServerInfo { type AuthResult (line 272) | type AuthResult = 'AUTHORIZED' | 'REDIRECT'; class UnauthorizedError (line 274) | class UnauthorizedError extends Error { method constructor (line 275) | constructor(message?: string) { type ClientAuthMethod (line 280) | type ClientAuthMethod = 'client_secret_basic' | 'client_secret_post' | '... function isClientAuthMethod (line 282) | function isClientAuthMethod(method: string): method is ClientAuthMethod { constant AUTHORIZATION_CODE_RESPONSE_TYPE (line 286) | const AUTHORIZATION_CODE_RESPONSE_TYPE = 'code'; constant AUTHORIZATION_CODE_CHALLENGE_METHOD (line 287) | const AUTHORIZATION_CODE_CHALLENGE_METHOD = 'S256'; function selectClientAuthMethod (line 301) | function selectClientAuthMethod(clientInformation: OAuthClientInformatio... function applyClientAuthentication (line 354) | function applyClientAuthentication( function applyBasicAuth (line 384) | function applyBasicAuth(clientId: string, clientSecret: string | undefin... function applyPostAuth (line 396) | function applyPostAuth(clientId: string, clientSecret: string | undefine... function applyPublicAuth (line 406) | function applyPublicAuth(clientId: string, params: URLSearchParams): void { function parseErrorResponse (line 421) | async function parseErrorResponse(input: Response | string): Promise string | Pr... type CrossAppAccessProviderOptions (line 452) | interface CrossAppAccessProviderOptions { class CrossAppAccessProvider (line 542) | class CrossAppAccessProvider implements OAuthClientProvider { method constructor (line 552) | constructor(options: CrossAppAccessProviderOptions) { method redirectUrl (line 567) | get redirectUrl(): undefined { method clientMetadata (line 571) | get clientMetadata(): OAuthClientMetadata { method clientInformation (line 575) | clientInformation(): OAuthClientInformation { method saveClientInformation (line 579) | saveClientInformation(info: OAuthClientInformation): void { method tokens (line 583) | tokens(): OAuthTokens | undefined { method saveTokens (line 587) | saveTokens(tokens: OAuthTokens): void { method redirectToAuthorization (line 591) | redirectToAuthorization(): void { method saveCodeVerifier (line 595) | saveCodeVerifier(): void { method codeVerifier (line 599) | codeVerifier(): string { method saveAuthorizationServerUrl (line 607) | saveAuthorizationServerUrl?(authorizationServerUrl: string): void { method authorizationServerUrl (line 614) | authorizationServerUrl?(): string | undefined { method saveResourceUrl (line 622) | saveResourceUrl?(resourceUrl: string): void { method resourceUrl (line 629) | resourceUrl?(): string | undefined { method prepareTokenRequest (line 633) | async prepareTokenRequest(scope?: string): Promise { FILE: packages/client/src/client/client.examples.ts function ClientOptions_listChanged (line 20) | function ClientOptions_listChanged() { function Client_connect_stdio (line 48) | async function Client_connect_stdio() { function Client_connect_sseFallback (line 60) | async function Client_connect_sseFallback(url: string) { function Client_callTool_basic (line 83) | async function Client_callTool_basic(client: Client) { function Client_callTool_structuredOutput (line 103) | async function Client_callTool_structuredOutput(client: Client) { function Client_setRequestHandler_sampling (line 120) | function Client_setRequestHandler_sampling(client: Client) { function Client_listTools_pagination (line 142) | async function Client_listTools_pagination(client: Client) { function Client_listPrompts_pagination (line 161) | async function Client_listPrompts_pagination(client: Client) { function Client_listResources_pagination (line 180) | async function Client_listResources_pagination(client: Client) { FILE: packages/client/src/client/client.ts function applyElicitationDefaults (line 75) | function applyElicitationDefaults(schema: JsonSchemaType | undefined, da... function getSupportedElicitationModes (line 125) | function getSupportedElicitationModes(capabilities: ClientCapabilities['... type ClientOptions (line 143) | type ClientOptions = ProtocolOptions & { class Client (line 194) | class Client extends Protocol { method constructor (line 211) | constructor( method buildContext (line 226) | protected override buildContext(ctx: BaseContext, _transportInfo?: Mes... method _setupListChangedHandlers (line 236) | private _setupListChangedHandlers(config: ListChangedHandlers): void { method experimental (line 266) | get experimental(): { tasks: ExperimentalClientTasks } { method registerCapabilities (line 280) | public registerCapabilities(capabilities: ClientCapabilities): void { method setRequestHandler (line 314) | public override setRequestHandler( method assertCapability (line 435) | protected assertCapability(capability: keyof ServerCapabilities, metho... method connect (line 470) | override async connect(transport: Transport, options?: RequestOptions)... method getServerCapabilities (line 527) | getServerCapabilities(): ServerCapabilities | undefined { method getServerVersion (line 534) | getServerVersion(): Implementation | undefined { method getInstructions (line 541) | getInstructions(): string | undefined { method assertCapabilityForMethod (line 545) | protected assertCapabilityForMethod(method: RequestMethod): void { method assertNotificationCapability (line 608) | protected assertNotificationCapability(method: NotificationMethod): vo... method assertRequestHandlerCapability (line 637) | protected assertRequestHandlerCapability(method: string): void { method assertTaskCapability (line 695) | protected assertTaskCapability(method: string): void { method assertTaskHandlerCapability (line 699) | protected assertTaskHandlerCapability(method: string): void { method ping (line 710) | async ping(options?: RequestOptions) { method complete (line 715) | async complete(params: CompleteRequest['params'], options?: RequestOpt... method setLoggingLevel (line 720) | async setLoggingLevel(level: LoggingLevel, options?: RequestOptions) { method getPrompt (line 725) | async getPrompt(params: GetPromptRequest['params'], options?: RequestO... method listPrompts (line 750) | async listPrompts(params?: ListPromptsRequest['params'], options?: Req... method listResources (line 780) | async listResources(params?: ListResourcesRequest['params'], options?:... method listResourceTemplates (line 795) | async listResourceTemplates(params?: ListResourceTemplatesRequest['par... method readResource (line 807) | async readResource(params: ReadResourceRequest['params'], options?: Re... method subscribeResource (line 812) | async subscribeResource(params: SubscribeRequest['params'], options?: ... method unsubscribeResource (line 817) | async unsubscribeResource(params: UnsubscribeRequest['params'], option... method callTool (line 860) | async callTool(params: CallToolRequest['params'], options?: RequestOpt... method isToolTask (line 909) | private isToolTask(toolName: string): boolean { method isToolTaskRequired (line 921) | private isToolTaskRequired(toolName: string): boolean { method cacheToolMetadata (line 929) | private cacheToolMetadata(tools: Tool[]): void { method getToolOutputValidator (line 955) | private getToolOutputValidator(toolName: string): JsonSchemaValidator<... method listTools (line 980) | async listTools(params?: ListToolsRequest['params'], options?: Request... method _setupListChangedHandler (line 998) | private _setupListChangedHandler( method sendRootsListChanged (line 1055) | async sendRootsListChanged() { FILE: packages/client/src/client/crossAppAccess.ts type RequestJwtAuthGrantOptions (line 20) | interface RequestJwtAuthGrantOptions { type DiscoverAndRequestJwtAuthGrantOptions (line 71) | interface DiscoverAndRequestJwtAuthGrantOptions extends Omit FetchLike; type RequestLogger (line 102) | type RequestLogger = (input: { type LoggingOptions (line 116) | type LoggingOptions = { FILE: packages/client/src/client/sse.ts class SseError (line 9) | class SseError extends Error { method constructor (line 10) | constructor( type SSEClientTransportOptions (line 22) | type SSEClientTransportOptions = { class SSEClientTransport (line 65) | class SSEClientTransport implements Transport { method constructor (line 83) | constructor(url: URL, opts?: SSEClientTransportOptions) { method _authThenStart (line 94) | private async _authThenStart(): Promise { method _commonHeaders (line 119) | private async _commonHeaders(): Promise { method _startOrAuth (line 139) | private _startOrAuth(): Promise { method start (line 212) | async start() { method finishAuth (line 223) | async finishAuth(authorizationCode: string): Promise { method close (line 240) | async close(): Promise { method send (line 246) | async send(message: JSONRPCMessage): Promise { method setProtocolVersion (line 296) | setProtocolVersion(version: string): void { FILE: packages/client/src/client/stdio.ts type StdioServerParameters (line 10) | type StdioServerParameters = { constant DEFAULT_INHERITED_ENV_VARS (line 46) | const DEFAULT_INHERITED_ENV_VARS = function getDefaultEnvironment (line 68) | function getDefaultEnvironment(): Record { class StdioClientTransport (line 93) | class StdioClientTransport implements Transport { method constructor (line 103) | constructor(server: StdioServerParameters) { method start (line 113) | async start(): Promise { method stderr (line 173) | get stderr(): Stream | null { method pid (line 186) | get pid(): number | null { method processReadBuffer (line 190) | private processReadBuffer() { method close (line 205) | async close(): Promise { method send (line 246) | send(message: JSONRPCMessage): Promise { function isElectron (line 262) | function isElectron() { FILE: packages/client/src/client/streamableHttp.ts constant DEFAULT_STREAMABLE_HTTP_RECONNECTION_OPTIONS (line 20) | const DEFAULT_STREAMABLE_HTTP_RECONNECTION_OPTIONS: StreamableHTTPReconn... type StartSSEOptions (line 30) | interface StartSSEOptions { type StreamableHTTPReconnectionOptions (line 55) | interface StreamableHTTPReconnectionOptions { type StreamableHTTPClientTransportOptions (line 84) | type StreamableHTTPClientTransportOptions = { class StreamableHTTPClientTransport (line 128) | class StreamableHTTPClientTransport implements Transport { method constructor (line 149) | constructor(url: URL, opts?: StreamableHTTPClientTransportOptions) { method _authThenStart (line 161) | private async _authThenStart(): Promise { method _commonHeaders (line 186) | private async _commonHeaders(): Promise { method _startOrAuthSse (line 210) | private async _startOrAuthSse(options: StartSSEOptions): Promise { method _getNextReconnectionDelay (line 264) | private _getNextReconnectionDelay(attempt: number): number { method _scheduleReconnection (line 285) | private _scheduleReconnection(options: StartSSEOptions, attemptCount =... method _handleSseStream (line 309) | private _handleSseStream(stream: ReadableStream | null, op... method start (line 420) | async start() { method finishAuth (line 433) | async finishAuth(authorizationCode: string): Promise { method close (line 450) | async close(): Promise { method send (line 459) | async send( method sessionId (line 627) | get sessionId(): string | undefined { method terminateSession (line 642) | async terminateSession(): Promise { method setProtocolVersion (line 676) | setProtocolVersion(version: string): void { method protocolVersion (line 679) | get protocolVersion(): string | undefined { method resumeStream (line 690) | async resumeStream(lastEventId: string, options?: { onresumptiontoken?... FILE: packages/client/src/client/websocket.ts constant SUBPROTOCOL (line 4) | const SUBPROTOCOL = 'mcp'; class WebSocketClientTransport (line 9) | class WebSocketClientTransport implements Transport { method constructor (line 17) | constructor(url: URL) { method start (line 21) | start(): Promise { method close (line 59) | async close(): Promise { method send (line 63) | send(message: JSONRPCMessage): Promise { FILE: packages/client/src/experimental/tasks/client.examples.ts function ExperimentalClientTasks_callToolStream (line 17) | async function ExperimentalClientTasks_callToolStream(client: Client) { function ExperimentalClientTasks_requestStream (line 46) | async function ExperimentalClientTasks_requestStream(client: Client, opt... FILE: packages/client/src/experimental/tasks/client.ts type ClientInternal (line 30) | interface ClientInternal { class ExperimentalClientTasks (line 50) | class ExperimentalClientTasks { method constructor (line 51) | constructor(private readonly _client: Client) {} method callToolStream (line 92) | async *callToolStream( method getTask (line 178) | async getTask(taskId: string, options?: RequestOptions): Promise(taskId: string, resultS... method listTasks (line 216) | async listTasks(cursor?: string, options?: RequestOptions): Promise( FILE: packages/client/test/client/auth.test.ts function createMockProvider (line 1025) | function createMockProvider(overrides: Partial = {}... method redirectUrl (line 1975) | get redirectUrl() { method clientMetadata (line 1978) | get clientMetadata() { method redirectUrl (line 2044) | get redirectUrl() { method clientMetadata (line 2048) | get clientMetadata() { method redirectUrl (line 2960) | get redirectUrl() { method clientMetadata (line 2963) | get clientMetadata() { method redirectUrl (line 3417) | get redirectUrl() { method clientMetadata (line 3421) | get clientMetadata() { FILE: packages/client/test/client/authExtensions.test.ts constant RESOURCE_SERVER_URL (line 13) | const RESOURCE_SERVER_URL = 'https://resource.example.com/'; constant AUTH_SERVER_URL (line 14) | const AUTH_SERVER_URL = 'https://auth.example.com'; FILE: packages/client/test/client/middleware.test.ts method redirectUrl (line 29) | get redirectUrl() { method clientMetadata (line 32) | get clientMetadata() { method redirectUrl (line 755) | get redirectUrl() { method clientMetadata (line 758) | get clientMetadata() { FILE: packages/client/test/client/sse.test.ts function parseBasicAuth (line 20) | function parseBasicAuth(req: IncomingMessage): { clientId: string; clien... method redirectUrl (line 425) | get redirectUrl() { method clientMetadata (line 428) | get clientMetadata() { method redirectUrl (line 1210) | get redirectUrl() { method clientMetadata (line 1213) | get clientMetadata() { FILE: packages/client/test/client/streamableHttp.test.ts method redirectUrl (line 16) | get redirectUrl() { method clientMetadata (line 19) | get clientMetadata() { method start (line 289) | start(controller) { method start (line 327) | start(controller) { method start (line 471) | start(controller) { method start (line 780) | start(controller) { method start (line 834) | start(controller) { method start (line 884) | start(controller) { method start (line 945) | start(controller) { method start (line 998) | start(controller) { method start (line 1045) | start(controller) { method start (line 1439) | start(controller) { method start (line 1516) | start(controller) { FILE: packages/core/src/auth/errors.ts type OAuthErrorCode (line 7) | enum OAuthErrorCode { class OAuthError (line 100) | class OAuthError extends Error { method constructor (line 101) | constructor( method toResponseObject (line 113) | toResponseObject(): OAuthErrorResponse { method fromResponse (line 129) | static fromResponse(response: OAuthErrorResponse): OAuthError { FILE: packages/core/src/errors/sdkErrors.examples.ts function SdkError_basicUsage (line 15) | function SdkError_basicUsage() { FILE: packages/core/src/errors/sdkErrors.ts type SdkErrorCode (line 9) | enum SdkErrorCode { class SdkError (line 57) | class SdkError extends Error { method constructor (line 58) | constructor( FILE: packages/core/src/experimental/tasks/helpers.ts type TaskRequestsCapability (line 12) | interface TaskRequestsCapability { function assertToolsCallTaskCapability (line 29) | function assertToolsCallTaskCapability( function assertClientRequestTaskCapability (line 64) | function assertClientRequestTaskCapability( FILE: packages/core/src/experimental/tasks/interfaces.ts type CreateTaskServerContext (line 27) | type CreateTaskServerContext = ServerContext & { type TaskServerContext (line 35) | type TaskServerContext = ServerContext & { type TaskToolExecution (line 44) | type TaskToolExecution = Omi... type QueuedMessage (line 54) | type QueuedMessage = QueuedRequest | QueuedNotification | QueuedResponse... type BaseQueuedMessage (line 56) | interface BaseQueuedMessage { type QueuedRequest (line 63) | interface QueuedRequest extends BaseQueuedMessage { type QueuedNotification (line 69) | interface QueuedNotification extends BaseQueuedMessage { type QueuedResponse (line 75) | interface QueuedResponse extends BaseQueuedMessage { type QueuedError (line 81) | interface QueuedError extends BaseQueuedMessage { type TaskMessageQueue (line 103) | interface TaskMessageQueue { type CreateTaskOptions (line 137) | interface CreateTaskOptions { type TaskStore (line 164) | interface TaskStore { function isTerminal (line 240) | function isTerminal(status: Task['status']): boolean { FILE: packages/core/src/experimental/tasks/stores/inMemory.ts type StoredTask (line 10) | interface StoredTask { class InMemoryTaskStore (line 23) | class InMemoryTaskStore implements TaskStore { method generateTaskId (line 30) | private generateTaskId(): string { method createTask (line 35) | async createTask(taskParams: CreateTaskOptions, requestId: RequestId, ... method getStoredTask (line 82) | private getStoredTask(taskId: string, sessionId?: string): StoredTask ... method getTask (line 95) | async getTask(taskId: string, sessionId?: string): Promise { method storeTaskResult (line 101) | async storeTaskResult(taskId: string, status: 'completed' | 'failed', ... method getTaskResult (line 135) | async getTaskResult(taskId: string, sessionId?: string): Promise; type OpenIdProviderMetadata (line 238) | type OpenIdProviderMetadata = z.infer; type OpenIdProviderDiscoveryMetadata (line 239) | type OpenIdProviderDiscoveryMetadata = z.infer; type OAuthErrorResponse (line 242) | type OAuthErrorResponse = z.infer; type OAuthClientMetadata (line 243) | type OAuthClientMetadata = z.infer; type OAuthClientInformation (line 244) | type OAuthClientInformation = z.infer; type OAuthClientInformationFull (line 245) | type OAuthClientInformationFull = z.infer void; type ProtocolOptions (line 75) | type ProtocolOptions = { constant DEFAULT_REQUEST_TIMEOUT_MSEC (line 127) | const DEFAULT_REQUEST_TIMEOUT_MSEC = 60_000; type RequestOptions (line 132) | type RequestOptions = { type NotificationOptions (line 180) | type NotificationOptions = { type TaskRequestOptions (line 196) | type TaskRequestOptions = Omit; type RequestTaskStore (line 201) | interface RequestTaskStore { type TaskContext (line 258) | type TaskContext = { type BaseContext (line 267) | type BaseContext = { type ServerContext (line 334) | type ServerContext = BaseContext & { type ClientContext (line 379) | type ClientContext = BaseContext; type TimeoutInfo (line 384) | type TimeoutInfo = { method constructor (line 442) | constructor(private _options?: ProtocolOptions) { method _oncancel (line 635) | private async _oncancel(notification: CancelledNotification): Promise { method _onclose (line 726) | private _onclose(): void { method _onerror (line 743) | private _onerror(error: Error): void { method _onnotification (line 747) | private _onnotification(notification: JSONRPCNotification): void { method _onrequest (line 761) | private _onrequest(request: JSONRPCRequest, extra?: MessageExtraInfo): v... method _onprogress (line 912) | private _onprogress(notification: ProgressNotification): void { method _onresponse (line 941) | private _onresponse(response: JSONRPCResponse | JSONRPCErrorResponse): v... method transport (line 991) | get transport(): Transport | undefined { method close (line 998) | async close(): Promise { method requestStream (line 1044) | protected async *requestStream( method _requestStreamWithSchema (line 1063) | protected async *_requestStreamWithSchema( method request (line 1165) | request( method _requestWithSchema (line 1179) | protected _requestWithSchema( method getTask (line 1345) | protected async getTask(params: GetTaskRequest['params'], options?: Requ... method getTaskResult (line 1354) | protected async getTaskResult( method listTasks (line 1367) | protected async listTasks(params?: { cursor?: string }, options?: Reques... method cancelTask (line 1376) | protected async cancelTask(params: { taskId: string }, options?: Request... method notification (line 1383) | async notification(notification: Notification, options?: NotificationOpt... method setRequestHandler (line 1498) | setRequestHandler( method removeRequestHandler (line 1514) | removeRequestHandler(method: RequestMethod): void { method assertCanSetRequestHandler (line 1521) | assertCanSetRequestHandler(method: RequestMethod): void { method setNotificationHandler (line 1532) | setNotificationHandler( method removeNotificationHandler (line 1547) | removeNotificationHandler(method: NotificationMethod): void { method _cleanupTaskProgressHandler (line 1555) | private _cleanupTaskProgressHandler(taskId: string): void { method _enqueueTaskMessage (line 1574) | private async _enqueueTaskMessage(taskId: string, message: QueuedMessage... method _clearTaskQueue (line 1589) | private async _clearTaskQueue(taskId: string, sessionId?: string): Promi... method _waitForTaskUpdate (line 1617) | private async _waitForTaskUpdate(taskId: string, signal: AbortSignal): P... method requestTaskStore (line 1650) | private requestTaskStore(request?: JSONRPCRequest, sessionId?: string): ... function isPlainObject (line 1740) | function isPlainObject(value: unknown): value is Record { function mergeCapabilities (line 1746) | function mergeCapabilities extends BaseResponseMessage { type ErrorMessage (line 48) | interface ErrorMessage extends BaseResponseMessage { type ResponseMessage (line 67) | type ResponseMessage = TaskStatusMessage | TaskCreated... type AsyncGeneratorValue (line 69) | type AsyncGeneratorValue = T extends AsyncGenerator ? U : ne... function toArrayAsync (line 74) | async function toArrayAsync>(it: T): P... function takeResult (line 88) | async function takeResult Promise; constant MAX_TEMPLATE_LENGTH (line 5) | const MAX_TEMPLATE_LENGTH = 1_000_000; constant MAX_VARIABLE_LENGTH (line 6) | const MAX_VARIABLE_LENGTH = 1_000_000; constant MAX_TEMPLATE_EXPRESSIONS (line 7) | const MAX_TEMPLATE_EXPRESSIONS = 10_000; constant MAX_REGEX_LENGTH (line 8) | const MAX_REGEX_LENGTH = 1_000_000; class UriTemplate (line 10) | class UriTemplate { method isTemplate (line 16) | static isTemplate(str: string): boolean { method validateLength (line 22) | private static validateLength(str: string, max: number, context: strin... method variableNames (line 30) | get variableNames(): string[] { method constructor (line 34) | constructor(template: string) { method toString (line 40) | toString(): string { method parse (line 44) | private parse(template: string): Array; type RequestMetaObject (line 69) | interface RequestMetaObject extends MetaObject { type ProgressToken (line 81) | type ProgressToken = string | number; type Cursor (line 88) | type Cursor = string; type TaskAugmentedRequestParams (line 95) | interface TaskAugmentedRequestParams extends RequestParams { type RequestParams (line 112) | interface RequestParams { type Request (line 117) | interface Request { type NotificationParams (line 129) | interface NotificationParams { type Notification (line 134) | interface Notification { type Result (line 146) | interface Result { type Error (line 154) | interface Error { type RequestId (line 174) | type RequestId = string | number; type JSONRPCRequest (line 181) | interface JSONRPCRequest extends Request { type JSONRPCNotification (line 191) | interface JSONRPCNotification extends Notification { type JSONRPCResultResponse (line 200) | interface JSONRPCResultResponse { type JSONRPCErrorResponse (line 211) | interface JSONRPCErrorResponse { type JSONRPCResponse (line 222) | type JSONRPCResponse = JSONRPCResultResponse | JSONRPCErrorResponse; constant PARSE_ERROR (line 225) | const PARSE_ERROR = -32700; constant INVALID_REQUEST (line 226) | const INVALID_REQUEST = -32600; constant METHOD_NOT_FOUND (line 227) | const METHOD_NOT_FOUND = -32601; constant INVALID_PARAMS (line 228) | const INVALID_PARAMS = -32602; constant INTERNAL_ERROR (line 229) | const INTERNAL_ERROR = -32603; type ParseError (line 241) | interface ParseError extends Error { type InvalidRequestError (line 252) | interface InvalidRequestError extends Error { type MethodNotFoundError (line 271) | interface MethodNotFoundError extends Error { type InvalidParamsError (line 304) | interface InvalidParamsError extends Error { type InternalError (line 318) | interface InternalError extends Error { constant URL_ELICITATION_REQUIRED (line 324) | const URL_ELICITATION_REQUIRED = -32042; type URLElicitationRequiredError (line 334) | interface URLElicitationRequiredError extends Omit = T extends object ? (T extends infer O ? { [K... type ProtocolErrorCode (line 227) | enum ProtocolErrorCode { constant PARSE_ERROR (line 241) | const PARSE_ERROR = -32_700; constant INVALID_REQUEST (line 242) | const INVALID_REQUEST = -32_600; constant METHOD_NOT_FOUND (line 243) | const METHOD_NOT_FOUND = -32_601; constant INVALID_PARAMS (line 244) | const INVALID_PARAMS = -32_602; constant INTERNAL_ERROR (line 245) | const INTERNAL_ERROR = -32_603; type JSONRPCErrorObject (line 247) | type JSONRPCErrorObject = { code: number; message: string; data?: unknow... type ParseError (line 249) | interface ParseError extends JSONRPCErrorObject { type InvalidRequestError (line 252) | interface InvalidRequestError extends JSONRPCErrorObject { type MethodNotFoundError (line 255) | interface MethodNotFoundError extends JSONRPCErrorObject { type InvalidParamsError (line 258) | interface InvalidParamsError extends JSONRPCErrorObject { type InternalError (line 261) | interface InternalError extends JSONRPCErrorObject { type ListChangedCallback (line 1550) | type ListChangedCallback = (error: Error | null, items: T[] | null) =... type ListChangedOptions (line 1582) | type ListChangedOptions = { type ListChangedHandlers (line 1612) | type ListChangedHandlers = { function assertCompleteRequestPrompt (line 2175) | function assertCompleteRequestPrompt(request: CompleteRequest): asserts ... function assertCompleteRequestResourceTemplate (line 2182) | function assertCompleteRequestResourceTemplate(request: CompleteRequest)... class ProtocolError (line 2337) | class ProtocolError extends Error { method constructor (line 2338) | constructor( method fromError (line 2350) | static fromError(code: number, message: string, data?: unknown): Proto... class UrlElicitationRequiredError (line 2368) | class UrlElicitationRequiredError extends ProtocolError { method constructor (line 2369) | constructor(elicitations: ElicitRequestURLParams[], message: string = ... method elicitations (line 2375) | get elicitations(): ElicitRequestURLParams[] { type Primitive (line 2380) | type Primitive = string | number | boolean | bigint | null | undefined; type Flatten (line 2381) | type Flatten = T extends Primitive type Infer (line 2393) | type Infer = Flatten>; type RequestInfo (line 2398) | interface RequestInfo { type MessageExtraInfo (line 2408) | interface MessageExtraInfo { type ProgressToken (line 2433) | type ProgressToken = Infer; type Cursor (line 2434) | type Cursor = Infer; type Request (line 2435) | type Request = Infer; type TaskAugmentedRequestParams (line 2436) | type TaskAugmentedRequestParams = Infer; type MetaObject (line 2438) | type MetaObject = Record; type RequestMetaObject (line 2439) | type RequestMetaObject = RequestMeta; type Notification (line 2440) | type Notification = Infer; type Result (line 2441) | type Result = Infer; type RequestId (line 2442) | type RequestId = Infer; type JSONRPCRequest (line 2443) | type JSONRPCRequest = Infer; type JSONRPCNotification (line 2444) | type JSONRPCNotification = Infer; type JSONRPCResponse (line 2445) | type JSONRPCResponse = Infer; type JSONRPCErrorResponse (line 2446) | type JSONRPCErrorResponse = Infer; type JSONRPCResultResponse (line 2447) | type JSONRPCResultResponse = Infer; type JSONRPCMessage (line 2449) | type JSONRPCMessage = Infer; type RequestParams (line 2450) | type RequestParams = Infer; type NotificationParams (line 2451) | type NotificationParams = Infer; type EmptyResult (line 2454) | type EmptyResult = Infer; type CancelledNotificationParams (line 2457) | type CancelledNotificationParams = Infer; type Icon (line 2461) | type Icon = Infer; type Icons (line 2462) | type Icons = Infer; type BaseMetadata (line 2463) | type BaseMetadata = Infer; type Annotations (line 2464) | type Annotations = Infer; type Role (line 2465) | type Role = Infer; type Implementation (line 2468) | type Implementation = Infer; type ClientCapabilities (line 2469) | type ClientCapabilities = Infer; type InitializeRequestParams (line 2470) | type InitializeRequestParams = Infer; type InitializeRequest (line 2471) | type InitializeRequest = Infer; type ServerCapabilities (line 2472) | type ServerCapabilities = Infer; type InitializeResult (line 2473) | type InitializeResult = Infer; type InitializedNotification (line 2474) | type InitializedNotification = Infer; type PingRequest (line 2477) | type PingRequest = Infer; type Progress (line 2480) | type Progress = Infer; type ProgressNotificationParams (line 2481) | type ProgressNotificationParams = Infer; type Task (line 2485) | type Task = Infer; type TaskStatus (line 2486) | type TaskStatus = Infer; type TaskCreationParams (line 2487) | type TaskCreationParams = Infer; type TaskMetadata (line 2488) | type TaskMetadata = Infer; type RelatedTaskMetadata (line 2489) | type RelatedTaskMetadata = Infer; type CreateTaskResult (line 2490) | type CreateTaskResult = Infer; type TaskStatusNotificationParams (line 2491) | type TaskStatusNotificationParams = Infer; type GetTaskRequest (line 2493) | type GetTaskRequest = Infer; type GetTaskResult (line 2494) | type GetTaskResult = Infer; type GetTaskPayloadRequest (line 2495) | type GetTaskPayloadRequest = Infer; type ListTasksRequest (line 2496) | type ListTasksRequest = Infer; type ListTasksResult (line 2497) | type ListTasksResult = Infer; type CancelTaskRequest (line 2498) | type CancelTaskRequest = Infer; type CancelTaskResult (line 2499) | type CancelTaskResult = Infer; type GetTaskPayloadResult (line 2500) | type GetTaskPayloadResult = Infer; type PaginatedRequestParams (line 2503) | type PaginatedRequestParams = Infer; type PaginatedRequest (line 2504) | type PaginatedRequest = Infer; type PaginatedResult (line 2505) | type PaginatedResult = Infer; type ResourceContents (line 2508) | type ResourceContents = Infer; type TextResourceContents (line 2509) | type TextResourceContents = Infer; type BlobResourceContents (line 2510) | type BlobResourceContents = Infer; type Resource (line 2511) | type Resource = Infer; type ResourceTemplateType (line 2513) | type ResourceTemplateType = Infer; type ListResourcesRequest (line 2514) | type ListResourcesRequest = Infer; type ListResourcesResult (line 2515) | type ListResourcesResult = Infer; type ListResourceTemplatesRequest (line 2516) | type ListResourceTemplatesRequest = Infer; type ReadResourceRequestParams (line 2519) | type ReadResourceRequestParams = Infer; type ReadResourceResult (line 2521) | type ReadResourceResult = Infer; type ResourceListChangedNotification (line 2522) | type ResourceListChangedNotification = Infer; type SubscribeRequest (line 2524) | type SubscribeRequest = Infer; type UnsubscribeRequestParams (line 2525) | type UnsubscribeRequestParams = Infer; type ResourceUpdatedNotificationParams (line 2527) | type ResourceUpdatedNotificationParams = Infer; type Prompt (line 2532) | type Prompt = Infer; type ListPromptsRequest (line 2533) | type ListPromptsRequest = Infer; type ListPromptsResult (line 2534) | type ListPromptsResult = Infer; type GetPromptRequestParams (line 2535) | type GetPromptRequestParams = Infer; type GetPromptRequest (line 2536) | type GetPromptRequest = Infer; type TextContent (line 2537) | type TextContent = Infer; type ImageContent (line 2538) | type ImageContent = Infer; type AudioContent (line 2539) | type AudioContent = Infer; type ToolUseContent (line 2540) | type ToolUseContent = Infer; type ToolResultContent (line 2541) | type ToolResultContent = Infer; type EmbeddedResource (line 2542) | type EmbeddedResource = Infer; type ResourceLink (line 2543) | type ResourceLink = Infer; type ContentBlock (line 2544) | type ContentBlock = Infer; type PromptMessage (line 2545) | type PromptMessage = Infer; type GetPromptResult (line 2546) | type GetPromptResult = Infer; type PromptListChangedNotification (line 2547) | type PromptListChangedNotification = Infer; type ToolExecution (line 2551) | type ToolExecution = Infer; type Tool (line 2552) | type Tool = Infer; type ListToolsRequest (line 2553) | type ListToolsRequest = Infer; type ListToolsResult (line 2554) | type ListToolsResult = Infer; type CallToolRequestParams (line 2555) | type CallToolRequestParams = Infer; type CallToolResult (line 2556) | type CallToolResult = Infer; type CompatibilityCallToolResult (line 2557) | type CompatibilityCallToolResult = Infer; type ToolListChangedNotification (line 2559) | type ToolListChangedNotification = Infer; type SetLevelRequestParams (line 2563) | type SetLevelRequestParams = Infer; type SetLevelRequest (line 2564) | type SetLevelRequest = Infer; type LoggingMessageNotificationParams (line 2565) | type LoggingMessageNotificationParams = Infer; type ModelHint (line 2570) | type ModelHint = Infer; type ModelPreferences (line 2571) | type ModelPreferences = Infer; type SamplingContent (line 2572) | type SamplingContent = Infer; type SamplingMessageContentBlock (line 2573) | type SamplingMessageContentBlock = Infer; type CreateMessageRequestParams (line 2575) | type CreateMessageRequestParams = Infer; type CreateMessageResult (line 2577) | type CreateMessageResult = Infer; type CreateMessageResultWithTools (line 2578) | type CreateMessageResultWithTools = Infer; type StringSchema (line 2595) | type StringSchema = Infer; type NumberSchema (line 2596) | type NumberSchema = Infer; type EnumSchema (line 2598) | type EnumSchema = Infer; type UntitledSingleSelectEnumSchema (line 2599) | type UntitledSingleSelectEnumSchema = Infer; type UntitledMultiSelectEnumSchema (line 2602) | type UntitledMultiSelectEnumSchema = Infer; type MultiSelectEnumSchema (line 2605) | type MultiSelectEnumSchema = Infer; type PrimitiveSchemaDefinition (line 2607) | type PrimitiveSchemaDefinition = Infer; type ElicitRequestFormParams (line 2609) | type ElicitRequestFormParams = Infer; type ElicitRequestURLParams (line 2610) | type ElicitRequestURLParams = Infer; type ElicitRequest (line 2611) | type ElicitRequest = Infer; type ElicitationCompleteNotificationParams (line 2612) | type ElicitationCompleteNotificationParams = Infer; type ResourceTemplateReference (line 2617) | type ResourceTemplateReference = Infer; type CompleteRequestParams (line 2619) | type CompleteRequestParams = Infer; type CompleteRequest (line 2620) | type CompleteRequest = Infer; type CompleteRequestResourceTemplate (line 2621) | type CompleteRequestResourceTemplate = ExpandRecursively< type CompleteRequestPrompt (line 2624) | type CompleteRequestPrompt = ExpandRecursively; type Root (line 2628) | type Root = Infer; type ListRootsRequest (line 2629) | type ListRootsRequest = Infer; type ListRootsResult (line 2630) | type ListRootsResult = Infer; type RootsListChangedNotification (line 2631) | type RootsListChangedNotification = Infer; type ClientNotification (line 2635) | type ClientNotification = Infer; type ClientResult (line 2636) | type ClientResult = Infer; type ServerRequest (line 2639) | type ServerRequest = Infer; type ServerNotification (line 2640) | type ServerNotification = Infer; type ServerResult (line 2641) | type ServerResult = Infer; type MethodToTypeMap (line 2644) | type MethodToTypeMap = { type RequestMethod (line 2647) | type RequestMethod = ClientRequest['method'] | ServerRequest['method']; type NotificationMethod (line 2648) | type NotificationMethod = ClientNotification['method'] | ServerNotificat... type RequestTypeMap (line 2649) | type RequestTypeMap = MethodToTypeMap; type NotificationTypeMap (line 2650) | type NotificationTypeMap = MethodToTypeMap(method: M): z.ZodType<... type RequestSchemaType (line 2707) | type RequestSchemaType = (typeof ClientRequestSchema.options)[number] | ... type NotificationSchemaType (line 2708) | type NotificationSchemaType = (typeof ClientNotificationSchema.options)[... function buildSchemaMap (line 2710) | function buildSchemaMap(method: M): z.ZodType... function getNotificationSchema (line 2746) | function getNotificationSchema(method: M):... FILE: packages/core/src/util/inMemory.ts type QueuedMessage (line 5) | interface QueuedMessage { class InMemoryTransport (line 13) | class InMemoryTransport implements Transport { method createLinkedPair (line 25) | static createLinkedPair(): [InMemoryTransport, InMemoryTransport] { method start (line 33) | async start(): Promise { method close (line 41) | async close(): Promise { method send (line 52) | async send(message: JSONRPCMessage, options?: { relatedRequestId?: Req... FILE: packages/core/src/util/schema.ts type AnySchema (line 7) | type AnySchema = z.core.$ZodType; type AnyObjectSchema (line 13) | type AnyObjectSchema = z.core.$ZodObject; type SchemaInput (line 18) | type SchemaInput = z.input; type SchemaOutput (line 23) | type SchemaOutput = z.output; function schemaToJson (line 28) | function schemaToJson(schema: AnySchema, options?: { io?: 'input' | 'out... function parseSchema (line 36) | function parseSchema( function parseSchemaAsync (line 47) | function parseSchemaAsync( function getSchemaShape (line 58) | function getSchemaShape(schema: AnySchema): Record | ... function getSchemaDescription (line 69) | function getSchemaDescription(schema: AnySchema): string | undefined { function isOptionalSchema (line 78) | function isOptionalSchema(schema: AnySchema): boolean { function unwrapOptionalSchema (line 88) | function unwrapOptionalSchema(schema: AnySchema): AnySchema { FILE: packages/core/src/validators/ajvProvider.examples.ts function AjvJsonSchemaValidator_default (line 20) | function AjvJsonSchemaValidator_default() { function AjvJsonSchemaValidator_customInstance (line 30) | function AjvJsonSchemaValidator_customInstance() { function AjvJsonSchemaValidator_constructor_withFormats (line 41) | function AjvJsonSchemaValidator_constructor_withFormats() { FILE: packages/core/src/validators/ajvProvider.ts function createDefaultAjvInstance (line 10) | function createDefaultAjvInstance(): Ajv { class AjvJsonSchemaValidator (line 38) | class AjvJsonSchemaValidator implements jsonSchemaValidator { method constructor (line 58) | constructor(ajv?: Ajv) { method getValidator (line 71) | getValidator(schema: JsonSchemaType): JsonSchemaValidator { FILE: packages/core/src/validators/cfWorkerProvider.examples.ts function CfWorkerJsonSchemaValidator_default (line 15) | function CfWorkerJsonSchemaValidator_default() { function CfWorkerJsonSchemaValidator_customConfig (line 25) | function CfWorkerJsonSchemaValidator_customConfig() { FILE: packages/core/src/validators/cfWorkerProvider.ts type CfWorkerSchemaDraft (line 18) | type CfWorkerSchemaDraft = '4' | '7' | '2019-09' | '2020-12'; class CfWorkerJsonSchemaValidator (line 35) | class CfWorkerJsonSchemaValidator implements jsonSchemaValidator { method constructor (line 46) | constructor(options?: { shortcircuit?: boolean; draft?: CfWorkerSchema... method getValidator (line 59) | getValidator(schema: JsonSchemaType): JsonSchemaValidator { FILE: packages/core/src/validators/types.examples.ts function jsonSchemaValidator_implementation (line 18) | function jsonSchemaValidator_implementation() { FILE: packages/core/src/validators/types.ts type JsonSchemaType (line 14) | type JsonSchemaType = JSONSchema.Interface; type JsonSchemaValidatorResult (line 19) | type JsonSchemaValidatorResult = type JsonSchemaValidator (line 26) | type JsonSchemaValidator = (input: unknown) => JsonSchemaValidatorRes... type jsonSchemaValidator (line 51) | interface jsonSchemaValidator { FILE: packages/core/test/shared/protocol.test.ts type TestProtocol (line 37) | interface TestProtocol { class MockTransport (line 56) | class MockTransport implements Transport { method start (line 61) | async start(): Promise {} method close (line 62) | async close(): Promise { method send (line 65) | async send(_message: JSONRPCMessage, _options?: TransportSendOptions):... function createMockTaskStore (line 68) | function createMockTaskStore(options?: { function createLatch (line 127) | function createLatch() { function assertErrorResponse (line 143) | function assertErrorResponse(o: ResponseMessage): asserts o is E... function assertQueuedNotification (line 147) | function assertQueuedNotification(o?: QueuedMessage): asserts o is Queue... function assertQueuedRequest (line 152) | function assertQueuedRequest(o?: QueuedMessage): asserts o is QueuedRequ... function testRequest (line 162) | function testRequest(proto: Protocol, request: Request, res... method assertCapabilityForMethod (line 175) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 176) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 177) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 178) | protected assertTaskCapability(): void {} method buildContext (line 179) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 182) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 646) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 647) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 648) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 649) | protected assertTaskCapability(): void {} method buildContext (line 650) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 653) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 672) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 673) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 674) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 675) | protected assertTaskCapability(): void {} method buildContext (line 676) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 679) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 696) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 697) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 698) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 699) | protected assertTaskCapability(): void {} method buildContext (line 700) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 703) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 725) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 726) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 727) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 728) | protected assertTaskCapability(): void {} method buildContext (line 729) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 732) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 757) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 758) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 759) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 760) | protected assertTaskCapability(): void {} method buildContext (line 761) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 764) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 787) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 788) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 789) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 790) | protected assertTaskCapability(): void {} method buildContext (line 791) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 794) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 825) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 826) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 827) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 828) | protected assertTaskCapability(): void {} method buildContext (line 829) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 832) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 1047) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 1048) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 1049) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 1050) | protected assertTaskCapability(): void {} method buildContext (line 1051) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 1054) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 1289) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 1290) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 1291) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 1292) | protected assertTaskCapability(): void {} method buildContext (line 1293) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 1296) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 1361) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 1362) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 1363) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 1364) | protected assertTaskCapability(): void {} method buildContext (line 1365) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 1368) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 1425) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 1426) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 1427) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 1428) | protected assertTaskCapability(): void {} method buildContext (line 1429) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 1432) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 1474) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 1475) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 1476) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 1477) | protected assertTaskCapability(): void {} method buildContext (line 1478) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 1481) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 1510) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 1511) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 1512) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 1513) | protected assertTaskCapability(): void {} method buildContext (line 1514) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 1517) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 1647) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 1648) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 1649) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 1650) | protected assertTaskCapability(): void {} method buildContext (line 1651) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 1654) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 1692) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 1693) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 1694) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 1695) | protected assertTaskCapability(): void {} method buildContext (line 1696) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 1699) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 1743) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 1744) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 1745) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 1746) | protected assertTaskCapability(): void {} method buildContext (line 1747) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 1750) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 1828) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 1829) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 1830) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 1831) | protected assertTaskCapability(): void {} method buildContext (line 1832) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 1835) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 1881) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 1882) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 1883) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 1884) | protected assertTaskCapability(): void {} method buildContext (line 1885) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 1888) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 1933) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 1934) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 1935) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 1936) | protected assertTaskCapability(): void {} method buildContext (line 1937) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 1940) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 1973) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 1974) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 1975) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 1976) | protected assertTaskCapability(): void {} method buildContext (line 1977) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 1980) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 2021) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 2022) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 2023) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 2024) | protected assertTaskCapability(): void {} method buildContext (line 2025) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 2028) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 2067) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 2068) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 2069) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 2070) | protected assertTaskCapability(): void {} method buildContext (line 2071) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 2074) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 2153) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 2154) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 2155) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 2156) | protected assertTaskCapability(): void {} method buildContext (line 2157) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 2160) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 2441) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 2442) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 2443) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 2444) | protected assertTaskCapability(): void {} method buildContext (line 2445) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 2448) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 2455) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 2456) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 2457) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 2458) | protected assertTaskCapability(): void {} method buildContext (line 2459) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 2462) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 2549) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 2550) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 2551) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 2552) | protected assertTaskCapability(): void {} method buildContext (line 2553) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 2556) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 2686) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 2687) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 2688) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 2689) | protected assertTaskCapability(): void {} method buildContext (line 2690) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 2693) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 2787) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 2788) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 2789) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 2790) | protected assertTaskCapability(): void {} method buildContext (line 2791) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 2794) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 2885) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 2886) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 2887) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 2888) | protected assertTaskCapability(): void {} method buildContext (line 2889) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 2892) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 3157) | protected assertCapabilityForMethod(_method: string): void {} method assertNotificationCapability (line 3158) | protected assertNotificationCapability(_method: string): void {} method assertRequestHandlerCapability (line 3159) | protected assertRequestHandlerCapability(_method: string): void {} method assertTaskCapability (line 3160) | protected assertTaskCapability(_method: string): void {} method buildContext (line 3161) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 3164) | protected assertTaskHandlerCapability(_method: string): void {} method assertCapabilityForMethod (line 3197) | protected assertCapabilityForMethod(_method: string): void {} method assertNotificationCapability (line 3198) | protected assertNotificationCapability(_method: string): void {} method assertRequestHandlerCapability (line 3199) | protected assertRequestHandlerCapability(_method: string): void {} method assertTaskCapability (line 3200) | protected assertTaskCapability(_method: string): void {} method buildContext (line 3201) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 3204) | protected assertTaskHandlerCapability(_method: string): void {} method assertCapabilityForMethod (line 3227) | protected assertCapabilityForMethod(_method: string): void {} method assertNotificationCapability (line 3228) | protected assertNotificationCapability(_method: string): void {} method assertRequestHandlerCapability (line 3229) | protected assertRequestHandlerCapability(_method: string): void {} method assertTaskCapability (line 3230) | protected assertTaskCapability(_method: string): void {} method buildContext (line 3231) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 3234) | protected assertTaskHandlerCapability(_method: string): void {} method assertCapabilityForMethod (line 3277) | protected assertCapabilityForMethod(_method: string): void {} method assertNotificationCapability (line 3278) | protected assertNotificationCapability(_method: string): void {} method assertRequestHandlerCapability (line 3279) | protected assertRequestHandlerCapability(_method: string): void {} method assertTaskCapability (line 3280) | protected assertTaskCapability(_method: string): void {} method buildContext (line 3281) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 3284) | protected assertTaskHandlerCapability(_method: string): void {} method assertCapabilityForMethod (line 3313) | protected assertCapabilityForMethod(_method: string): void {} method assertNotificationCapability (line 3314) | protected assertNotificationCapability(_method: string): void {} method assertRequestHandlerCapability (line 3315) | protected assertRequestHandlerCapability(_method: string): void {} method assertTaskCapability (line 3316) | protected assertTaskCapability(_method: string): void {} method buildContext (line 3317) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 3320) | protected assertTaskHandlerCapability(_method: string): void {} method assertCapabilityForMethod (line 3358) | protected assertCapabilityForMethod(_method: string): void {} method assertNotificationCapability (line 3359) | protected assertNotificationCapability(_method: string): void {} method assertRequestHandlerCapability (line 3360) | protected assertRequestHandlerCapability(_method: string): void {} method assertTaskCapability (line 3361) | protected assertTaskCapability(_method: string): void {} method buildContext (line 3362) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 3365) | protected assertTaskHandlerCapability(_method: string): void {} method assertCapabilityForMethod (line 3414) | protected assertCapabilityForMethod(_method: string): void {} method assertNotificationCapability (line 3415) | protected assertNotificationCapability(_method: string): void {} method assertRequestHandlerCapability (line 3416) | protected assertRequestHandlerCapability(_method: string): void {} method assertTaskCapability (line 3417) | protected assertTaskCapability(_method: string): void {} method buildContext (line 3418) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 3421) | protected assertTaskHandlerCapability(_method: string): void {} method assertCapabilityForMethod (line 3457) | protected assertCapabilityForMethod(_method: string): void {} method assertNotificationCapability (line 3458) | protected assertNotificationCapability(_method: string): void {} method assertRequestHandlerCapability (line 3459) | protected assertRequestHandlerCapability(_method: string): void {} method assertTaskCapability (line 3460) | protected assertTaskCapability(_method: string): void {} method buildContext (line 3461) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 3464) | protected assertTaskHandlerCapability(_method: string): void {} method assertCapabilityForMethod (line 3514) | protected assertCapabilityForMethod(_method: string): void {} method assertNotificationCapability (line 3515) | protected assertNotificationCapability(_method: string): void {} method assertRequestHandlerCapability (line 3516) | protected assertRequestHandlerCapability(_method: string): void {} method assertTaskCapability (line 3517) | protected assertTaskCapability(_method: string): void {} method buildContext (line 3518) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 3521) | protected assertTaskHandlerCapability(_method: string): void {} method assertCapabilityForMethod (line 3583) | protected assertCapabilityForMethod(_method: string): void {} method assertNotificationCapability (line 3584) | protected assertNotificationCapability(_method: string): void {} method assertRequestHandlerCapability (line 3585) | protected assertRequestHandlerCapability(_method: string): void {} method assertTaskCapability (line 3586) | protected assertTaskCapability(_method: string): void {} method buildContext (line 3587) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 3590) | protected assertTaskHandlerCapability(_method: string): void {} method assertCapabilityForMethod (line 3663) | protected assertCapabilityForMethod(_method: string): void {} method assertNotificationCapability (line 3664) | protected assertNotificationCapability(_method: string): void {} method assertRequestHandlerCapability (line 3665) | protected assertRequestHandlerCapability(_method: string): void {} method assertTaskCapability (line 3666) | protected assertTaskCapability(_method: string): void {} method buildContext (line 3667) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 3670) | protected assertTaskHandlerCapability(_method: string): void {} method assertCapabilityForMethod (line 3727) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 3728) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 3729) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 3730) | protected assertTaskCapability(): void {} method buildContext (line 3731) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 3734) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 4252) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 4253) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 4254) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 4255) | protected assertTaskCapability(): void {} method buildContext (line 4256) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 4259) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 4587) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 4588) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 4589) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 4590) | protected assertTaskCapability(): void {} method buildContext (line 4591) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 4594) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 4633) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 4634) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 4635) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 4636) | protected assertTaskCapability(): void {} method buildContext (line 4637) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 4640) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 4682) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 4683) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 4684) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 4685) | protected assertTaskCapability(): void {} method buildContext (line 4686) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 4689) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 4723) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 4724) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 4725) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 4726) | protected assertTaskCapability(): void {} method buildContext (line 4727) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 4730) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 4768) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 4769) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 4770) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 4771) | protected assertTaskCapability(): void {} method buildContext (line 4772) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 4775) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 4810) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 4811) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 4812) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 4813) | protected assertTaskCapability(): void {} method buildContext (line 4814) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 4817) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 4846) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 4847) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 4848) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 4849) | protected assertTaskCapability(): void {} method buildContext (line 4850) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 4853) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 4901) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 4902) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 4903) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 4904) | protected assertTaskCapability(): void {} method buildContext (line 4905) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 4908) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 4964) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 4965) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 4966) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 4967) | protected assertTaskCapability(): void {} method buildContext (line 4968) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 4971) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 4995) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 4996) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 4997) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 4998) | protected assertTaskCapability(): void {} method buildContext (line 4999) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 5002) | protected assertTaskHandlerCapability(): void {} method assertCapabilityForMethod (line 5054) | protected assertCapabilityForMethod(_method: string): void {} method assertNotificationCapability (line 5055) | protected assertNotificationCapability(_method: string): void {} method assertRequestHandlerCapability (line 5056) | protected assertRequestHandlerCapability(_method: string): void {} method assertTaskCapability (line 5057) | protected assertTaskCapability(_method: string): void {} method buildContext (line 5058) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 5061) | protected assertTaskHandlerCapability(_method: string): void {} FILE: packages/core/test/shared/protocolTransportHandling.test.ts class MockTransport (line 9) | class MockTransport implements Transport { method constructor (line 16) | constructor(id: string) { method start (line 20) | async start(): Promise {} method close (line 22) | async close(): Promise { method send (line 26) | async send(message: JSONRPCMessage): Promise { method assertCapabilityForMethod (line 38) | protected assertCapabilityForMethod(): void {} method assertNotificationCapability (line 39) | protected assertNotificationCapability(): void {} method assertRequestHandlerCapability (line 40) | protected assertRequestHandlerCapability(): void {} method assertTaskCapability (line 41) | protected assertTaskCapability(): void {} method buildContext (line 42) | protected buildContext(ctx: BaseContext): BaseContext { method assertTaskHandlerCapability (line 45) | protected assertTaskHandlerCapability(): void {} FILE: packages/core/test/spec.types.test.ts type WithJSONRPC (line 17) | type WithJSONRPC = T & { jsonrpc: '2.0' }; type WithJSONRPCRequest (line 20) | type WithJSONRPCRequest = T & { jsonrpc: '2.0'; id: SDKTypes.RequestI... type TypedResultResponse (line 27) | type TypedResultResponse = SDKTypes.JSONRPCRe... constant SPEC_TYPES_FILE (line 767) | const SPEC_TYPES_FILE = path.resolve(__dirname, '../src/types/spec.types... constant SDK_TYPES_FILE (line 768) | const SDK_TYPES_FILE = path.resolve(__dirname, '../src/types/types.ts'); constant MISSING_SDK_TYPES (line 770) | const MISSING_SDK_TYPES = [ function extractExportedTypes (line 776) | function extractExportedTypes(source: string): string[] { FILE: packages/middleware/express/src/express.examples.ts function createMcpExpressApp_default (line 15) | function createMcpExpressApp_default() { function createMcpExpressApp_customHost (line 25) | function createMcpExpressApp_customHost() { function createMcpExpressApp_allowedHosts (line 36) | function createMcpExpressApp_allowedHosts() { FILE: packages/middleware/express/src/express.ts type CreateMcpExpressAppOptions (line 9) | interface CreateMcpExpressAppOptions { function createMcpExpressApp (line 62) | function createMcpExpressApp(options: CreateMcpExpressAppOptions = {}): ... FILE: packages/middleware/express/src/middleware/hostHeaderValidation.examples.ts function hostHeaderValidation_basicUsage (line 17) | function hostHeaderValidation_basicUsage(app: Express) { function localhostHostValidation_basicUsage (line 27) | function localhostHostValidation_basicUsage(app: Express) { FILE: packages/middleware/express/src/middleware/hostHeaderValidation.ts function hostHeaderValidation (line 23) | function hostHeaderValidation(allowedHostnames: string[]): RequestHandler { function localhostHostValidation (line 50) | function localhostHostValidation(): RequestHandler { FILE: packages/middleware/express/test/express.test.ts function createMockReqResNext (line 8) | function createMockReqResNext(host?: string) { FILE: packages/middleware/hono/src/hono.ts type CreateMcpHonoAppOptions (line 9) | interface CreateMcpHonoAppOptions { function createMcpHonoApp (line 41) | function createMcpHonoApp(options: CreateMcpHonoAppOptions = {}): Hono { FILE: packages/middleware/hono/src/middleware/hostHeaderValidation.ts function hostHeaderValidation (line 8) | function hostHeaderValidation(allowedHostnames: string[]): MiddlewareHan... function localhostHostValidation (line 31) | function localhostHostValidation(): MiddlewareHandler { FILE: packages/middleware/node/src/streamableHttp.examples.ts function NodeStreamableHTTPServerTransport_stateful (line 20) | async function NodeStreamableHTTPServerTransport_stateful() { function NodeStreamableHTTPServerTransport_stateless (line 35) | async function NodeStreamableHTTPServerTransport_stateless() { function NodeStreamableHTTPServerTransport_express (line 50) | function NodeStreamableHTTPServerTransport_express(transport: NodeStream... FILE: packages/middleware/node/src/streamableHttp.ts type StreamableHTTPServerTransportOptions (line 22) | type StreamableHTTPServerTransportOptions = WebStandardStreamableHTTPSer... class NodeStreamableHTTPServerTransport (line 67) | class NodeStreamableHTTPServerTransport implements Transport { method constructor (line 73) | constructor(options: StreamableHTTPServerTransportOptions = {}) { method sessionId (line 96) | get sessionId(): string | undefined { method onclose (line 103) | set onclose(handler: (() => void) | undefined) { method onclose (line 107) | get onclose(): (() => void) | undefined { method onerror (line 114) | set onerror(handler: ((error: Error) => void) | undefined) { method onerror (line 118) | get onerror(): ((error: Error) => void) | undefined { method onmessage (line 125) | set onmessage(handler: ((message: JSONRPCMessage, extra?: MessageExtra... method onmessage (line 129) | get onmessage(): ((message: JSONRPCMessage, extra?: MessageExtraInfo) ... method start (line 137) | async start(): Promise { method close (line 144) | async close(): Promise { method send (line 151) | async send(message: JSONRPCMessage, options?: { relatedRequestId?: Req... method handleRequest (line 165) | async handleRequest(req: IncomingMessage & { auth?: AuthInfo }, res: S... method closeSSEStream (line 193) | closeSSEStream(requestId: RequestId): void { method closeStandaloneSSEStream (line 201) | closeStandaloneSSEStream(): void { FILE: packages/middleware/node/test/streamableHttp.test.ts function getFreePort (line 23) | async function getFreePort() { type TestServerConfig (line 40) | interface TestServerConfig { function stopTestServer (line 53) | async function stopTestServer({ server, transport }: { server: Server; t... constant TEST_MESSAGES (line 64) | const TEST_MESSAGES = { function readSSEEvent (line 101) | async function readSSEEvent(response: Response): Promise { function sendPostRequest (line 110) | async function sendPostRequest( function expectErrorResponse (line 134) | function expectErrorResponse( function createTestServer (line 155) | async function createTestServer(config?: TestServerConfig): Promise<{ function createTestAuthServer (line 203) | async function createTestAuthServer(config: TestServerConfig = { session... function initializeServer (line 272) | async function initializeServer(): Promise { function initializeServer (line 1009) | async function initializeServer(): Promise { method storeEvent (line 1325) | async storeEvent(streamId: string, message: JSONRPCMessage): Promise { method replayEventsAfter (line 1659) | async replayEventsAfter( class CustomResponse (line 2943) | class CustomResponse extends Response { class CustomResponse (line 2977) | class CustomResponse extends Response { function createTestServerWithDnsProtection (line 3023) | async function createTestServerWithDnsProtection(config: { FILE: packages/server/src/experimental/tasks/interfaces.ts type CreateTaskRequestHandler (line 26) | type CreateTaskRequestHandler { FILE: packages/server/src/experimental/tasks/mcpServer.ts type McpServerInternal (line 17) | interface McpServerInternal { class ExperimentalMcpServerTasks (line 41) | class ExperimentalMcpServerTasks { method constructor (line 42) | constructor(private readonly _mcpServer: McpServer) {} method registerToolTask (line 106) | registerToolTask( method createMessageStream (line 112) | createMessageStream( method elicitInputStream (line 208) | elicitInputStream( method getTask (line 252) | async getTask(taskId: string, options?: RequestOptions): Promise(taskId: string, resultSchema?... method listTasks (line 288) | async listTasks(cursor?: string, options?: RequestOptions): Promise = ( type CompletableMeta (line 13) | type CompletableMeta = { type CompletableSchema (line 17) | type CompletableSchema = T & { function completable (line 52) | function completable(schema: T, complete: CompleteC... function isCompletable (line 65) | function isCompletable(schema: unknown): schema is CompletableSchema(schema: T): CompleteCallback<... FILE: packages/server/src/server/mcp.examples.ts function McpServer_basicUsage (line 19) | function McpServer_basicUsage() { function McpServer_registerTool_basic (line 32) | function McpServer_registerTool_basic(server: McpServer) { function McpServer_registerResource_static (line 59) | function McpServer_registerResource_static(server: McpServer) { function McpServer_registerPrompt_basic (line 78) | function McpServer_registerPrompt_basic(server: McpServer) { function McpServer_connect_stdio (line 105) | async function McpServer_connect_stdio() { function McpServer_sendLoggingMessage_basic (line 116) | async function McpServer_sendLoggingMessage_basic(server: McpServer) { function McpServer_registerTool_logging (line 128) | function McpServer_registerTool_logging(server: McpServer) { FILE: packages/server/src/server/mcp.ts class McpServer (line 66) | class McpServer { method constructor (line 80) | constructor(serverInfo: Implementation, options?: ServerOptions) { method experimental (line 91) | get experimental(): { tasks: ExperimentalMcpServerTasks } { method connect (line 112) | async connect(transport: Transport): Promise { method close (line 119) | async close(): Promise { method setToolRequestHandlers (line 125) | private setToolRequestHandlers() { method createToolError (line 232) | private createToolError(errorMessage: string): CallToolResult { method validateToolInput (line 247) | private async validateToolInput< method validateToolOutput (line 274) | private async validateToolOutput(tool: RegisteredTool, result: CallToo... method executeToolHandler (line 309) | private async executeToolHandler(tool: RegisteredTool, args: unknown, ... method handleAutomaticTaskPolling (line 317) | private async handleAutomaticTaskPolling( method isConnected (line 959) | isConnected() { method sendLoggingMessage (line 978) | async sendLoggingMessage(params: LoggingMessageNotification['params'],... method sendResourceListChanged (line 984) | sendResourceListChanged() { method sendToolListChanged (line 993) | sendToolListChanged() { method sendPromptListChanged (line 1002) | sendPromptListChanged() { type CompleteResourceTemplateCallback (line 1012) | type CompleteResourceTemplateCallback = ( class ResourceTemplate (line 1023) | class ResourceTemplate { method constructor (line 1026) | constructor( method uriTemplate (line 1048) | get uriTemplate(): UriTemplate { method listCallback (line 1055) | get listCallback(): ListResourcesCallback | undefined { method completeCallback (line 1062) | completeCallback(variable: string): CompleteResourceTemplateCallback |... type BaseToolCallback (line 1067) | type BaseToolCallback = Base... type AnyToolHandler (line 1079) | type AnyToolHandler = To... type ToolExecutor (line 1084) | type ToolExecutor = (args: unknown, ctx: ServerContext) => Promise; type ListResourcesCallback (line 1160) | type ListResourcesCallback = (ctx: ServerContext) => ListResourcesResult... type ReadResourceCallback (line 1165) | type ReadResourceCallback = (uri: URL, ctx: ServerContext) => ReadResour... type RegisteredResource (line 1167) | type RegisteredResource = { type ReadResourceTemplateCallback (line 1189) | type ReadResourceTemplateCallback = ( type RegisteredResourceTemplate (line 1195) | type RegisteredResourceTemplate = { type PromptCallback (line 1214) | type PromptCallback = Ar... type PromptHandler (line 1222) | type PromptHandler = (args: Record | undefined, ctx: Se... type ToolCallbackInternal (line 1224) | type ToolCallbackInternal = (args: unknown, ctx: ServerContext) => CallT... type TaskHandlerInternal (line 1226) | type TaskHandlerInternal = { type RegisteredPrompt (line 1230) | type RegisteredPrompt = { function createPromptHandler (line 1254) | function createPromptHandler( function promptArgumentsFromSchema (line 1279) | function promptArgumentsFromSchema(schema: AnySchema): PromptArgument[] { function createCompletionResult (line 1291) | function createCompletionResult(suggestions: readonly unknown[]): Comple... constant EMPTY_COMPLETION_RESULT (line 1302) | const EMPTY_COMPLETION_RESULT: CompleteResult = { FILE: packages/server/src/server/middleware/hostHeaderValidation.examples.ts function hostHeaderValidationResponse_basicUsage (line 15) | function hostHeaderValidationResponse_basicUsage(req: Request) { FILE: packages/server/src/server/middleware/hostHeaderValidation.ts type HostHeaderValidationResult (line 1) | type HostHeaderValidationResult = function validateHostHeader (line 17) | function validateHostHeader(hostHeader: string | null | undefined, allow... function localhostAllowedHostnames (line 40) | function localhostAllowedHostnames(): string[] { function hostHeaderValidationResponse (line 51) | function hostHeaderValidationResponse(req: Request, allowedHostnames: st... FILE: packages/server/src/server/server.ts type ServerOptions (line 60) | type ServerOptions = ProtocolOptions & { class Server (line 89) | class Server extends Protocol { method constructor (line 105) | constructor( method _registerLoggingHandler (line 122) | private _registerLoggingHandler(): void { method buildContext (line 135) | protected override buildContext(ctx: BaseContext, transportInfo?: Mess... method experimental (line 165) | get experimental(): { tasks: ExperimentalServerTasks } { method registerCapabilities (line 191) | public registerCapabilities(capabilities: ServerCapabilities): void { method setRequestHandler (line 205) | public override setRequestHandler( method assertCapabilityForMethod (line 254) | protected assertCapabilityForMethod(method: RequestMethod): void { method assertNotificationCapability (line 287) | protected assertNotificationCapability(method: NotificationMethod): vo... method assertRequestHandlerCapability (line 349) | protected assertRequestHandlerCapability(method: string): void { method assertTaskCapability (line 417) | protected assertTaskCapability(method: string): void { method assertTaskHandlerCapability (line 421) | protected assertTaskHandlerCapability(method: string): void { method _oninitialize (line 431) | private async _oninitialize(request: InitializeRequest): Promise { method processReadBuffer (line 56) | private processReadBuffer() { method close (line 71) | async close(): Promise { method send (line 89) | send(message: JSONRPCMessage): Promise { FILE: packages/server/src/server/streamableHttp.examples.ts function WebStandardStreamableHTTPServerTransport_stateful (line 16) | async function WebStandardStreamableHTTPServerTransport_stateful() { function WebStandardStreamableHTTPServerTransport_stateless (line 31) | async function WebStandardStreamableHTTPServerTransport_stateless() { function WebStandardStreamableHTTPServerTransport_hono (line 46) | function WebStandardStreamableHTTPServerTransport_hono(transport: WebSta... function WebStandardStreamableHTTPServerTransport_workers (line 57) | function WebStandardStreamableHTTPServerTransport_workers(transport: Web... FILE: packages/server/src/server/streamableHttp.ts type StreamId (line 21) | type StreamId = string; type EventId (line 22) | type EventId = string; type EventStore (line 27) | interface EventStore { type StreamMapping (line 59) | interface StreamMapping { type WebStandardStreamableHTTPServerTransportOptions (line 73) | interface WebStandardStreamableHTTPServerTransportOptions { type HandleRequestOptions (line 160) | interface HandleRequestOptions { class WebStandardStreamableHTTPServerTransport (line 224) | class WebStandardStreamableHTTPServerTransport implements Transport { method constructor (line 248) | constructor(options: WebStandardStreamableHTTPServerTransportOptions =... method start (line 265) | async start(): Promise { method setSupportedProtocolVersions (line 276) | setSupportedProtocolVersions(versions: string[]): void { method createJsonErrorResponse (line 283) | private createJsonErrorResponse( method validateRequestHeaders (line 313) | private validateRequestHeaders(req: Request): Response | undefined { method handleRequest (line 346) | async handleRequest(req: Request, options?: HandleRequestOptions): Pro... method writePrimingEvent (line 374) | private async writePrimingEvent( method handleGetRequest (line 403) | private async handleGetRequest(req: Request): Promise { method replayEvents (line 482) | private async replayEvents(lastEventId: string): Promise { method writeSSEEvent (line 565) | private writeSSEEvent( method handleUnsupportedRequest (line 588) | private handleUnsupportedRequest(): Response { method handlePostRequest (line 611) | private async handlePostRequest(req: Request, options?: HandleRequestO... method handleDeleteRequest (line 818) | private async handleDeleteRequest(req: Request): Promise { method validateSession (line 837) | private validateSession(req: Request): Response | undefined { method validateProtocolVersion (line 876) | private validateProtocolVersion(req: Request): Response | undefined { method close (line 889) | async close(): Promise { method closeSSEStream (line 906) | closeSSEStream(requestId: RequestId): void { method closeStandaloneSSEStream (line 920) | closeStandaloneSSEStream(): void { method send (line 927) | async send(message: JSONRPCMessage, options?: { relatedRequestId?: Req... FILE: packages/server/src/shimsWorkerd.ts function notSupported (line 12) | function notSupported(): never { method stdin (line 17) | get stdin(): never { method stdout (line 20) | get stdout(): never { FILE: packages/server/test/server/stdio.test.ts method write (line 20) | write(chunk, _encoding, callback) { FILE: packages/server/test/server/streamableHttp.test.ts constant TEST_MESSAGES (line 13) | const TEST_MESSAGES = { function createRequest (line 47) | function createRequest( function readSSEEvent (line 92) | async function readSSEEvent(response: Response): Promise { function parseSSEData (line 101) | function parseSSEData(text: string): unknown { function expectErrorResponse (line 110) | function expectErrorResponse(data: unknown, expectedCode: number, expect... function initializeServer (line 151) | async function initializeServer(): Promise { function initializeServer (line 505) | async function initializeServer(): Promise { method storeEvent (line 618) | async storeEvent(streamId: StreamId, message: JSONRPCMessage): Promise { function initializeServer (line 729) | async function initializeServer(): Promise { FILE: scripts/cli.ts function runClient (line 16) | async function runClient(url_or_command: string, args: string[]) { function runServer (line 60) | async function runServer(port: number | null) { FILE: scripts/fetch-spec-types.ts constant PROJECT_ROOT (line 7) | const PROJECT_ROOT = join(__dirname, '..'); type GitHubCommit (line 9) | interface GitHubCommit { function fetchLatestSHA (line 13) | async function fetchLatestSHA(): Promise { function fetchSpecTypes (line 29) | async function fetchSpecTypes(sha: string): Promise { function main (line 40) | async function main() { FILE: scripts/sync-snippets.ts constant PROJECT_ROOT (line 55) | const PROJECT_ROOT = join(__dirname, '..'); constant PACKAGES_DIR (line 56) | const PACKAGES_DIR = join(PROJECT_ROOT, 'packages'); constant DOCS_DIR (line 57) | const DOCS_DIR = join(PROJECT_ROOT, 'docs'); type FileMode (line 60) | type FileMode = 'jsdoc' | 'markdown'; type LabeledCodeFence (line 65) | interface LabeledCodeFence { type RegionCache (line 89) | type RegionCache = Map; type FileProcessingResult (line 94) | interface FileProcessingResult { constant JSDOC_LABELED_FENCE_PATTERN (line 106) | const JSDOC_LABELED_FENCE_PATTERN = constant JSDOC_CLOSING_FENCE_PATTERN (line 108) | const JSDOC_CLOSING_FENCE_PATTERN = /^(\s*\*\s*)```\s*$/; constant MARKDOWN_LABELED_FENCE_PATTERN (line 114) | const MARKDOWN_LABELED_FENCE_PATTERN = constant MARKDOWN_CLOSING_FENCE_PATTERN (line 116) | const MARKDOWN_CLOSING_FENCE_PATTERN = /^```\s*$/; function findLabeledCodeFences (line 125) | function findLabeledCodeFences( function dedent (line 211) | function dedent(content: string, baseIndent: string): string { function extractRegion (line 242) | function extractRegion( function getOrLoadRegion (line 299) | function getOrLoadRegion( function formatCodeLines (line 345) | function formatCodeLines(code: string, linePrefix: string): string { type ProcessFileOptions (line 354) | interface ProcessFileOptions { function processFile (line 365) | function processFile( function findSourceFiles (line 448) | function findSourceFiles(dir: string): string[] { function findMarkdownFiles (line 483) | function findMarkdownFiles(dir: string): string[] { function findPackageSrcDirs (line 505) | function findPackageSrcDirs(packagesDir: string): string[] { function main (line 529) | async function main() { FILE: test/conformance/src/everythingClient.ts constant CIMD_CLIENT_METADATA_URL (line 34) | const CIMD_CLIENT_METADATA_URL = 'https://conformance-test.local/client-... function parseContext (line 73) | function parseContext() { type ScenarioHandler (line 82) | type ScenarioHandler = (serverUrl: string) => Promise; function registerScenario (line 88) | function registerScenario(name: string, handler: ScenarioHandler): void { function registerScenarios (line 93) | function registerScenarios(names: string[], handler: ScenarioHandler): v... function runBasicClient (line 103) | async function runBasicClient(serverUrl: string): Promise { function runToolsCallClient (line 119) | async function runToolsCallClient(serverUrl: string): Promise { function runAuthClient (line 151) | async function runAuthClient(serverUrl: string): Promise { function runClientCredentialsJwt (line 203) | async function runClientCredentialsJwt(serverUrl: string): Promise { function runClientCredentialsBasic (line 236) | async function runClientCredentialsBasic(serverUrl: string): Promise { function runElicitationDefaultsClient (line 354) | async function runElicitationDefaultsClient(serverUrl: string): Promise<... function runSSERetryClient (line 417) | async function runSSERetryClient(serverUrl: string): Promise { function main (line 456) | async function main(): Promise { FILE: test/conformance/src/everythingServer.ts function createEventStore (line 32) | function createEventStore(): EventStore { constant TEST_IMAGE_BASE64 (line 62) | const TEST_IMAGE_BASE64 = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJA... constant TEST_AUDIO_BASE64 (line 65) | const TEST_AUDIO_BASE64 = 'UklGRiYAAABXQVZFZm10IBAAAAABAAEAQB8AAAB9AAACA... function createMcpServer (line 68) | function createMcpServer() { constant PORT (line 1010) | const PORT = process.env.PORT || 3000; FILE: test/conformance/src/helpers/conformanceOAuthProvider.ts class ConformanceOAuthProvider (line 9) | class ConformanceOAuthProvider implements OAuthClientProvider { method constructor (line 16) | constructor( method redirectUrl (line 22) | get redirectUrl(): string | URL { method clientMetadata (line 26) | get clientMetadata(): OAuthClientMetadata { method clientMetadataUrl (line 30) | get clientMetadataUrl(): string | undefined { method clientInformation (line 34) | clientInformation(): OAuthClientInformation | undefined { method saveClientInformation (line 38) | saveClientInformation(clientInformation: OAuthClientInformationFull): ... method tokens (line 42) | tokens(): OAuthTokens | undefined { method saveTokens (line 46) | saveTokens(tokens: OAuthTokens): void { method redirectToAuthorization (line 50) | async redirectToAuthorization(authorizationUrl: URL): Promise { method getAuthCode (line 76) | async getAuthCode(): Promise { method saveCodeVerifier (line 83) | saveCodeVerifier(codeVerifier: string): void { method codeVerifier (line 87) | codeVerifier(): string { FILE: test/conformance/src/helpers/logger.ts type LogLevel (line 6) | type LogLevel = 'debug' | 'error'; function setLogLevel (line 10) | function setLogLevel(level: LogLevel): void { function getLogLevel (line 14) | function getLogLevel(): LogLevel { FILE: test/helpers/src/helpers/http.ts function listenOnRandomPort (line 10) | async function listenOnRandomPort(server: Server, host: string = '127.0.... function createExpressResponseMock (line 32) | function createExpressResponseMock(options: { trackRedirectUrl?: boolean... function createNodeServerResponseMock (line 87) | function createNodeServerResponseMock(): ServerResponse { FILE: test/helpers/src/helpers/oauth.ts type MockOAuthFetchOptions (line 4) | interface MockOAuthFetchOptions { function createMockOAuthFetch (line 21) | function createMockOAuthFetch(options: MockOAuthFetchOptions): FetchLike { type MockFetch (line 80) | type MockFetch = (...args: unknown[]) => unknown; function mockGlobalFetch (line 85) | function mockGlobalFetch(): MockFetch { FILE: test/helpers/src/helpers/tasks.ts function waitForTaskStatus (line 6) | async function waitForTaskStatus( FILE: test/integration/test/client/client.test.ts method createTask (line 2267) | async createTask(_args, ctx) { method getTask (line 2279) | async getTask(_args, ctx) { method getTaskResult (line 2286) | async getTaskResult(_args, ctx) { method createTask (line 2346) | async createTask(_args, ctx) { method getTask (line 2358) | async getTask(_args, ctx) { method getTaskResult (line 2365) | async getTaskResult(_args, ctx) { method createTask (line 2426) | async createTask(_args, ctx) { method getTask (line 2438) | async getTask(_args, ctx) { method getTaskResult (line 2445) | async getTaskResult(_args, ctx) { method createTask (line 2510) | async createTask(_args, ctx) { method getTask (line 2522) | async getTask(_args, ctx) { method getTaskResult (line 2529) | async getTaskResult(_args, ctx) { method createTask (line 2994) | async createTask({ id }, ctx) { method getTask (line 3006) | async getTask(_args, ctx) { method getTaskResult (line 3013) | async getTaskResult(_args, ctx) { method createTask (line 3265) | async createTask(_args, ctx) { method getTask (line 3277) | async getTask(_args, ctx) { method getTaskResult (line 3284) | async getTaskResult(_args, ctx) { FILE: test/integration/test/helpers/mcp.ts type InMemoryTaskEnvironment (line 6) | interface InMemoryTaskEnvironment { function createInMemoryTaskEnvironment (line 14) | async function createInMemoryTaskEnvironment(options?: { FILE: test/integration/test/processCleanup.test.ts constant FIXTURES_DIR (line 8) | const FIXTURES_DIR = path.resolve(__dirname, './__fixtures__'); method read (line 25) | read() { method write (line 30) | write(chunk, encoding, callback) { FILE: test/integration/test/server.test.ts class ThrowingValidator (line 760) | class ThrowingValidator implements jsonSchemaValidator { method getValidator (line 761) | getValidator(_schema: JsonSchemaType): JsonSchemaValidator { method createTask (line 2380) | async createTask(_args, ctx) { method getTask (line 2396) | async getTask(_args, ctx) { method getTaskResult (line 2403) | async getTaskResult(_args, ctx) { method createTask (line 2605) | async createTask(_args, ctx) { method getTask (line 2641) | async getTask(_args, ctx) { method getTaskResult (line 2648) | async getTaskResult(_args, ctx) { method createTask (line 3080) | async createTask({ delay, taskNum }, ctx) { method getTask (line 3096) | async getTask(_args, ctx) { method getTaskResult (line 3103) | async getTaskResult(_args, ctx) { FILE: test/integration/test/server/cloudflareWorkers.test.ts constant PORT (line 17) | const PORT = 8787; type TestEnv (line 19) | interface TestEnv { FILE: test/integration/test/server/deno.test.ts method fn (line 18) | async fn() { FILE: test/integration/test/server/elicitation.test.ts function testElicitationFlow (line 63) | function testElicitationFlow(validatorProvider: typeof ajvProvider | typ... FILE: test/integration/test/server/mcp.test.ts function createLatch (line 15) | function createLatch() { FILE: test/integration/test/stateManagementStreamableHttp.test.ts function setupServer (line 11) | async function setupServer(withSessionManagement: boolean) { FILE: test/integration/test/taskLifecycle.test.ts method createTask (line 62) | async createTask({ duration, shouldFail }, ctx) { method getTask (line 88) | async getTask(_args, ctx) { method getTaskResult (line 95) | async getTaskResult(_args, ctx) { method createTask (line 113) | async createTask({ userName }, ctx) { method getTask (line 169) | async getTask(_args, ctx) { method getTaskResult (line 176) | async getTaskResult(_args, ctx) { method createTask (line 404) | async createTask({ requestCount }, ctx) { method getTask (line 453) | async getTask(_args, ctx) { method getTaskResult (line 460) | async getTaskResult(_args, ctx) { method createTask (line 856) | async createTask({ messageCount }, ctx) { method getTask (line 905) | async getTask(_args, ctx) { method getTaskResult (line 912) | async getTaskResult(_args, ctx) { method createTask (line 1035) | async createTask({ messageCount, delayBetweenMessages }, ctx) { method getTask (line 1102) | async getTask(_args, ctx) { method getTaskResult (line 1109) | async getTaskResult(_args, ctx) { method createTask (line 1238) | async createTask({ messageCount }, ctx) { method getTask (line 1298) | async getTask(_args, ctx) { method getTaskResult (line 1305) | async getTaskResult(_args, ctx) { FILE: test/integration/test/taskResumability.test.ts class InMemoryEventStore (line 15) | class InMemoryEventStore implements EventStore { method storeEvent (line 18) | async storeEvent(streamId: string, message: JSONRPCMessage): Promise