You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -244,6 +244,11 @@ In case multi-cluster support is enabled (default) and you have access to multip
244
244
245
245
-**projects_list** - List all the OpenShift projects in the current cluster
246
246
247
+
-**nodes_log** - Get logs from a Kubernetes node (kubelet, kube-proxy, or other system logs). This accesses node logs through the Kubernetes API proxy to the kubelet
248
+
-`name` (`string`) **(required)** - Name of the node to get logs from
249
+
-`query` (`string`) **(required)** - query specifies services(s) or files from which to return logs (required). Example: "kubelet" to fetch kubelet logs, "/<log-file-name>" to fetch a specific log file from the node (e.g., "/var/log/kubelet.log" or "/var/log/kube-proxy.log")
250
+
-`tailLines` (`integer`) - Number of lines to retrieve from the end of the logs (Optional, 0 means all logs)
251
+
247
252
-**pods_list** - List all the Kubernetes pods in the current cluster from all namespaces
248
253
-`labelSelector` (`string`) - Optional Kubernetes label selector (e.g. 'app=myapp,env=prod' or 'app in (myapp,yourapp)'), use this option when you want to filter the pods by label
Copy file name to clipboardExpand all lines: pkg/mcp/testdata/toolsets-core-tools.json
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -45,24 +45,24 @@
45
45
"inputSchema": {
46
46
"type": "object",
47
47
"properties": {
48
-
"log_path": {
49
-
"default": "kubelet.log",
50
-
"description": "Path to the log file on the node (e.g. 'kubelet.log', 'kube-proxy.log'). Default is 'kubelet.log'",
51
-
"type": "string"
52
-
},
53
48
"name": {
54
49
"description": "Name of the node to get logs from",
55
50
"type": "string"
56
51
},
57
-
"tail": {
52
+
"query": {
53
+
"description": "query specifies services(s) or files from which to return logs (required). Example: \"kubelet\" to fetch kubelet logs, \"/\u003clog-file-name\u003e\" to fetch a specific log file from the node (e.g., \"/var/log/kubelet.log\" or \"/var/log/kube-proxy.log\")",
54
+
"type": "string"
55
+
},
56
+
"tailLines": {
58
57
"default": 100,
59
58
"description": "Number of lines to retrieve from the end of the logs (Optional, 0 means all logs)",
Copy file name to clipboardExpand all lines: pkg/mcp/testdata/toolsets-full-tools-multicluster-enum.json
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -215,24 +215,24 @@
215
215
],
216
216
"type": "string"
217
217
},
218
-
"log_path": {
219
-
"default": "kubelet.log",
220
-
"description": "Path to the log file on the node (e.g. 'kubelet.log', 'kube-proxy.log'). Default is 'kubelet.log'",
221
-
"type": "string"
222
-
},
223
218
"name": {
224
219
"description": "Name of the node to get logs from",
225
220
"type": "string"
226
221
},
227
-
"tail": {
222
+
"query": {
223
+
"description": "query specifies services(s) or files from which to return logs (required). Example: \"kubelet\" to fetch kubelet logs, \"/\u003clog-file-name\u003e\" to fetch a specific log file from the node (e.g., \"/var/log/kubelet.log\" or \"/var/log/kube-proxy.log\")",
224
+
"type": "string"
225
+
},
226
+
"tailLines": {
228
227
"default": 100,
229
228
"description": "Number of lines to retrieve from the end of the logs (Optional, 0 means all logs)",
Copy file name to clipboardExpand all lines: pkg/mcp/testdata/toolsets-full-tools-multicluster.json
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -191,24 +191,24 @@
191
191
"description": "Optional parameter selecting which context to run the tool in. Defaults to fake-context if not set",
192
192
"type": "string"
193
193
},
194
-
"log_path": {
195
-
"default": "kubelet.log",
196
-
"description": "Path to the log file on the node (e.g. 'kubelet.log', 'kube-proxy.log'). Default is 'kubelet.log'",
197
-
"type": "string"
198
-
},
199
194
"name": {
200
195
"description": "Name of the node to get logs from",
201
196
"type": "string"
202
197
},
203
-
"tail": {
198
+
"query": {
199
+
"description": "query specifies services(s) or files from which to return logs (required). Example: \"kubelet\" to fetch kubelet logs, \"/\u003clog-file-name\u003e\" to fetch a specific log file from the node (e.g., \"/var/log/kubelet.log\" or \"/var/log/kube-proxy.log\")",
200
+
"type": "string"
201
+
},
202
+
"tailLines": {
204
203
"default": 100,
205
204
"description": "Number of lines to retrieve from the end of the logs (Optional, 0 means all logs)",
Copy file name to clipboardExpand all lines: pkg/mcp/testdata/toolsets-full-tools-openshift.json
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -151,24 +151,24 @@
151
151
"inputSchema": {
152
152
"type": "object",
153
153
"properties": {
154
-
"log_path": {
155
-
"default": "kubelet.log",
156
-
"description": "Path to the log file on the node (e.g. 'kubelet.log', 'kube-proxy.log'). Default is 'kubelet.log'",
157
-
"type": "string"
158
-
},
159
154
"name": {
160
155
"description": "Name of the node to get logs from",
161
156
"type": "string"
162
157
},
163
-
"tail": {
158
+
"query": {
159
+
"description": "query specifies services(s) or files from which to return logs (required). Example: \"kubelet\" to fetch kubelet logs, \"/\u003clog-file-name\u003e\" to fetch a specific log file from the node (e.g., \"/var/log/kubelet.log\" or \"/var/log/kube-proxy.log\")",
160
+
"type": "string"
161
+
},
162
+
"tailLines": {
164
163
"default": 100,
165
164
"description": "Number of lines to retrieve from the end of the logs (Optional, 0 means all logs)",
Copy file name to clipboardExpand all lines: pkg/mcp/testdata/toolsets-full-tools.json
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -151,24 +151,24 @@
151
151
"inputSchema": {
152
152
"type": "object",
153
153
"properties": {
154
-
"log_path": {
155
-
"default": "kubelet.log",
156
-
"description": "Path to the log file on the node (e.g. 'kubelet.log', 'kube-proxy.log'). Default is 'kubelet.log'",
157
-
"type": "string"
158
-
},
159
154
"name": {
160
155
"description": "Name of the node to get logs from",
161
156
"type": "string"
162
157
},
163
-
"tail": {
158
+
"query": {
159
+
"description": "query specifies services(s) or files from which to return logs (required). Example: \"kubelet\" to fetch kubelet logs, \"/\u003clog-file-name\u003e\" to fetch a specific log file from the node (e.g., \"/var/log/kubelet.log\" or \"/var/log/kube-proxy.log\")",
160
+
"type": "string"
161
+
},
162
+
"tailLines": {
164
163
"default": 100,
165
164
"description": "Number of lines to retrieve from the end of the logs (Optional, 0 means all logs)",
0 commit comments