Conversation
Extend the Tool type with a 'truncated' status and optional MCP app metadata fields (uiResourceUri, serverName, structuredContent). Wire the streaming parser in Prompt.tsx to extract these fields from tool_result events and dispatch them into the Redux store. Co-authored-by: Cursor <cursoragent@cursor.com>
Tool labels in the chat are now color-coded: red for errors, yellow for truncated output, blue for tools with an MCP App UI, and grey (default) for standard tools. Co-authored-by: Cursor <cursoragent@cursor.com>
Show all MCP tool fields in the tool detail modal: a metadata section with color-coded status label, MCP server name, and UI resource URI, plus a dedicated structured content section with formatted, copyable JSON. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@onmete: This pull request references OLS-2568 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@onmete: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Commit 1: Types and streaming
Add MCP app metadata to the data model and wire it through the streaming parser into Redux. No UI changes.
Files:
[src/types.ts](src/types.ts)-- add'truncated'toTool.status; add optionaluiResourceUri,serverName,structuredContent[src/components/Prompt.tsx](src/components/Prompt.tsx)-- extractui_resource_uri,server_name,structured_contentfromtool_resultevents, dispatch to ReduxCommit 2: Color-coded tool labels
Use the new fields to color-code tool labels by status and type.
Files:
[src/components/ResponseTools.tsx](src/components/ResponseTools.tsx)-- ToolLabel changes only: computecolorandiconbased on status anduiResourceUri. Do NOT includeMCPAppToolorMCPAppFrame.Label color mapping:
Commit 3: Enhanced tool detail modal
Show all MCP tool metadata and structured content in the modal.
Files:
[src/components/ResponseToolModal.tsx](src/components/ResponseToolModal.tsx)-- metadata section (status label, server name, UI resource URI via DescriptionList), section titles for Content / Structured content with copy support[src/components/general-page.css](src/components/general-page.css)--.ols-plugin__tool-metadataand.ols-plugin__tool-section-titlestyles[locales/en/plugin__lightspeed-console-plugin.json](locales/en/plugin__lightspeed-console-plugin.json)-- strings:Content,MCP server,Status,Structured content,UI resource