MCP Reference
MCP Reference Deployment
Section titled “MCP Reference Deployment”This deployment is a minimal Docker stack for testing SafeLLM MCP tooling together with the sidecar HTTP API.
What is included
Section titled “What is included”- SafeLLM sidecar (OSS build)
- Redis cache backend
- Smoke test script covering HTTP and MCP paths
Repository path:
safellm-oss/examples/mcp-reference/
Quick Start
Section titled “Quick Start”cd safellm-oss/examples/mcp-referencecp .env.example .envdocker compose up -d --buildbash smoke-test.shWhat the smoke test validates
Section titled “What the smoke test validates”GET /healthon sidecarPOST /v1/guardwith clean contentPOST /v1/guardwith malicious content (blocked whenSHADOW_MODE=false)- MCP
tools/listcontains built-in tools - MCP
tools/callreturns structured result
Manual MCP command
Section titled “Manual MCP command”docker compose exec -T sidecar sh -lc \ "printf '%s\\n' '{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/list\",\"params\":{}}' | python -m sidecar.mcp"Tuning
Section titled “Tuning”SIDECAR_HTTP_PORT(default18000)SHADOW_MODE(defaultfalsein.env.example)
Cleanup
Section titled “Cleanup”docker compose down -v