| 1128 | let startArgs: StartArgs | null = null; |
| 1129 | |
| 1130 | const probe = (_url: string): Promise<ProbeResult | null> => { |
| 1131 | calls.push("probe"); |
| 1132 | return Promise.resolve({ |
| 1133 | issuer: "https://auth.example.com", |
| 1134 | authorizationUrl: "https://auth.example.com/authorize", |
| 1135 | tokenUrl: "https://auth.example.com/token", |
| 1136 | resource: "https://mcp.example.com/mcp", |
| 1137 | scopesSupported: ["mcp.read"], |
| 1138 | registrationEndpoint: "https://auth.example.com/register", |
| 1139 | tokenEndpointAuthMethodsSupported: ["none"], |
| 1140 | }); |
| 1141 | }; |
| 1142 | const register = (args: RegisterArgs): Promise<OAuthClientSlug | null> => { |
| 1143 | calls.push("register"); |
| 1144 | registerArgs = args; |