Polarity for VS Code
io.github.radar989/polarity-mcp
Real-time threat intelligence lookups and IOC parsing from your self-hosted Polarity instance.
client:VS Code
transport:stdio
runtime:npm
Install Polarity in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "polarity-server-url",
"description": "POLARITY_SERVER_URL",
"password": true
},
{
"type": "promptString",
"id": "polarity-token",
"description": "POLARITY_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "polarity-ignore-ssl",
"description": "POLARITY_IGNORE_SSL",
"password": true
},
{
"type": "promptString",
"id": "polarity-timeout-ms",
"description": "POLARITY_TIMEOUT_MS",
"password": true
}
],
"servers": {
"polarity-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@polarityio/mcp-connector"
],
"env": {
"POLARITY_SERVER_URL": "${input:polarity-server-url}",
"POLARITY_TOKEN": "${input:polarity-token}",
"POLARITY_IGNORE_SSL": "${input:polarity-ignore-ssl}",
"POLARITY_TIMEOUT_MS": "${input:polarity-timeout-ms}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs