File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -9,16 +9,26 @@ import { resourceUrlFromServerUrl } from '../../shared/auth-utils.js';
99
1010
1111export class DemoInMemoryClientsStore implements OAuthRegisteredClientsStore {
12- private clients = new Map < string , OAuthClientInformationFull > ( ) ;
12+ private clients = new Map < string , OAuthClientInformationFull > ( [
13+ // 👇 Preregistered OAuth client here
14+ [
15+ "preregistered-client-id" ,
16+ {
17+ client_id : "preregistered-client-id" ,
18+ redirect_uris : [ "http://localhost:6274/oauth/callback" ] ,
19+ scope : "mcp:tools" ,
20+ } ,
21+ ] ,
22+ ] ) ;
1323
1424 async getClient ( clientId : string ) {
1525 return this . clients . get ( clientId ) ;
1626 }
1727
18- async registerClient ( clientMetadata : OAuthClientInformationFull ) {
28+ /* async registerClient(clientMetadata: OAuthClientInformationFull) {
1929 this.clients.set(clientMetadata.client_id, clientMetadata);
2030 return clientMetadata;
21- }
31+ }*/
2232}
2333
2434/**
You can’t perform that action at this time.
0 commit comments