docs: correct parameter schema key in Dynamic Servers documentation (#789)

This commit is contained in:
bianbianzhu 2025-08-15 00:10:27 +10:00 • committed by GitHub
commit 65119eb7d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -898,7 +898,7 @@ const upgradeAuthTool = server.tool(
// If we've just upgraded to 'write' permissions, we can still call 'upgradeAuth'
// but can only upgrade to 'admin'.
upgradeAuthTool.update({
paramSchema: { permission: z.enum(["admin"]) }, // change validation rules
paramsSchema: { permission: z.enum(["admin"]) }, // change validation rules
})
} else {
// If we're now an admin, we no longer have anywhere to upgrade to, so fully remove that tool