Implementation details for Bodyguard
# GET request curl "https://ai.civic.com/bodyguard/check?prompt=Your%20prompt%20here" # POST request curl -X POST https://ai.civic.com/bodyguard/check \ -H "X-API-Key: your_api_key_here" -H "Content-Type: application/json" \ -d '{"prompt":"Your prompt here"}'
import { check } from '@civic/bodyguard'; const { result, threatScore, findings } = await check('User prompt here', { threshold: 0.5 // Fail if threat score > 0.5 });
bodyguard "Analyze this prompt for threats"
"mcpServers": { "my-mcp-server": { "command": "passthrough-mcp-server", "env": [ "TARGET_SERVER_URL", "https://my-mcp-server", "HOOKS", "https://ai.civic.com/bodyguard/hook?threshold=0.7" ] } }
Was this page helpful?