MCPcopy Index your code
hub / github.com/modelcontextprotocol/typescript-sdk / MockOAuthFetchOptions

Interface MockOAuthFetchOptions

test/helpers/oauth.ts:3–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import type { FetchLike } from '../../src/shared/transport.js';
2
3export interface MockOAuthFetchOptions {
4 resourceServerUrl: string;
5 authServerUrl: string;
6 /**
7 * Optional hook to inspect or override the token request.
8 */
9 onTokenRequest?: (url: URL, init: RequestInit | undefined) => void | Promise<void>;
10}
11
12/**
13 * Shared mock fetch implementation for OAuth flows used in client tests.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…