steampunk-spotter-mcp
v6.7.0MCP server for Steampunk Spotter: Lets AI agents verify Ansible and Terraform code against your policies.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
spotter_scan
Scan Infrastructure-as-Code content with Steampunk Spotter: Ansible (e.g., playbooks, roles, collections) and Terraform (e.g., modules, providers, data sources). Scan either content on the disk (path) or inline files that are passed by value (files). Returns a summary, then findings grouped by check. Each message is followed by the files (relative to the scanned path) and line numbers where it occurs, on indented lines. Checks marked * can be fixed automatically.
| Parameter | Type | Description |
|---|---|---|
ansible_version | Target Ansible Core version to scan against, from 2.0 to 2.20 (e.g., 2.20). When omitted, Spotter tries to discover it on the system and otherwise considers all Ansible versions. | |
display_level | Report only check results with this level or greater (e.g., warning shows warnings and errors, but suppresses hints). Defaults to hint, which reports everything. | |
enforce_checks | Check IDs of the checks to enforce (e.g., ["E001", "W400", "H904"]). | |
exclude_paths | Files and directories to omit from the scan. Should be absolute paths (e.g., ["/repo/vars.yml", "/repo/roles/legacy"]). | |
files | Inline files to scan instead of content on the disk. Use them to scan content that is not (yet) saved, such as generated or edited files. Omit them when path is provided. | |
max_lines | integer | Maximum number of lines of findings to report. Findings are reported by severity, so hints are omitted first. Use 0 to get only the summary and the list of checks that were found. |
path | Path to a file or directory with Ansible or Terraform content. Should be absolute path. Omit it when files are provided. | |
profile | Profile with the selected set of checks to be used for scanning (e.g., default). | |
project_id | UUID of an existing Steampunk Spotter project where the scan result will be stored. When omitted, the default project from the default organization is used. | |
rewrite | boolean | Rewrite the scanned files in place, applying the fixes that Spotter suggests. It cannot be used with inline files, which are scanned from a temporary copy. |
skip_checks | Check IDs of the checks to skip (e.g., ["E101", "H500", "W1800"]). |