0

Where does VS Code and Visual Studio store the MCP input? I gave them the wrong token and I want to change them now but cannot find it anywhere.

This is my definition:

    "mcp": {
        
        "inputs": [
            {
                "type": "promptString",
                "id": "github_token",
                "description": "GitHub Personal Access Token",
                "password": true
            }
        ],
        "servers": {
            "github": {
                "command": "npx",
                "args": [
                    "-y",
                    "@modelcontextprotocol/server-github"
                ],
                "env": {
                    "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
                }
            }
        }
    }

For VS Code, I use the global settings but I don't see the token anywhere in settings.json. I also searched in Windows Credential Manager but it's not there as well.

Update: Deleted the whole AppData\Roaming\Code\User for VS Code and .vs folder for VS, neither reset the token. I have to resort to renaming for now.

1 Answer 1

2

I was able to clear out the token by hovering over it in the VS Code editor and then clicking "Clear":

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

Yep and they added the ability to do that in VS recently too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.