Skip to content

Commit 8e4d900

Browse files
Fix invalid field names in MCPRemoteProxy and MCPOIDCConfig examples
- Replace upstreamURL with remoteURL in mcpremoteproxy examples (the MCPRemoteProxySpec field is json:"remoteURL"; upstreamURL is unknown and would be pruned, causing the required field to be missing) - Remove audience from kubernetesServiceAccount blocks in MCPOIDCConfig examples (KubernetesServiceAccountOIDCConfig has no audience field; audience belongs on oidcConfigRef.audience per the CRD design) - Update VirtualMCPServer complete example to use oidcConfigRef instead of the deprecated inline oidcConfig form Co-authored-by: Chris Burns <[email protected]>
1 parent 1255e44 commit 8e4d900

4 files changed

Lines changed: 9 additions & 12 deletions

File tree

‎docs/operator/virtualmcpserver-api.md‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -459,13 +459,12 @@ spec:
459459
toolConfigRef:
460460
name: jira-tool-config
461461
462-
# Client authentication
462+
# Client authentication (preferred: reference a shared MCPOIDCConfig)
463463
incomingAuth:
464464
type: oidc
465-
oidcConfig:
466-
type: kubernetes
467-
kubernetes:
468-
audience: vmcp
465+
oidcConfigRef:
466+
name: engineering-idp # references an MCPOIDCConfig in the same namespace
467+
audience: engineering-vmcp
469468
authzConfig:
470469
type: inline
471470
inline:

‎examples/operator/mcp-servers/mcpremoteproxy_with_inline_oidc_secretref.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ metadata:
1616
name: github-proxy
1717
namespace: toolhive-system
1818
spec:
19-
upstreamURL: "https://api.github.com/mcp"
19+
remoteURL: "https://api.github.com/mcp"
2020
transport: streamable-http
2121
oidcConfig:
2222
type: inline

‎examples/operator/mcp-servers/mcpremoteproxy_with_oidcconfig_ref.yaml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ metadata:
1212
namespace: toolhive-system
1313
spec:
1414
type: kubernetesServiceAccount
15-
kubernetesServiceAccount:
16-
audience: toolhive
15+
kubernetesServiceAccount: {}
1716

1817
---
1918
# MCPRemoteProxy using oidcConfigRef instead of inline oidcConfig
@@ -23,7 +22,7 @@ metadata:
2322
name: github-proxy
2423
namespace: toolhive-system
2524
spec:
26-
upstreamURL: "https://api.github.com/mcp"
25+
remoteURL: "https://api.github.com/mcp"
2726
transport: streamable-http
2827
oidcConfigRef:
2928
name: proxy-idp

‎examples/operator/mcp-servers/mcpserver_with_oidcconfig_ref.yaml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ metadata:
2727
namespace: toolhive-system
2828
spec:
2929
type: kubernetesServiceAccount
30-
kubernetesServiceAccount:
31-
audience: toolhive
32-
# serviceAccount and namespace default to the pod's own SA and namespace
30+
# serviceAccount and namespace default to the pod's own SA and namespace
31+
kubernetesServiceAccount: {}
3332

3433
---
3534
# Shared MCPOIDCConfig — inline provider variant

0 commit comments

Comments
 (0)