Skip to content

Commit d266b90

Browse files
authored
Merge branch 'main' into adam-bloomston--strict-zod-validation
2 parents ef99378 + 4a63974 commit d266b90

File tree

5 files changed

+22
-6
lines changed

5 files changed

+22
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ const upgradeAuthTool = server.tool(
898898
// If we've just upgraded to 'write' permissions, we can still call 'upgradeAuth'
899899
// but can only upgrade to 'admin'.
900900
upgradeAuthTool.update({
901-
paramSchema: { permission: z.enum(["admin"]) }, // change validation rules
901+
paramsSchema: { permission: z.enum(["admin"]) }, // change validation rules
902902
})
903903
} else {
904904
// If we're now an admin, we no longer have anywhere to upgrade to, so fully remove that tool

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@modelcontextprotocol/sdk",
3-
"version": "1.17.1",
3+
"version": "1.17.3",
44
"description": "Model Context Protocol implementation for TypeScript",
55
"license": "MIT",
66
"author": "Anthropic, PBC (https://anthropic.com)",
@@ -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/client/auth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ async function authInternal(
359359
const fullInformation = await registerClient(authorizationServerUrl, {
360360
metadata,
361361
clientMetadata: provider.clientMetadata,
362+
fetchFn,
362363
});
363364

364365
await provider.saveClientInformation(fullInformation);
@@ -395,6 +396,7 @@ async function authInternal(
395396
refreshToken: tokens.refresh_token,
396397
resource,
397398
addClientAuthentication: provider.addClientAuthentication,
399+
fetchFn,
398400
});
399401

400402
await provider.saveTokens(newTokens);

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)