
Ansible MCP 服务器,用于本检验:已安装模块规范、任务参数检查、角色接口、库存(已编辑)、游玩结构、配置、集合漂移等
概览
一键就能把它添加到你本地的Yaw MCP配置里,这样每次Yaw Terminal会话都能使用。或者在下面手动安装。 它是只读的:它从不运行操作,从不运行——检查,从不连接托管主机,也从不提供保险库秘密。它补充了红帽的服务器,而不是取代它们:AAP MCP 回答控制器中的真实情况,ADT MCP 执行操作(lint ——-fix,导航员运行,脚手架,EE 构建)。将它们一起运行。 你的结账是community.general 9.5.2;模型的训练数据是它看到的版本。代理随后写git_config:list_all:true(11.0.0移除)、forget name(自12.0.0起要求)、set state:present on rhsm_repository(不再接受)。VS Code 语言服务器知道具体规格,但只有编辑器中的人员能看到。该服务器允许代理在写入前对照已安装内容进行核对。
概述(AI 翻译)
一键就能把它添加到你本地的Yaw MCP配置里,这样每次Yaw Terminal会话都能使用。或者在下面手动安装。
在这个控制节点的Ansible检查中,实际真实的是什么:你安装的模块的具体选项规格(这样编码代理就不会写出你收藏版本中不存在的选项)、任务参数检查、角色接口、库存结构和变量(已编辑)、游戏结构、有效配置、需求漂移,以及集合升级会破坏任务的内容。 它是只读的:它从不运行游戏,从不运行--check,从不连接管理主机,也从不提供保险库秘密。它补充了红帽的服务器,而不是替代它们:AAP MCP回答控制器中真实的事,ADT MCP执行操作(lint --fix,导航员运行,脚手架,EE构建)。将它们一起运行。
由Yaw Labs制造和维护。
为什么是这个?
你的结出显示为community.general 9.5.2;模型的训练数据显示的是它最常看到的版本。代理随后写入git_config: list_all: true(11.0.0删除),忘记name(自12.0起要求)。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
@yawlabs/ansible-mcp
One click adds this to your local Yaw MCP config so it’s available in every Yaw Terminal session. Or install manually below.
What is actually true in THIS Ansible checkout on THIS control node: the exact option specs of the modules you have INSTALLED (so coding agents stop writing options that do not exist in your collection version), task-argument checks, role interfaces, inventory structure and vars (redacted), play structure, effective config, requirements drift, and what a collection upgrade would break in your tasks. It is read-only: it never runs a play, never runs --check, never connects to a managed host and never supplies a vault secret. It complements Red Hat’s servers rather than replacing them: AAP MCP answers what is true in the controller, ADT MCP takes actions (lint --fix, navigator runs, scaffolding, EE builds). Run them together.
Built and maintained by Yaw Labs.
Why this one?
Your checkout has community.general 9.5.2; the model’s training data has whatever version it saw most. Agents then write git_config: list_all: true (removed in 11.0.0), forget name (required since 12.0.0), or set state: present on rhsm_repository (no longer accepted). The VS Code language server knows the exact specs, but only a person in the editor sees them. This server lets the agent check before it writes, against what is installed.
- Installed, not latest – the source of truth is
ansible-doc --jsonrun against your collections paths, with redirects (ufw->community.general.ufw) and tombstones resolved. - Checks what lint skips –
ansible-lint’sargsrule skips modules with action plugins (copy,template);ansible_check_task_argscatches their unknown options and bad values, and says plainly which cross-option rules ansible-doc cannot express. - YAML 1.1 aware – Ansible parses YAML 1.1, so unquoted
offisfalseand0755is the integer 493. The server reads YAML the same way and says when that is probably a bug. - Read-only by construction – configured vault password scripts never run (a server-owned dummy password file replaces them), script and plugin inventory sources are off by default, and play-level lookups are refused before Ansible parses a playbook (as is any playbook or lint target the pre-scan cannot fully read).
安装
npx -y @yawlabs/ansible-mcp@latest配置
{
"mcpServers": {
"ansible": {
"command": "npx",
"args": ["-y", "@yawlabs/ansible-mcp@latest"]
}
}
}