RSigma
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| RSIGMA_MCP_AUTH_TOKEN | No | Static bearer token required on every HTTP request (Authorization: Bearer <token>), compared in constant time. Maps to --auth-token. Flag/env only, never read from config files. | |
| RSIGMA_MCP__HTTP_ADDR | No | Bind address for the Streamable HTTP transport (e.g. 127.0.0.1:9100); unset means stdio. Maps to mcp.http_addr / --http. | |
| RSIGMA_MCP__RULES_DIR | No | Default root directory for relative path arguments in tool calls. Maps to mcp.rules_dir / --rules-dir. | |
| RSIGMA_MCP__LINT_CONFIG | No | Path to the lint config file (.rsigma-lint.yml) applied by the lint_rules tool. Maps to mcp.lint_config / --lint-config. | |
| RSIGMA_MCP__ALLOW_SIGMA_CLI | No | Allow the convert_rules tool to delegate unsupported targets to an installed sigma-cli. Maps to mcp.allow_sigma_cli / --allow-sigma-cli. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Sigma detection-rule toolchain: parse, parse_condition, lint, validate, evaluate, convert, tune, test exemplars, fix, list fields, resolve pipelines, and author ADS detection-strategy metadata. Every tool accepts inline content (e.g. yaml) or a file path. Resources expose the lint catalogue, the ADS section catalogue, and modifier / MITRE reference data.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| author_adsB | Report each detection rule's ADS (Alerting and Detection Strategy) sections, the required sections it is missing under the active config, and a scaffolded |
| convert_rulesA | Convert Sigma rules to backend-native queries. |
| evaluate_eventsA | Evaluate JSON events against Sigma rules and return matches. Detection-only rules use the stateless engine; collections with correlations use the stateful correlation engine. Rules via inline |
| fix_rulesA | Apply safe auto-fixes (lowercase keys, status/level typos, duplicate removal, ...) to Sigma YAML, preserving comments and formatting. Returns the fixed YAML and applied/failed/skipped-unsafe counts. Unsafe fixes are never auto-applied. With |
| format_rulesA | Rewrite Sigma YAML into the canonical layout: four-space indentation, block collections, canonical key order, and normalized scalar quoting. Comments keep their text and their attachment, and anchors, aliases, tags, and directives are preserved. A semantic guard reparses the result and refuses the rewrite unless YAML values, parsed rules, correlations, filters, parser diagnostics, comment attachment, anchors, aliases, tags, directives, and action values all match. Returns the formatted YAML and whether it changed. Non-Sigma documents are reported as skipped. With |
| lint_rulesA | Lint Sigma rules against the specification, returning findings with lint rule id, severity, message, line, and whether an auto-fix is available. Accepts inline |
| list_backendsA | List available conversion backends (targets) with their output formats and correlation methods. When the server runs with --allow-sigma-cli, installed sigma-cli targets are appended with engine "sigma-cli". |
| list_builtin_pipelinesA | List the builtin processing pipelines with their priority and shape. |
| list_fieldsA | List the event fields referenced by Sigma rules, with provenance (which rules and source kinds reference each field). Optional |
| parse_conditionA | Parse a Sigma condition expression (e.g. |
| parse_ruleA | Parse Sigma YAML (rules, correlations, filters; multi-document supported) into a structured AST as JSON, or return structured parse errors. Accepts inline |
| resolve_pipelineA | Resolve a processing pipeline (a builtin name like |
| reverse_convertA | Reverse-convert a SIEM query into a draft Sigma rule (YAML). |
| test_exemplarsA | Replay embedded rsigma.exemplars on Sigma detection and correlation rules and return pass/fail results. Provide exactly one of inline |
| tune_rulesA | Propose a spec-native Sigma filter rule from false-positive and true-positive JSON event arrays. Rules come from inline |
| validate_rulesA | Validate that Sigma rules parse and compile cleanly: parse, build the detection engine, and check correlation references. Optional |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Lint rule catalogue | |
| ADS section catalogue | |
| Sigma field modifiers | |
| MITRE ATT&CK tactics |
TDQS
Scored across 16 tools
Most tools have clearly distinct purposes (format vs fix vs lint vs validate vs parse), and the long descriptions clarify the boundaries. The rule-checking cluster (validate_rules, lint_rules, parse_rule, parse_condition) and the event-replay pair (evaluate_events vs test_exemplars) have some overlap that could still trip up an agent at selection time.
All names are snake_case with a verb_noun pattern (parse_rule, lint_rules, convert_rules, evaluate_events), which reads consistently. Minor deviation: reverse_convert lacks the _rules suffix used by sibling conversion/rule tools, and convert_rules vs reverse_convert aren't perfectly parallel.
16 tools is slightly heavy but each maps to a genuine lifecycle step (resolve, parse, validate, lint, fix, format, convert, evaluate, tune, author). Nothing feels redundant or filler, though the set sits at the upper edge of comfortable scoping.
The Sigma rule lifecycle is thoroughly covered: parsing, validation, linting, fixing, formatting, bidirectional conversion, event evaluation, exemplar testing, tuning, ADS authoring, plus pipeline/backend/field discovery. No obvious dead ends for authoring, checking, or testing rules.