1

I have an MCP server configured with some inputs so that VSCode stores the credentials. I need to provide a new token for one of those inputs but I can't find a way to trigger VSCode to ask me for the new value, other than to just create a whole new input ID.

Here's a sample config to illustrate:

"mcp": {
    "servers": {
        "mcp-server": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "-e",
                "SECRET_TOKEN",
                "docker/path/to/mcp-server:latest"
            ],
            "env": {
                "SECRET_TOKEN": "${input:secret_token}"
            }
        }
    },
    "inputs": {
        {
            "id": "secret_token",
            "type": "promptString",
            "description": "My Secret Token",
            "password": true
        }
    }
}

I have already been prompted for a value for the secret_token input but that token has since expired and I need to update it. How do I do that? I cannot find any feature in VSCode that allows me to do that.

1 Answer 1

2

In VS Code, when you hover on the args, small popup will open. it will give you option for edit, clear or clearall.

enter image description here

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

1 Comment

You need to hover over the current value itself, specifically.

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.