Generative UI and MCP servers (could ChatOutputRenderer be used ?) #2804
Unanswered
jjkavalam
asked this question in
Extension Development QnA
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can ChatOutputRenderer be used to render responses from an MCP server ?
I have an MCP server that provides tools.
These tools return structured data.
I would like to develop a VSCode extension that can render the data in an interactive way in the copilot chat box.
I saw that
vscode.chat.registerChatOutputRenderer
API has been introduced. However, looking at the example provided:https://github.com/microsoft/vscode-extension-samples/blob/986bcc700dee6cc4d1e6d4961a316eead110fb21/chat-output-renderer-sample/src/extension.ts#L262-L265
it appears only
LanguageModelToolResult
currently support custom rendering.Will it be possible to bind custom rendering to the result of a tool call to an MCP server ?
The full solution am looking to enable here is:
A VS Code extension offers nice/interactive UI components and a mapping of those components to mime types (e.g.
application/vnd.common-ui-components.table
)MCP servers can hint that the response of a certain tool be treated as one such mime type
This could enable generative UIs more broadly in the context of MCP servers
Beta Was this translation helpful? Give feedback.
All reactions