Repository navigation
v0.0.6
Highlights
- Zero MCP SDK dependency:
@modelcontextprotocol/sdkis removed frompeerDependencies- the package is now fully standalone. All types come from the local schemas (which were forked from the SDK originally). Consumers only needexpressandexpress-rate-limit. The SDK remains a devDependency for the demo example only. - Real-world client compatibility fix: CIMD documents and registration requests advertising grants this server does not support (for example
urn:ietf:params:oauth:grant-type:jwt-bearer) are no longer rejected outright. The client is only rejected when none of its grants are supported;grant_typesare stored as requested and each flow enforces its specific grant at exchange time. Production MCP client metadata documents trip the old validation, so this fix is recommended for anyone using CIMD.
New features
requireBearerAuthtoken audience validation: newresourceoption - when set, tokens must carry an RFC 8707 resource matching the configured identifier, and tokens without one are rejected with401 invalid_token.OAuthServer.verifyAccessTokenalready enforces this whenresourceServerUrlis configured; the option covers custom verifiers and per-route resources.
Other
- The package now declares
engines.node >= 18(the CIMD fetcher uses the globalfetchandAbortSignal.timeout). - Test suite now pins the live client metadata documents of three real MCP clients as fixtures, including an RFC 8252 ephemeral-port authorization against portless loopback redirect URIs.
Full Changelog: v0.0.5...v0.0.6