Skip to content

Commit 55f4068

Browse files
docs(sdk): note optional express/hono peers for auth and sse subpaths
1 parent ec3650c commit 55f4068

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/sdk/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ See [`docs/migration.md`](../../docs/migration.md) for the full mapping.
1818
## When to use the sub-packages directly
1919

2020
Bundle-sensitive targets (browsers, Cloudflare Workers) should import from `@modelcontextprotocol/client` or `@modelcontextprotocol/server` directly to avoid pulling in Node-only transports.
21+
22+
## Optional subpaths
23+
24+
The `./server/auth/*` subpaths re-export the legacy Authorization Server helpers from `@modelcontextprotocol/server-auth-legacy`, which require `express` to be installed by the consumer. Similarly, `./server/sse.js` (the deprecated `SSEServerTransport`) is provided by
25+
`@modelcontextprotocol/node`. Both `express` and `hono` are optional peer dependencies — install them only if you use those subpaths.

0 commit comments

Comments
 (0)