| 367 | let startArgs: StartArgs | null = null; |
| 368 | |
| 369 | const probe = (_url: string): Promise<ProbeResult | null> => { |
| 370 | calls.push("probe"); |
| 371 | return Promise.resolve({ |
| 372 | issuer: "https://auth.example.com", |
| 373 | authorizationUrl: "https://auth.example.com/authorize", |
| 374 | tokenUrl: "https://auth.example.com/token", |
| 375 | resource: "https://mcp.example.com/mcp", |
| 376 | scopesSupported: ["mcp.read"], |
| 377 | registrationEndpoint: "https://auth.example.com/register", |
| 378 | tokenEndpointAuthMethodsSupported: ["none"], |
| 379 | }); |
| 380 | }; |
| 381 | const register = (args: RegisterArgs): Promise<OAuthClientSlug | null> => { |
| 382 | calls.push("register"); |
| 383 | registerArgs = args; |