| 394 | let startArgs: StartArgs | null = null; |
| 395 | |
| 396 | const probe = (_url: string): Promise<ProbeResult | null> => { |
| 397 | calls.push("probe"); |
| 398 | return Promise.resolve({ |
| 399 | issuer: "https://auth.example.com", |
| 400 | authorizationUrl: "https://auth.example.com/authorize", |
| 401 | tokenUrl: "https://auth.example.com/token", |
| 402 | resource: "https://mcp.example.com/mcp", |
| 403 | scopesSupported: ["mcp.read"], |
| 404 | registrationEndpoint: "https://auth.example.com/register", |
| 405 | tokenEndpointAuthMethodsSupported: ["none"], |
| 406 | }); |
| 407 | }; |
| 408 | const register = (args: RegisterArgs): Promise<OAuthClientSlug | null> => { |
| 409 | calls.push("register"); |
| 410 | registerArgs = args; |