MCPcopy Create free account
hub / github.com/modelcontextprotocol/typescript-sdk / middleware.test.ts

File middleware.test.ts

test/client/middleware.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { withOAuth, withLogging, applyMiddlewares, createMiddleware } from '../../src/client/middleware.js';
2import { OAuthClientProvider } from '../../src/client/auth.js';
3import { FetchLike } from '../../src/shared/transport.js';
4import { MockInstance, Mocked, MockedFunction } from 'vitest';

Callers

nothing calls this directly

Calls 5

withOAuthFunction · 0.85
withLoggingFunction · 0.85
applyMiddlewaresFunction · 0.85
createMiddlewareFunction · 0.85
toStringMethod · 0.80

Tested by

no test coverage detected