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>
Render interactive MCP App iframes in the chat for tools that provide a UI resource. The MCPAppFrame component acts as an ext-apps SDK host, handling JSON-RPC over postMessage for initialization, tool calls, tool results, and auto-resize. Supports refresh, expand/collapse, minimize, close, and dark/light theme. 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: The following test failed, say
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. |
PR 2: MCPAppFrame component -- interactive iframe views for MCP tools
Depends on #1467
Note: Fallback HTML generators have already been removed. The component only supports the ext-apps SDK path.
Files:
[src/components/MCPAppFrame.tsx](src/components/MCPAppFrame.tsx)(new) -- ext-apps host:ui/initialize,ui/notifications/tool-input,ui/notifications/tool-result,tools/call,tools/list,notifications/size-changed)[src/components/mcp-app-card.css](src/components/mcp-app-card.css)(new) -- card, expanded, minimized, iframe styles[src/components/ResponseTools.tsx](src/components/ResponseTools.tsx)-- addMCPAppToolcomponent + render MCPAppFrame for tools withuiResourceUri[locales/en/plugin__lightspeed-console-plugin.json](locales/en/plugin__lightspeed-console-plugin.json)-- strings:Failed to load MCP App: ...,Failed to refresh data: ...,Interactive view from ...,Loading MCP App...,MCP App Error,MCP App: ...,Refresh,Restore