Skip to content

MCP Server Errors When No Folder/Project is Open #266

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

Open
cholick opened this issue Apr 14, 2025 · 1 comment
Open

MCP Server Errors When No Folder/Project is Open #266

cholick opened this issue Apr 14, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@cholick
Copy link
Member

cholick commented Apr 14, 2025

Describe the bug

I was testing the MCP server and didn't have any project open (just File -> New Window in VSCode)

Image

Once I opened a directory, though, it started working and prompts me for a token. To double check this was consistent, I quit Code and tried again (new Window, no open folder) and get the same error.

Affected version

Please run docker run -i --rm ghcr.io/github/github-mcp-server ./github-mcp-server --version and paste the output below

server version v0.1.1 (7ab5d968e065f13a660cd123c2c5d0be6d8b6dbd) 2025-04-07T16:05:06Z

Steps to reproduce the behavior

  1. Click File -> New Window in VS Code.
  2. Try to run the MCP server manually from settings.json or click the Refresh in the agent window
  3. Get the above error, rather than the token prompt

Expected vs actual behavior

Either the token prompt outside the context of an open folder, or a notification that that agent MCP server cannot function outside the context of an open folder.

Logs

@cholick cholick added the bug Something isn't working label Apr 14, 2025
@aryasoni98
Copy link
Contributor

Hi @cholick, I’d love to work on this issue. Let me know if it’s available or if there are any guidelines I should follow before getting started. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants