Skip to content

Commit eef9e7e

Browse files
Merge branch 'main' into feature/tool-output-type-generics
2 parents 0094b67 + abb2f0a commit eef9e7e

File tree

6 files changed

+1577
-4
lines changed

6 files changed

+1577
-4
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@modelcontextprotocol/sdk",
3-
"version": "1.17.2",
3+
"version": "1.17.3",
44
"description": "Model Context Protocol implementation for TypeScript",
55
"license": "MIT",
66
"author": "Anthropic, PBC (https://anthropic.com)",

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);

0 commit comments

Comments
 (0)