Skip to content
New issue

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

connect to bundles #111

Open
ddtch opened this issue Dec 13, 2024 · 0 comments
Open

connect to bundles #111

ddtch opened this issue Dec 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ddtch
Copy link

ddtch commented Dec 13, 2024

Is your feature request related to a problem? Please describe.
When compiling a bundle with Deno and running it in MCP, the debugger inspector functionality is not accessible.

Describe the solution you'd like
Add support for connecting to the V8 inspector protocol when running Deno bundles in MCP.

Describe alternatives you've considered

  • Using console.log statements for debugging (cumbersome and limited visibility into program state)
  • Running the code outside MCP for debugging (doesn't accurately represent the MCP runtime environment)

Additional context
Add any other context or screenshots about the feature request here.

I compile my mcp with command like

deno compile --target aarch64-apple-darwin --allow-net --allow-env --allow-run --allow-sys --allow-read --allow-write --output xMcp-1.0 main.ts

and claude can interact with it all good, but inspector can not.

NotCapable: Requires env access to "NODE_EXTRA_CA_CERTS", 
specify the required permissions during compilation using 
'deno compile --allow-env' 
at Object.getEnv [as get] (ext:runtime/30_os.js:124:10) 
at HttpsClientRequest._getClient (node:https:94:35) 
at HttpsClientRequest._writeHeader (node:http:296:25) 
at HttpsClientRequest._send (node:_http_outgoing:381:12) 
at HttpsClientRequest.end (node:http:434:12) 
at writeToStream (file:///private/tmp/deno-compile-xMcp/node_modules/localhost/node-fetch/2.7.0/lib/index.js:649:8) 
at file:///private/tmp/deno-compile-xMcp/node_modules/localhost/node-fetch/2.7.0/lib/index.js:1726:3 at new Promise (<anonymous>) 
at fetch (file:///private/tmp/deno-compile-xMcp/node_modules/localhost/node-fetch/2.7.0/lib/index.js:1447:9) 
at fetchWithRetries (file:///private/tmp/deno-compile-xMcp/node_modules/localhost/twitter-api-sdk/1.2.1/dist/request.js:21:48) { name: "NotCapable" }
@ddtch ddtch added the enhancement New feature or request label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant