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
+34-7Lines changed: 34 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -413,17 +413,38 @@ task deps
413
413
414
414
## Running as an MCP Server with ToolHive
415
415
416
-
MKP can be run as a Model Context Protocol (MCP) server using [ToolHive](https://github.com/StacklokLabs/toolhive), which simplifies the deployment and management of MCP servers.
416
+
MKP can be run as a Model Context Protocol (MCP) server using [ToolHive](https://github.com/stacklok/toolhive), which simplifies the deployment and management of MCP servers.
417
417
418
418
### Prerequisites
419
419
420
-
1. Install ToolHive by following the [installation instructions](https://github.com/StacklokLabs/toolhive#installation).
420
+
1. Install ToolHive by following the [installation instructions](https://github.com/stacklok/toolhive#installation).
421
421
2. Ensure you have Docker or Podman installed on your system.
422
422
3. Configure your Kubernetes credentials (kubeconfig) for the cluster you want to interact with.
423
423
424
-
### Running MKP with ToolHive
424
+
### Running MKP with ToolHive (Recommended)
425
425
426
-
To run MKP as an MCP server using ToolHive:
426
+
The easiest way to run MKP is using the packaged version available in ToolHive's registry:
427
+
428
+
```bash
429
+
# Enable auto-discovery to automatically configure supported clients
430
+
thv config auto-discovery true
431
+
432
+
# Run the MKP server (packaged as 'k8s' in ToolHive)
433
+
# Mount your kubeconfig so the server can access your Kubernetes cluster
434
+
thv run --volume $HOME/.kube:/home/nonroot/.kube:ro k8s
435
+
436
+
# List running servers
437
+
thv list
438
+
439
+
# Get detailed information about the server
440
+
thv registry info k8s
441
+
```
442
+
443
+
This will mount your Kubernetes credentials and make the server available to your MCP-compatible clients.
444
+
445
+
### Advanced Usage with Custom Configuration
446
+
447
+
For advanced users who need custom configuration, you can also run MKP using the container image directly:
427
448
428
449
```bash
429
450
# Run the MKP server using the published container image
@@ -442,7 +463,7 @@ To use a specific version instead of the latest:
0 commit comments