Repository navigation
feat: per-user mode through the Gameplane API and namespace-scoped break-glass - #5
Merged
Merged
Conversation
…eak-glass serve gains a per-user mode: with GAMEPLANE_PANEL_URL and a personal GAMEPLANE_MCP_TOKEN it reads through the Gameplane API as the token's user, GET only, across every cluster the user may read. Without a panel URL it keeps reading Kubernetes directly, limited to the namespaces in GAMEPLANE_MCP_NAMESPACES. Tool handlers now take a reader.Reader that both clients implement. Tools gain optional cluster and server inputs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
The fake dynamic client sets its own resourceVersion on unrestricted lists, so assert only that no skipped-namespaces note is present. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
ValgulNecron
pushed a commit
to GameplanePanel/Gameplane
that referenced
this pull request
Nov 22, 2026
The pointer moves only after GameplanePanel/mcp#5 merges, in #1046. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
ValgulNecron
pushed a commit
to GameplanePanel/Gameplane
that referenced
this pull request
Nov 22, 2026
…nePanel/mcp#5) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Gameplane spec 037 (scope MCP server permissions), mcp repo part.
internal/reader.Readerinterface so tools no longer depend on a Kubernetes client directly.serve --panel-url(orGAMEPLANE_PANEL_URL) withGAMEPLANE_MCP_TOKENreads through the Gameplane API (internal/panel), GET only, as the token's user. Optionalclusterargument on every tool; with no cluster it fans out over every cluster the user may read and lists unavailable ones.kubectl exec … serve, now limited byGAMEPLANE_MCP_NAMESPACES(out-of-scope namespace refused with "not in scope").Needs the Gameplane API routes from the spec 037 API PR to be useful in per-user mode; break-glass works on its own.
Test plan
Generated by Claude Code