-
Notifications
You must be signed in to change notification settings - Fork 55
OLS-3680 Note ocp-mcp _meta RBAC publishing (RFE) #1995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
xrajesh
wants to merge
1
commit into
openshift:main
Choose a base branch
from
xrajesh:spec/OLS-3680-mcp-tool-rbac
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: openshift/lightspeed-operator
Length of output: 17346
🏁 Script executed:
Repository: openshift/lightspeed-operator
Length of output: 8693
🌐 Web query:
Model Context Protocol 2025-11-25 tools/list ListToolsResult _meta Tool _meta pagination official schema💡 Result:
In the Model Context Protocol (MCP), the tools/list request and its corresponding ListToolsResult are standard components of the tool discovery mechanism [1][2][3]. As of the 2025-11-25 specification, the schema for ListToolsResult and its support for pagination and metadata are defined as follows: The ListToolsResult interface contains the following fields: - tools: An array of Tool objects [4][5]. - nextCursor: An optional string field used for pagination [4][5]. - _meta: An optional object for protocol-level or implementation-specific metadata [4][5]. Pagination The protocol uses an opaque, cursor-based pagination model for the tools/list operation [6][7]. - Request: Clients can include a cursor parameter in the tools/list request [4][1]. The server then returns results starting after this cursor [4][8]. - Response: When more results are available, the server includes a nextCursor string in the ListToolsResult [4][5][7]. - Behavior: Clients must treat the cursor as an opaque token and should not attempt to parse or modify it [6]. If the nextCursor field is missing or null, the client should treat that as the end of the results [6][7]. Metadata (_meta) The _meta field in ListToolsResult is reserved by the protocol to allow clients and servers to attach additional metadata to their responses [8][5]. It is defined as a dictionary (or map) of arbitrary key-value pairs (Record<string, unknown>) [9][5]. While specific implementations may use this for custom extensions, all implementations are expected to follow the general naming conventions for protocol-level metadata if applicable [9]. Top Results: [9][4][8][5][6][7][1][2]
Citations:
Define the response-level RBAC mapping.
MCP treats
ListToolsResult._metaas implementation-defined metadata, andtools/listsupports cursor pagination. Define the versionedopenshift.io/rbacshape, mapping to stabletools[]names, and page-merge rules in this specification or the referenced workspace specification.🤖 Prompt for AI Agents
Source: MCP tools