-
Notifications
You must be signed in to change notification settings - Fork 926
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
server-github calls fail with "Error executing code: MCP error -32603: fetch is not defined" #556
Comments
@hinnefe2 The Feel free to check out these additions and provide any feedback! |
@monkeydaichan Thanks for adding those! I think there's been a slight miscommunication though: my issue is not that the It sounds like you have a working setup though - would you mind sharing how you configured the |
I'm using asdf for Node.js version management. Here's my working configuration: "github": {
"command": "npx",
"args": [
"${HOME}/WORK/DevAsLife/mcp-servers/src/github/dist/index.js"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_TOKEN_HERE",
"PATH": "${HOME}/.asdf/shims:/usr/local/bin:/usr/bin:/bin",
"ASDF_DIR": "/opt/homebrew/opt/asdf/libexec",
"ASDF_DATA_DIR": "${HOME}/.asdf",
"ASDF_NODEJS_VERSION": "23.3.0"
}
} Note: Replace ${HOME} with your actual home directory path. |
Describe the bug
When I attempt to use tools provided by the
@modelcontextprotocol/server-github
MCP server in the Claude desktop app the attempt fails and Claude returnsTo Reproduce
Steps to reproduce the behavior:
claude_desktop_config.json
(using a real github personal access token):Restart the Claude desktop app
Ask Claude to use one of the tools from the
server-github
MCP server. For example,Expected behavior
Claude successfully uses the tools provided by the github MCP server.
Additional context
Claude Desktop version Version 0.7.8 (0.7.8)
OS X version 12.6.7 (21G651)
npx version 7.20.3
node version v23.6.0
Also, just running that
npx
command by itself seems to work:The text was updated successfully, but these errors were encountered: