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
@@ -110,6 +110,17 @@ To run the server on a specific port:
110
110
MCP_PORT=9091 task run
111
111
```
112
112
113
+
## Running with ToolHive
114
+
115
+
MKP can be run as a Model Context Protocol (MCP) server using
116
+
[ToolHive](https://github.com/stacklok/toolhive), which simplifies the
117
+
deployment and management of MCP servers.
118
+
119
+
See the
120
+
[ToolHive documentation](https://docs.stacklok.com/toolhive/guides-mcp/k8s) for
121
+
detailed instructions on how to set up MKP with the ToolHive UI, CLI, or
122
+
Kubernetes operator.
123
+
113
124
### MCP Tools
114
125
115
126
The MKP server provides the following MCP tools:
@@ -200,13 +211,18 @@ Parameters:
200
211
-`resource` (required): Resource name (e.g., deployments, services)
201
212
-`namespace`: Namespace (required for namespaced resources)
202
213
-`label_selector`: Kubernetes label selector for filtering resources (optional)
203
-
-`include_annotations`: Whether to include annotations in the output (default: true)
204
-
-`exclude_annotation_keys`: List of annotation keys to exclude from output (supports wildcards with *)
205
-
-`include_annotation_keys`: List of annotation keys to include in output (if specified, only these are included)
214
+
-`include_annotations`: Whether to include annotations in the output (default:
215
+
true)
216
+
-`exclude_annotation_keys`: List of annotation keys to exclude from output
217
+
(supports wildcards with \*)
218
+
-`include_annotation_keys`: List of annotation keys to include in output (if
219
+
specified, only these are included)
206
220
207
221
##### Annotation Filtering
208
222
209
-
The `list_resources` tool provides powerful annotation filtering capabilities to control metadata output size and prevent truncation issues with large annotations (such as GPU node annotations).
223
+
The `list_resources` tool provides powerful annotation filtering capabilities to
224
+
control metadata output size and prevent truncation issues with large
225
+
annotations (such as GPU node annotations).
210
226
211
227
**Basic Usage:**
212
228
@@ -275,11 +291,16 @@ The `list_resources` tool provides powerful annotation filtering capabilities to
275
291
276
292
**Annotation Filtering Rules:**
277
293
278
-
- By default, `kubectl.kubernetes.io/last-applied-configuration` is excluded to prevent large configuration data
279
-
-`exclude_annotation_keys` supports wildcard patterns using `*` (e.g., `nvidia.com/*` excludes all NVIDIA annotations)
280
-
- When `include_annotation_keys` is specified, it takes precedence and only those annotations are included
281
-
- Setting `include_annotations: false` completely removes all annotations from the output
282
-
- Wildcard patterns only support `*` at the end of the key (e.g., `nvidia.com/*`)
294
+
- By default, `kubectl.kubernetes.io/last-applied-configuration` is excluded to
295
+
prevent large configuration data
296
+
-`exclude_annotation_keys` supports wildcard patterns using `*` (e.g.,
297
+
`nvidia.com/*` excludes all NVIDIA annotations)
298
+
- When `include_annotation_keys` is specified, it takes precedence and only
299
+
those annotations are included
300
+
- Setting `include_annotations: false` completely removes all annotations from
301
+
the output
302
+
- Wildcard patterns only support `*` at the end of the key (e.g.,
303
+
`nvidia.com/*`)
283
304
284
305
#### apply_resource
285
306
@@ -440,7 +461,8 @@ MKP supports two transport protocols for the MCP server:
440
461
-**Streamable HTTP**: The default transport protocol, suitable for most use cases
441
462
-**SSE (Server-Sent Events)**: Legacy transport protocol, primarily for compatibility with older clients
442
463
443
-
You can configure the transport protocol using either a CLI flag or an environment variable:
464
+
You can configure the transport protocol using either a CLI flag or an
0 commit comments