From 29d57bc045847fa4fe7135fb944a9dc62890d175 Mon Sep 17 00:00:00 2001 From: Oleksii Kurinnyi Date: Thu, 9 Jul 2026 17:32:38 +0300 Subject: [PATCH] docs: fix claude mcp add argument order in K8s proxy example The --header option is variadic () and greedily consumes subsequent positional arguments when placed before the name and URL. Move --header after the positional args to match the CLI's expected syntax. Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Oleksii Kurinnyi --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 112f7ec..2437727 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,8 @@ NAMESPACE= # Claude Code — via K8s API service proxy claude mcp add --transport http \ - --header "Authorization: Bearer $(oc whoami -t)" \ - che-mcp "$API_SERVER/api/v1/namespaces/$NAMESPACE/services/che-mcp-server:8080/proxy/mcp" + che-mcp "$API_SERVER/api/v1/namespaces/$NAMESPACE/services/che-mcp-server:8080/proxy/mcp" \ + --header "Authorization: Bearer $(oc whoami -t)" ``` No ClusterRole or Route required — the API server handles authentication and proxies to the ClusterIP service. The caller needs `services/proxy` RBAC permission in the target namespace.