feat(resources): add statusOnly parameter to resources_get#1143
Open
Semih702 wants to merge 1 commit into
Open
feat(resources): add statusOnly parameter to resources_get#1143Semih702 wants to merge 1 commit into
Semih702 wants to merge 1 commit into
Conversation
Add an optional boolean parameter to the resources_get tool. When set to true, only the .status field of the Kubernetes resource is returned instead of the full object. Resources without a status field return an empty object. Closes: containers#876 Signed-off-by: semih702 <semih702do@gmail.com>
Semih702
force-pushed
the
feat/resources-get-status-only
branch
from
May 9, 2026 01:01
985a280 to
f8bbf53
Compare
Collaborator
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.
Add an optional boolean
statusOnlyparameter to theresources_gettool.When set to true, only the
.statusfield of the Kubernetes resource isreturned instead of the full object. When the resource has no status field,
an empty object is returned. Default behavior is unchanged.
Changes:
pkg/toolsets/core/resources.go: schema definition and handler logicpkg/mcp/resources_test.go: three test scenarios (status returned,explicit false, missing status field)
Closes #876