Skip to content
VS Code

glassbox framework for VS Code

io.github.thebarmaeffect/glassbox-framework

Runtime constitutional verification for AI answers — claim reasoning, ECS, red team, audits.

client:VS Code transport:stdio runtime:npm

Install glassbox framework in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "anthropic-api-key",
      "description": "ANTHROPIC_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "glassbox-model",
      "description": "GLASSBOX_MODEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "glassbox-max-tokens",
      "description": "GLASSBOX_MAX_TOKENS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "glassbox-ecs-mode",
      "description": "GLASSBOX_ECS_MODE",
      "password": true
    }
  ],
  "servers": {
    "glassbox-framework": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@glassbox-framework/mcp"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "${input:anthropic-api-key}",
        "GLASSBOX_MODEL": "${input:glassbox-model}",
        "GLASSBOX_MAX_TOKENS": "${input:glassbox-max-tokens}",
        "GLASSBOX_ECS_MODE": "${input:glassbox-ecs-mode}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

glassbox framework in other clients