Skip to content

Update VS Code config JSON #45

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

Merged
merged 1 commit into from
Mar 28, 2025
Merged

Update VS Code config JSON #45

merged 1 commit into from
Mar 28, 2025

Conversation

williammartin
Copy link
Collaborator

Description

It is now possible in VS Code to use ${input:github-pat} to indicate that the user should be prompted for an input. This helps keep credentials out of settings files.

@williammartin williammartin requested review from Copilot, juruen and SamMorrowDrums and removed request for Copilot March 27, 2025 14:47
@@ -63,33 +63,37 @@ code-insiders

Another way is to set the environment variable in your shell configuration file (e.g., `.bashrc`, `.zshrc`, etc.).

Run **Preferences: Open User Settings (JSON)**, and create or append to the `mcp` setting:
Create a new file `.vscode/mcp.json` and provide this configuration:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should remove the lines above that mention setting the token as env variable?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no strong opinion on that. I didn't want to take away another option that might be in use. It does seem like this input approach should be elevated to a recommended approach at least?

Copy link
Collaborator

@SamMorrowDrums SamMorrowDrums left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certainly very happy to get instructions in that don't expose the secret in plain text!

@williammartin williammartin merged commit 6c0cb46 into main Mar 28, 2025
11 checks passed
manian0430 pushed a commit to ChrisLally/github-mcp-server that referenced this pull request Apr 12, 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

Successfully merging this pull request may close these issues.

3 participants