Skip to content
VS Code

GRAFOMEM CGR Capture for VS Code

com.grafomem/cgr-capture

Record agent judgments and their real outcomes on GRAFOMEM Cloud. Capture now, score later.

client:VS Code transport:stdio runtime:pypi

Install GRAFOMEM CGR Capture in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "grafomem-cgr-tenant-key",
      "description": "GRAFOMEM_CGR_TENANT_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "grafomem-cgr-tenant",
      "description": "GRAFOMEM_CGR_TENANT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "grafomem-cgr-role-keys-json",
      "description": "GRAFOMEM_CGR_ROLE_KEYS_JSON",
      "password": true
    },
    {
      "type": "promptString",
      "id": "grafomem-cgr-role-keys",
      "description": "GRAFOMEM_CGR_ROLE_KEYS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "grafomem-cgr-forbidden-tenants",
      "description": "GRAFOMEM_CGR_FORBIDDEN_TENANTS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "grafomem-api",
      "description": "GRAFOMEM_API",
      "password": true
    }
  ],
  "servers": {
    "cgr-capture": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "grafomem-cgr"
      ],
      "env": {
        "GRAFOMEM_CGR_TENANT_KEY": "${input:grafomem-cgr-tenant-key}",
        "GRAFOMEM_CGR_TENANT": "${input:grafomem-cgr-tenant}",
        "GRAFOMEM_CGR_ROLE_KEYS_JSON": "${input:grafomem-cgr-role-keys-json}",
        "GRAFOMEM_CGR_ROLE_KEYS": "${input:grafomem-cgr-role-keys}",
        "GRAFOMEM_CGR_FORBIDDEN_TENANTS": "${input:grafomem-cgr-forbidden-tenants}",
        "GRAFOMEM_API": "${input:grafomem-api}"
      }
    }
  }
}

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

GRAFOMEM CGR Capture in other clients