Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@floatingsidewal/bulkhead-server

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@floatingsidewal/bulkhead-server

Bulkhead guardrails HTTP REST and MCP server

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

@floatingsidewal/bulkhead-server

HTTP REST and MCP server for the Bulkhead content protection engine.

Install

Then install:

npm install @floatingsidewal/bulkhead-server

MCP Server

Exposes three tools via the Model Context Protocol (stdio transport):

ToolDescription
bulkhead_scanScan text for PII, secrets, injection. Modes: fast (regex), model (regex+BERT), deep (full cascade)
bulkhead_redactScan and return redacted text with [REDACTED-TYPE] placeholders
bulkhead_configureEnable/disable guards at runtime

Claude Code

Add to your project's .mcp.json:

{
  "mcpServers": {
    "bulkhead": {
      "command": "bulkhead-mcp"
    }
  }
}

Or run directly:

npx bulkhead-mcp

GitHub Copilot

Add to .github/copilot/mcp.json with the same format.

HTTP REST Server

bulkhead-server
# or
npx bulkhead-server

Endpoints

MethodPathDescription
POST/v1/scanRegex-only scan (sub-ms)
POST/v1/scan/modelRegex + BERT
POST/v1/scan/deepFull cascade (regex + BERT + LLM)
POST/v1/redactScan and redact
GET/healthzHealth check
GET/readyzReadiness (BERT model loaded?)
GET/infoGuard configuration summary

Request Format

curl -X POST http://localhost:3000/v1/scan \
  -H "Content-Type: application/json" \
  -d '{"text": "My SSN is 123-45-6789"}'

Environment Variables

VariableDefaultDescription
BULKHEAD_PORT3000Server port
BULKHEAD_HOST0.0.0.0Bind address
BULKHEAD_API_KEY--Enable API key auth (via X-API-Key header)
BULKHEAD_LOG_LEVELinfoLog level
BULKHEAD_CASCADE_MODEL_ENABLEDfalseEnable BERT layer
BULKHEAD_LLM_PROVIDER--LLM provider: openai, anthropic, or custom
BULKHEAD_LLM_API_KEY--LLM provider API key
BULKHEAD_LLM_ENDPOINT--Custom LLM endpoint URL

Docker

# HTTP mode
docker run -p 3000:3000 bulkhead

# MCP mode (stdio)
docker run -i bulkhead packages/server/dist/mcp/index.js

See the deployment guide for Docker configuration details.

License

MIT

Keywords

bulkhead

FAQs

Package last updated on 12 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts