fix(node): make hono an optional peer dependency (#1896)
This commit is contained in:
parent
434b2f11ec
commit
5433f40597
1 changed files with 10 additions and 0 deletions
5
.changeset/hono-peer-optional.md
Normal file
5
.changeset/hono-peer-optional.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@modelcontextprotocol/node': patch
|
||||
---
|
||||
|
||||
Mark `hono` peer dependency as optional. `@modelcontextprotocol/node` only uses `getRequestListener` from `@hono/node-server` (Node HTTP ↔ Web Standard conversion), which does not require the `hono` framework at runtime. Consumers no longer need to install `hono` to use `NodeStreamableHTTPServerTransport`. Note: `@hono/node-server` itself still declares `hono` as a hard peer, so package managers may emit a warning; this is upstream and harmless for `getRequestListener`-only usage.
|
||||
Loading…
Reference in a new issue