How to add ClearRun to VS Code
Add a clearrun entry under servers in .vscode/mcp.json. Use "${env:CLEARRUN_API_KEY}" as the key value so the key stays out of the file.
Last updated
Steps
Set the key in your environment
export CLEARRUN_API_KEY=YOUR_CLEARRUN_API_KEYStart VS Code from that shell, or set the variable for your user account.
Create .vscode/mcp.json
{ "servers": { "clearrun": { "type": "stdio", "command": "npx", "args": ["-y", "@clearrun/mcp"], "env": { "CLEARRUN_API_KEY": "${env:CLEARRUN_API_KEY}" } } } }VS Code uses
servers, notmcpServers.Start the server and try it
Start
clearrunfrom the MCP view, then ask the chat to useclearrun_scoreon an answer.
For every workspace
Run the command MCP: Open User Configuration and add the same entry there.