Skip to content

Commit 02803cc

Browse files
JAORMXdanbarr
andauthored
Apply suggestions from code review
Co-authored-by: Dan Barr <[email protected]>
1 parent 13e6a01 commit 02803cc

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

docs/toolhive/guides-k8s/tool-config.mdx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description:
1010
Use the MCPToolConfig Custom Resource Definition (CRD) to centrally manage which
1111
tools an MCP server exposes, and optionally rename tools or override their
1212
descriptions. You reference the configuration from an MCPServer using the
13-
toolConfigRef field.
13+
`toolConfigRef` field.
1414

1515
- toolsFilter: allow‑list the tools to expose.
1616
- toolsOverride: rename tools and/or change their descriptions.
@@ -19,13 +19,6 @@ toolConfigRef field.
1919
- Precedence: toolConfigRef takes precedence over the deprecated spec.tools
2020
field on MCPServer.
2121

22-
## Prerequisites
23-
24-
- ToolHive operator installed. See
25-
[Deploy the operator using Helm](./deploy-operator-helm.md).
26-
- Permissions to create namespaced resources (and optionally RBAC for servers
27-
that need cluster access).
28-
2922
## Define a basic tool filter
3023

3124
This example exposes only three tools on a server:
@@ -75,12 +68,15 @@ spec:
7568
description: Merge a GitHub pull request
7669
```
7770
71+
The key in the `toolsOverride` object is the _original tool name_, while the
72+
`name` field contains the _new name_ that clients will see.
73+
7874
## Reference the configuration from an MCP server
7975

8076
Add toolConfigRef to your MCPServer. toolConfigRef overrides spec.tools
8177
(deprecated).
8278

83-
```yaml title="mcpserver-with-toolconfig.yaml"
79+
```yaml {12-13} title="mcpserver-with-toolconfig.yaml"
8480
apiVersion: toolhive.stacklok.dev/v1alpha1
8581
kind: MCPServer
8682
metadata:

docs/toolhive/guides-mcp/k8s.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,13 @@ spec:
180180
- '--read-write=true'
181181
```
182182
183-
:::info[Configure tools] To filter or rename the tools exposed by your MCP
184-
server on Kubernetes, use the MCPToolConfig CRD and reference it from your
185-
MCPServer with the `toolConfigRef` field. See
183+
:::info[Configure tools]
184+
185+
To filter or rename the tools exposed by your MCP server on Kubernetes, use the
186+
MCPToolConfig CRD and reference it from your MCPServer with the `toolConfigRef`
187+
field. See
186188
[Configure tools for MCP servers on Kubernetes](../guides-k8s/tool-config.mdx).
189+
187190
:::
188191

189192
</TabItem>

0 commit comments

Comments
 (0)