Connect VS Code
Add the Sentrasec MCP server to VS Code so the editor agent can scan and explain findings.
Add the server
Create .vscode/mcp.json in your workspace and add the sentrasec server:
.vscode/mcp.json
{ "servers": { "sentrasec": { "command": "sentrasec", "args": ["mcp", "serve"], "env": { "SENTRASEC_APP_ID": "app_...", "SENTRASEC_APP_KEY": "sk_prod_..." } } }}Replace sk_prod_... with your API key. See Authentication for how to create one.
Use it
Reload the window so VS Code picks up the server. Then ask the agent something like:
Check this repository for security issues and explain anything critical.
See the tools reference for everything the agent can call.