Skip to content

Conversation

@chelojimenez
Copy link
Contributor

@chelojimenez chelojimenez commented Oct 11, 2025

Note

Switches OpenAI Apps component rendering to use tool definition metadata, plumbs metadata and serverId through the UI, and adds server-side caching/exposure of tools metadata.

  • Frontend
    • Chat: Fetch and aggregate toolsMetadata via listTools, pass to Message/ToolCallDisplay; include serverId in tool execution when only one server is connected.
    • Tool Rendering: Replace result-based extraction with definition-based _meta["openai/outputTemplate"] for rendering Apps components in ToolCallDisplay and ResultsPanel; propagate toolMeta and serverId to OpenAIComponentRenderer.
    • ToolsTab: Derive toolMeta from loaded tools; drive UI toggles (Component/Raw/Structured) based on _meta; pass toolMeta to results panel.
  • Backend
    • GET /api/mcp/tools/list (POST handler) now returns {...ListToolsResult, toolsMetadata} from server-side cache.
    • Client Manager: Cache per-server tool _meta on listTools/getTools; expose getToolMetadata/getAllToolsMetadata; clear cache on reset/disconnect.
    • Minor formatting/URL handling tweaks in connect route.

Written by Cursor Bugbot for commit a8133f2. This will update automatically on new commits. Configure here.

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Oct 11, 2025
cursor[bot]

This comment was marked as outdated.

@chelojimenez chelojimenez merged commit df5ad23 into main Oct 11, 2025
2 checks passed
khandrew1 pushed a commit that referenced this pull request Nov 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants