Blekline
v0.3.0GitHub

MCP

Sourcegraph Cody

P3 — MCP setup for Blekline ingress governance.

View as Markdown

P3 — connect @blekline/mcp-server for mask, enforce, and audit.

Setup

  1. npm install -g @blekline/mcp-server@0.3.0 or use monorepo dist/
  2. Set env:
export BLEKLINE_WORKSPACE_TOKEN="blw_..."
export BLEKLINE_API_URL="https://app.blekline.com"
export BLEKLINE_CLIENT_SURFACE="sourcegraph-cody"
  1. Add MCP server to Cody MCP config:
{
  "mcpServers": {
    "blekline": {
      "command": "npx",
      "args": ["-y", "@blekline/mcp-server"],
      "env": {
        "BLEKLINE_WORKSPACE_TOKEN": "blw_...",
        "BLEKLINE_CLIENT_SURFACE": "sourcegraph-cody"
      }
    }
  }
}
  1. Optional: add blekline-proxy for downstream tool governance — MCP proxy.

Tool interception

  • Before model contextblekline_mask_prompt
  • Before tool executionblekline_evaluate_tool_call / proxy layer

Enterprise

  • Identity pinning — Pin @blekline/mcp-server command digest; see MCP identity pinning.
  • Fleet policy — Workspace SSE tool policy applies to all client surfaces.
  • Support — See Agent clients hub compatibility matrix.

See Sourcegraph Cody documentation.


Next steps: Agent clients hub · MCP server · Model matrix · Open workspace