substrate browser for VS Code
io.github.manuelinuxkr/substrate-browser
Token-first headless browser for AIs. Extracts a tiny semantic graph, cutting HTML bloat by 95%.
client:VS Code
transport:stdio
runtime:npm
Install substrate browser in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "substrate-proxy",
"description": "SUBSTRATE_PROXY",
"password": true
},
{
"type": "promptString",
"id": "substrate-viewport-width",
"description": "SUBSTRATE_VIEWPORT_WIDTH",
"password": true
},
{
"type": "promptString",
"id": "substrate-viewport-height",
"description": "SUBSTRATE_VIEWPORT_HEIGHT",
"password": true
}
],
"servers": {
"substrate-browser": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"substrate-browser"
],
"env": {
"SUBSTRATE_PROXY": "${input:substrate-proxy}",
"SUBSTRATE_VIEWPORT_WIDTH": "${input:substrate-viewport-width}",
"SUBSTRATE_VIEWPORT_HEIGHT": "${input:substrate-viewport-height}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs