Skip to content

Commit 900ac03

Browse files
Support for multiple log files
Signed-off-by: Neeraj Krishna Gopalakrishna <[email protected]>
1 parent 46824fb commit 900ac03

File tree

5 files changed

+70
-10
lines changed

5 files changed

+70
-10
lines changed

pkg/mcp/testdata/toolsets-core-tools.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,20 @@
5050
"type": "string"
5151
},
5252
"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"
53+
"description": "query specifies service(s) or files from which to return logs (required). Can be a single string or array of strings. Example: \"kubelet\" to fetch kubelet logs, \"/\u003clog-file-name\u003e\" to fetch a specific log file from the node (e.g., \"kubelet.log\" or \"kube-proxy.log\"), or [\"kubelet\", \"kube-proxy.log\"] for multiple sources",
54+
"oneOf": [
55+
{
56+
"description": "Single query specifying a service or file from which to return logs. Example: \"kubelet\" or \"kubelet.log\"",
57+
"type": "string"
58+
},
59+
{
60+
"description": "Array of queries specifying multiple services or files from which to return logs",
61+
"items": {
62+
"type": "string"
63+
},
64+
"type": "array"
65+
}
66+
]
5567
},
5668
"tailLines": {
5769
"default": 100,

pkg/mcp/testdata/toolsets-full-tools-multicluster-enum.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,20 @@
220220
"type": "string"
221221
},
222222
"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"
223+
"description": "query specifies service(s) or files from which to return logs (required). Can be a single string or array of strings. Example: \"kubelet\" to fetch kubelet logs, \"/\u003clog-file-name\u003e\" to fetch a specific log file from the node (e.g., \"kubelet.log\" or \"kube-proxy.log\"), or [\"kubelet\", \"kube-proxy.log\"] for multiple sources",
224+
"oneOf": [
225+
{
226+
"description": "Single query specifying a service or file from which to return logs. Example: \"kubelet\" or \"kubelet.log\"",
227+
"type": "string"
228+
},
229+
{
230+
"description": "Array of queries specifying multiple services or files from which to return logs",
231+
"items": {
232+
"type": "string"
233+
},
234+
"type": "array"
235+
}
236+
]
225237
},
226238
"tailLines": {
227239
"default": 100,

pkg/mcp/testdata/toolsets-full-tools-multicluster.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,20 @@
196196
"type": "string"
197197
},
198198
"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"
199+
"description": "query specifies service(s) or files from which to return logs (required). Can be a single string or array of strings. Example: \"kubelet\" to fetch kubelet logs, \"/\u003clog-file-name\u003e\" to fetch a specific log file from the node (e.g., \"kubelet.log\" or \"kube-proxy.log\"), or [\"kubelet\", \"kube-proxy.log\"] for multiple sources",
200+
"oneOf": [
201+
{
202+
"description": "Single query specifying a service or file from which to return logs. Example: \"kubelet\" or \"kubelet.log\"",
203+
"type": "string"
204+
},
205+
{
206+
"description": "Array of queries specifying multiple services or files from which to return logs",
207+
"items": {
208+
"type": "string"
209+
},
210+
"type": "array"
211+
}
212+
]
201213
},
202214
"tailLines": {
203215
"default": 100,

pkg/mcp/testdata/toolsets-full-tools-openshift.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,20 @@
156156
"type": "string"
157157
},
158158
"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"
159+
"description": "query specifies service(s) or files from which to return logs (required). Can be a single string or array of strings. Example: \"kubelet\" to fetch kubelet logs, \"/\u003clog-file-name\u003e\" to fetch a specific log file from the node (e.g., \"kubelet.log\" or \"kube-proxy.log\"), or [\"kubelet\", \"kube-proxy.log\"] for multiple sources",
160+
"oneOf": [
161+
{
162+
"description": "Single query specifying a service or file from which to return logs. Example: \"kubelet\" or \"kubelet.log\"",
163+
"type": "string"
164+
},
165+
{
166+
"description": "Array of queries specifying multiple services or files from which to return logs",
167+
"items": {
168+
"type": "string"
169+
},
170+
"type": "array"
171+
}
172+
]
161173
},
162174
"tailLines": {
163175
"default": 100,

pkg/mcp/testdata/toolsets-full-tools.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,20 @@
156156
"type": "string"
157157
},
158158
"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"
159+
"description": "query specifies service(s) or files from which to return logs (required). Can be a single string or array of strings. Example: \"kubelet\" to fetch kubelet logs, \"/\u003clog-file-name\u003e\" to fetch a specific log file from the node (e.g., \"kubelet.log\" or \"kube-proxy.log\"), or [\"kubelet\", \"kube-proxy.log\"] for multiple sources",
160+
"oneOf": [
161+
{
162+
"description": "Single query specifying a service or file from which to return logs. Example: \"kubelet\" or \"kubelet.log\"",
163+
"type": "string"
164+
},
165+
{
166+
"description": "Array of queries specifying multiple services or files from which to return logs",
167+
"items": {
168+
"type": "string"
169+
},
170+
"type": "array"
171+
}
172+
]
161173
},
162174
"tailLines": {
163175
"default": 100,

0 commit comments

Comments
 (0)