Skip to content

Commit b9345e4

Browse files
committed
add support to read prompts from toml config
1 parent 096e2e1 commit b9345e4

File tree

11 files changed

+1158
-718
lines changed

11 files changed

+1158
-718
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,34 @@ uvx kubernetes-mcp-server@latest --help
196196
| `--toolsets` | Comma-separated list of toolsets to enable. Check the [🛠️ Tools and Functionalities](#tools-and-functionalities) section for more information. |
197197
| `--disable-multi-cluster` | If set, the MCP server will disable multi-cluster support and will only use the current context from the kubeconfig file. This is useful if you want to restrict the MCP server to a single cluster. |
198198

199+
#### Custom Prompts Configuration
200+
201+
The server supports defining custom [MCP prompts](https://modelcontextprotocol.io/docs/concepts/prompts) directly in your configuration file, allowing you to create custom workflows without recompiling. See [docs/PROMPTS.md](docs/PROMPTS.md) for detailed documentation.
202+
203+
**Configuration file example:**
204+
205+
```toml
206+
# Define prompts inline in your config.toml
207+
[[prompts]]
208+
name = "my-custom-prompt"
209+
description = "A custom troubleshooting workflow"
210+
211+
[[prompts.arguments]]
212+
name = "resource_name"
213+
required = true
214+
215+
[[prompts.messages]]
216+
role = "user"
217+
content = "Help me troubleshoot {{resource_name}}"
218+
219+
[[prompts.messages]]
220+
role = "assistant"
221+
content = "I'll investigate {{resource_name}} for you."
222+
223+
# Optionally disable built-in embedded prompts
224+
disable_embedded_prompts = false
225+
```
226+
199227
## 🛠️ Tools and Functionalities <a id="tools-and-functionalities"></a>
200228

201229
The Kubernetes MCP server supports enabling or disabling specific groups of tools and functionalities (tools, resources, prompts, and so on) via the `--toolsets` command-line flag or `toolsets` configuration option.

0 commit comments

Comments
 (0)