Angaben zum Datum
Datum aus der Quelle.
Erstmals gesehen am .
Typescript SDK von Model Context Protocol
MCP TypeScript SDK 2.3.1: expectedResource für requireBearerAuth
Mit Version 2.3.1 übernimmt requireBearerAuth in @modelcontextprotocol/server-legacy die optionale Option expectedResource, die nur für diesen Server ausgestellte Tokens akzeptiert (standardmäßig deaktiviert), und die npm-Seiten von @modelcontextprotocol/server und @modelcontextprotocol/client beginnen mit einem Hinweis auf Dokumentation, Migrationsleitfaden und Issue-Formular.
| Package | Version |
|---|---|
@modelcontextprotocol/client |
2.3.1 |
@modelcontextprotocol/server |
2.3.1 |
@modelcontextprotocol/core |
2.3.1 |
@modelcontextprotocol/server-legacy |
2.3.1 |
@modelcontextprotocol/codemod |
2.3.1 |
@modelcontextprotocol/node, express, hono, fastify |
unchanged |
Changes
requireBearerAuthin@modelcontextprotocol/server-legacytakes the optionalexpectedResourcethat@modelcontextprotocol/server2.3.0 added: it accepts only tokens issued for this server (the token's audience). Off unless you set it. (#2952)- The npm pages of
@modelcontextprotocol/serverand@modelcontextprotocol/clientnow open with one note that links the documentation, the migration guide and the issue form. (#2955)