Skip to content

Github server -failed to load in Cursor and Windsurf #1842

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

Closed
WZRPW opened this issue May 19, 2025 · 1 comment
Closed

Github server -failed to load in Cursor and Windsurf #1842

WZRPW opened this issue May 19, 2025 · 1 comment

Comments

@WZRPW
Copy link

WZRPW commented May 19, 2025

Hey there,
I was trying to use GitHub MCP server in Cursor and Windsurf.
Both cases failed.

"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_my-token"
}
}
}

Tried to put a latest personal token and all failed.
Error log in Windsurf MCP configuration page.

Error: failed to initialize server: <truncated 50 bytes> lvedOption = FSLegacyMainResolve(pkgPath, packageConfig.main, baseStringified); ^ Error: Cannot find package '/Users/johnny/.npm/_npx/3dfbf5a9eea4a1b3/node_modules/node-fetch/src/index.js' imported from /Users/johnny/.npm/_npx/3dfbf5a9eea4a1b3/node_modules/@modelcontextprotocol/server-github/dist/index.js at legacyMainResolve (node:internal/modules/esm/resolve:204:26) at packageResolve (node:internal/modules/esm/resolve:778:12) at moduleResolve (node:internal/modules/esm/resolve:854:18) at defaultResolve (node:internal/modules/esm/resolve:984:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:719:12) at #cachedDefaultResolve (node:internal/modules/esm/loader:643:25) at ModuleLoader.resolve (node:internal/modules/esm/loader:626:38) at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:279:38) at ModuleJob._link (node:internal/modules/esm/module_job:136:49) { code: 'ERR_MODULE_NOT_FOUND' } Node.js v23.7.0: server terminated. Check your configuration.

@olaservo
Copy link
Member

Thanks for reporting this. This server has been moved to the archived repository at https://github.com/modelcontextprotocol/servers-archived to reduce maintenance overhead, so we can focus our efforts on a smaller set of core servers.
Since this server is no longer actively maintained, we recommend checking out the alternatives listed in the Readme.

@olaservo olaservo closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants