API
Fluent Builder API reference for open-mcp-guardrails. All builders are immutable — each method returns a new object.
Detection Builders
Create rules that scan content for sensitive information and injections.
| Function | Description |
|---|---|
| pii | PII (personal information) detection |
| secrets | API key & token detection |
| promptInjection | Prompt injection attack detection |
| contentFilter | Custom pattern filtering |
Flow & Tool Builders
Create rules that control tool call ordering and arguments.
| Function | Description |
|---|---|
| flow | Tool call sequence control |
| tool | Tool argument validation |
| custom | Arbitrary custom logic |
Configuration
| Function | Description |
|---|---|
| defineConfig | Create a config object |