Skip to content

Commit bed4281

Browse files
fix(rh-developer): align MCP tool names with actual openshift MCP server
Tested against the pinned openshift-mcp-server image from PR #93. Corrected tool names to match the actual MCP tool registry: - pod_list → pods_list / pods_list_in_namespace - pod_logs → pods_log Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 3473081 commit bed4281

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

rh-developer/skills/debug-rbac/SKILL.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ description: |
1414
model: inherit
1515
color: cyan
1616
license: Apache-2.0
17-
allowed-tools: resources_get resources_list events_list pod_list pod_logs
17+
allowed-tools: resources_get resources_list events_list pods_list pods_list_in_namespace pods_log
1818
metadata:
1919
user_invocable: "true"
2020
---
@@ -44,8 +44,8 @@ Diagnose RBAC permission failures on OpenShift by analyzing pod logs, readiness
4444
**Required MCP Tools:**
4545
- `resources_get` (from openshift) — Retrieve Deployment, Pod, ServiceAccount, Role, and RoleBinding details
4646
- `resources_list` (from openshift) — List Deployments, RoleBindings, and ClusterRoleBindings in a namespace
47-
- `pod_list` (from openshift) — List pods for a Deployment
48-
- `pod_logs` (from openshift) — Retrieve container logs to identify FORBIDDEN errors
47+
- `pods_list` (from openshift) — List pods for a Deployment
48+
- `pods_log` (from openshift) — Retrieve container logs to identify FORBIDDEN errors
4949
- `events_list` (from openshift) — Fetch warning events related to RBAC failures
5050

5151
**Verification Steps:**
@@ -139,7 +139,7 @@ Which deployment would you like me to debug?
139139

140140
### Step 2: Check Pod Status and Logs
141141

142-
**MCP Tool**: `pod_list` (from openshift)
142+
**MCP Tool**: `pods_list` (from openshift)
143143

144144
**Parameters**:
145145
- `namespace`: "<namespace>"
@@ -151,10 +151,10 @@ Then for each matching pod:
151151

152152
**Parameters**:
153153
- `kind`: "Pod" (resource type)
154-
- `name`: "<pod-name>" (from pod_list)
154+
- `name`: "<pod-name>" (from pods_list)
155155
- `namespace`: "<namespace>"
156156

157-
**MCP Tool**: `pod_logs` (from openshift)
157+
**MCP Tool**: `pods_log` (from openshift)
158158

159159
**Parameters**:
160160
- `name`: "<pod-name>"
@@ -430,8 +430,8 @@ Select an option:
430430
### Required MCP Tools
431431
- `resources_get` (from openshift) — Retrieve individual resource details (Deployment, Pod, ServiceAccount, Role, RoleBinding)
432432
- `resources_list` (from openshift) — List resources by kind in a namespace (Deployments, RoleBindings, ClusterRoleBindings)
433-
- `pod_list` (from openshift) — List pods matching label selectors
434-
- `pod_logs` (from openshift) — Retrieve container logs for FORBIDDEN error analysis
433+
- `pods_list` (from openshift) — List pods matching label selectors
434+
- `pods_log` (from openshift) — Retrieve container logs for FORBIDDEN error analysis
435435
- `events_list` (from openshift) — Fetch events filtered by involved object
436436

437437
### Related Skills

rh-developer/skills/debug-scc/SKILL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ description: |
1414
model: inherit
1515
color: cyan
1616
license: Apache-2.0
17-
allowed-tools: resources_get resources_list events_list pod_list
17+
allowed-tools: resources_get resources_list events_list pods_list pods_list_in_namespace
1818
metadata:
1919
user_invocable: "true"
2020
---
@@ -45,7 +45,7 @@ Diagnose OpenShift SCC violations that block pod creation by analyzing security
4545
- `resources_get` (from openshift) — Retrieve Deployment, ReplicaSet, and ServiceAccount details
4646
- `resources_list` (from openshift) — List Deployments, ReplicaSets, and ServiceAccounts in a namespace
4747
- `events_list` (from openshift) — Fetch FailedCreate and SCC rejection events
48-
- `pod_list` (from openshift) — List pods for a Deployment
48+
- `pods_list` (from openshift) — List pods for a Deployment
4949

5050
**Verification Steps:**
5151
1. Check `openshift` server is configured in `mcps.json`
@@ -441,7 +441,7 @@ Select an option:
441441
- `resources_get` (from openshift) — Retrieve individual resource details (Deployment, ReplicaSet, ServiceAccount)
442442
- `resources_list` (from openshift) — List resources by kind in a namespace
443443
- `events_list` (from openshift) — Fetch events filtered by involved object
444-
- `pod_list` (from openshift) — List pods matching label selectors
444+
- `pods_list` (from openshift) — List pods matching label selectors
445445

446446
### Related Skills
447447
- `/debug-pod` — If pods exist but are crashing (CrashLoopBackOff, OOMKilled)

0 commit comments

Comments
 (0)