Skip to content

Commit 5935e5f

Browse files
authored
Merge branch 'main' into fix/router-prm-baseurl
2 parents 22eb7b1 + 69d4eb1 commit 5935e5f

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@
1919
"mcp"
2020
],
2121
"exports": {
22+
".": {
23+
"import": "./dist/esm/index.js",
24+
"require": "./dist/cjs/index.js"
25+
},
26+
"./client": {
27+
"import": "./dist/esm/client/index.js",
28+
"require": "./dist/cjs/client/index.js"
29+
},
30+
"./server": {
31+
"import": "./dist/esm/server/index.js",
32+
"require": "./dist/cjs/server/index.js"
33+
},
2234
"./*": {
2335
"import": "./dist/esm/*",
2436
"require": "./dist/cjs/*"
@@ -88,4 +100,4 @@
88100
"resolutions": {
89101
"strip-ansi": "6.0.1"
90102
}
91-
}
103+
}

src/examples/client/simpleOAuthClient.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,9 @@ class InteractiveOAuthClient {
270270
}
271271

272272
if (command === 'quit') {
273-
break;
273+
console.log('\n👋 Goodbye!');
274+
this.close();
275+
process.exit(0);
274276
} else if (command === 'list') {
275277
await this.listTools();
276278
} else if (command.startsWith('call ')) {

0 commit comments

Comments
 (0)