@yawlabs/ansible-mcp 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/ansible-mcp.mjs +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -198,11 +198,11 @@ All optional.
|
|
|
198
198
|
**Runtime (oam or Node):**
|
|
199
199
|
|
|
200
200
|
The `ansible-mcp` command prefers [oam](https://oamjs.org) when it finds a
|
|
201
|
-
usable one and otherwise runs on Node. It never serves on an oam older than 0.
|
|
201
|
+
usable one and otherwise runs on Node. It never serves on an oam older than 0.20.2.
|
|
202
202
|
|
|
203
203
|
| Env var | Default | Purpose |
|
|
204
204
|
|---|---|---|
|
|
205
|
-
| `ANSIBLE_MCP_RUNTIME` | `auto` | `auto`: the newest oam at 0.
|
|
205
|
+
| `ANSIBLE_MCP_RUNTIME` | `auto` | `auto`: the newest oam at 0.20.2 or newer, else Node. `oam`: oam or exit with an error. `node`: always Node -- the escape hatch when a problem only shows up under oam. |
|
|
206
206
|
| `OAM_BIN` | (unset) | Path to the oam binary to use. Otherwise the launcher checks `OAM_INSTALL_DIR`, the installed locations (`~/.oam/bin`, and `%LOCALAPPDATA%\oam\bin` on Windows) and `PATH`, and takes the newest. |
|
|
207
207
|
|
|
208
208
|
An outdated oam is fixed with `oam self-update`. Under Yaw MCP, which runs servers
|
package/bin/ansible-mcp.mjs
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* This server is NOT a zero-dependency bundle: dist/ imports
|
|
14
14
|
* @modelcontextprotocol/sdk, zod and yaml from node_modules. That is fine on
|
|
15
15
|
* both paths: oam resolves npm packages against an existing node_modules.
|
|
16
|
-
* Checked through this launcher on oam 0.
|
|
16
|
+
* Checked through this launcher on oam 0.20.2: an MCP handshake, tools/list,
|
|
17
17
|
* ansible_role_interface (YAML parsing, no subprocess) and ansible_upgrade_impact
|
|
18
18
|
* up to its argument checks (no Ansible was reachable to go further).
|
|
19
19
|
*
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
* so nothing meaningful is left to deny and `--permission` is not wired up.
|
|
81
81
|
*
|
|
82
82
|
* MINIMUM OAM VERSION
|
|
83
|
-
* The latest oam release, 0.
|
|
83
|
+
* The latest oam release, 0.20.2 -- bump OAM_MIN when oam ships a newer one.
|
|
84
84
|
* Only the current oam is used and verified; an older one is passed over.
|
|
85
85
|
*
|
|
86
86
|
* The floor is not cosmetic. The server runs Ansible with an explicit child
|
|
@@ -116,7 +116,7 @@ import { fileURLToPath } from "node:url";
|
|
|
116
116
|
* environment (needed by every Ansible spawn that deletes a variable). See
|
|
117
117
|
* MINIMUM OAM VERSION above.
|
|
118
118
|
*/
|
|
119
|
-
const OAM_MIN = [0,
|
|
119
|
+
const OAM_MIN = [0, 20, 2];
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
122
|
* Bound on each `oam --version` probe. A healthy oam answers in milliseconds;
|
|
@@ -232,7 +232,7 @@ function parseVersion(text) {
|
|
|
232
232
|
|
|
233
233
|
/**
|
|
234
234
|
* `oam --version` output -> [major, minor, patch], or null unless it carries
|
|
235
|
-
* oam's own banner ("oam 0.
|
|
235
|
+
* oam's own banner ("oam 0.20.2" at the start of a line). Any x.y.z is NOT
|
|
236
236
|
* enough: an OAM_BIN (or an oam.exe on disk) that is really another program --
|
|
237
237
|
* node prints "v22.22.2" -- would clear the floor, and the launcher would then
|
|
238
238
|
* spawn `<it> run dist/index.js`, which dies with no Node fallback because the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yawlabs/ansible-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"mcpName": "io.github.YawLabs/ansible-mcp",
|
|
5
5
|
"description": "Ansible MCP server for what is true in THIS checkout: installed module specs, task-argument checks, role interfaces, inventory (redacted), play structure, config, collection drift and collection-upgrade impact",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"start": "node dist/index.js"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@modelcontextprotocol/sdk": "^1.32.
|
|
43
|
+
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
44
44
|
"yaml": "^2.8.1",
|
|
45
45
|
"zod": "^4.3.6"
|
|
46
46
|
},
|