We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@modelcontextprotocol/sdk
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The @modelcontextprotocol/sdk package wants you to import stuff from "@modelcontextprotocol/sdk/server/mcp.js" like so:
"@modelcontextprotocol/sdk/server/mcp.js"
import { McpServer, ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
This import resolves to node_modules/@modelcontextprotocol/dist/esm/sdk/server/mcp.js.
node_modules/@modelcontextprotocol/dist/esm/sdk/server/mcp.js
I cannot find a way to provide a module definition to new Hook() that will actually wrap the module.
new Hook()
It seems like we are always ending up in this branch
import-in-the-middle/index.js
Line 147 in 53a33a9
The text was updated successfully, but these errors were encountered:
wrapMcpServerWithSentry
require-in-the-middle
@timfish I think we need to get rid of this condition - see #185
Sorry, something went wrong.
I've tried with the above line removed and we get a single test failure on this assertion. I don't fully understand this negative assertion!
import-in-the-middle/test/hook/static-import-package-internals.mjs
Line 15 in 17e3d39
is it because c8 is re-exporting this via requiring another file? https://github.com/bcoe/c8/blob/1ec3cc41ff1aeb59bb040ee9c143a09054ac413b/index.js#L1
c8
timfish
AbhiPrasad
Successfully merging a pull request may close this issue.
The
@modelcontextprotocol/sdk
package wants you to import stuff from"@modelcontextprotocol/sdk/server/mcp.js"
like so:This import resolves to
node_modules/@modelcontextprotocol/dist/esm/sdk/server/mcp.js
.I cannot find a way to provide a module definition to
new Hook()
that will actually wrap the module.It seems like we are always ending up in this branch
import-in-the-middle/index.js
Line 147 in 53a33a9
The text was updated successfully, but these errors were encountered: