Repository navigation
Commit bd2d33f
authored
docs: correct Node adapter dependency note in README (#458)
## What kind of change does this PR introduce?
Docs update.
## What is the current behavior?
Closes #456.
The "Self-hosting the MCP endpoint" section of `README.md` says
`@modelcontextprotocol/node` "is not a dependency of this package". That
was true when #358 added the sentence. #401 then added the adapter to
the `dependencies` of `@supabase/mcp-server-supabase` for the `--http`
entry, and the published 0.13.0 manifest lists it as `^2.0.0`.
## What is the new behavior?
The sentence drops the incorrect claim. It keeps the advice to install
the adapter alongside and gives the actual reason: the example imports
`toNodeHandler` directly. It no longer describes this package's own
dependency list, so it stays accurate whether or not that list includes
the adapter.
## How to Review
1. **README dependency note**
- `README.md`
- The sentence after the Node HTTP example in "Self-hosting the MCP
endpoint".
2. **Package dependency (unchanged)**
- `packages/mcp-server-supabase/package.json` and
`packages/mcp-server-supabase/src/transports/local-http-entry.ts`
- `dependencies` lists `@modelcontextprotocol/node` because the `--http`
entry imports `toNodeHandler` from it.
3. **Tests**
- None added. No test or script reads `README.md`.
- The consumer check under Verification covers the install advice.
**Review questions**
- [ ] Is the public contract minimal and intentional?
- [ ] Do the main execution paths preserve existing behavior?
- [ ] Do failures stop safely?
- [ ] Do tests protect observable behavior rather than implementation
details?
## Verification
The published 0.13.0 metadata
(`https://registry.npmjs.org/@supabase%2Fmcp-server-supabase/0.13.0`)
has `"@modelcontextprotocol/node": "^2.0.0"` in `dependencies`. Versions
0.12.0 and earlier do not list it.
Install advice, checked in an empty project
(`{"private":true,"type":"module"}`) with Node v26.3.1 and pnpm 11.9.0:
```sh
pnpm add @supabase/[email protected] @modelcontextprotocol/server@^2.0.0 zod@^4
node -e "import('@modelcontextprotocol/node').then((m) => console.log(typeof m.toNodeHandler), (e) => console.log(e.code))"
# ERR_MODULE_NOT_FOUND
pnpm add @modelcontextprotocol/node@^2.0.0
node -e "import('@modelcontextprotocol/node').then((m) => console.log(typeof m.toNodeHandler), (e) => console.log(e.code))"
# function
```
After the second install, `pnpm why @modelcontextprotocol/node` reports
one copy (2.1.1), shared by the project and
`@supabase/mcp-server-supabase`. With npm 11.16.0 the first import
already prints `function`, but only through the transitive copy that npm
hoists (`npm ls` lists it under `@supabase/mcp-server-supabase`).
`biome ci .` (Biome 1.9.4): 109 files checked, no errors. Biome does not
process Markdown, so this does not check the edited line.
## Additional context
Only the root `README.md` contains this sentence. It is not part of the
published package, whose `files` is `dist/**/*`.1 parent f46b3d2 commit bd2d33f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
0 commit comments