OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Implement MCP Client in OpenMetadata UI

Open pmbrull opened this issue 7 months ago β€’ 9 comments

Some work started here https://github.com/open-metadata/OpenMetadata/pull/26343 adding the necessary elements to have an MCP Client to interact directly with the UI.

The initial implementation of the UI in the PR is quite bad, any improvements on styling, making sure it follows the openmetadata-ui core practices, etc. would be great to get it through the finish line.

For the deliverable, make sure to record a new video showcasing the final shape

pmbrull avatar Apr 24 '26 05:04 pmbrull

@pmbrull @PubChimps

Hi! I'd love to work on this issue and would like to get assigned to it. πŸ™‹

I have gone through the issue description carefully and I'm confident I can tackle it effectively. I'm actively contributing to OpenMetadata and this looks like a great fit for me.

Could you please assign this issue to me? Thank you! πŸš€

manavmax avatar Apr 24 '26 05:04 manavmax

Hi @pmbrull, I would love to work on this. could u plz assign this to me?

hassaansaleem28 avatar Apr 24 '26 05:04 hassaansaleem28

@pmbrull I can help finish the styling and structural work for this PR. As a contributor to OpenUI, I suggest using the pre-built browser bundle (openui-browser-bundle) to handle the MCP client interface. We can run it in an isolated iframe, which provides the full generative UI streaming runtime without bloating OpenMetadata's core dependencies or conflicting with the existing design system. Let me know if you are open to this approach, and I can take over the implementation and record the showcase video.

vishxrad avatar Apr 24 '26 05:04 vishxrad

Hi @pmbrull, I’d like to take this on.

I’m ready to start on it right away. If that works for you, could you please assign this issue to me?

Shivang731 avatar Apr 24 '26 06:04 Shivang731

Hi @pmbrull, I’d like to take this on.

I’m ready to start on it right away. If that works for you, could you please assign this issue to me?

Esvanth avatar Apr 24 '26 09:04 Esvanth

Hi @pmbrull, I’d like to help finish the UI side of the MCP Chat work in #26343.

  • I’m frontend-focused, and used to shipping polished React/TS surfaces and iterating fast on review.

  • I would align McpChatPage with openmetadata-ui patterns (layout, components, states), and drop anything that fights the design system.

  • I’ll deliver a short screen recording of the final flow per the issue.

dmystical-coder avatar Apr 24 '26 13:04 dmystical-coder

hi @pmbrull i would like to take this could you please assign it to me ? thanks

RajdeepKushwaha5 avatar Apr 25 '26 02:04 RajdeepKushwaha5

Hi @pmbrull, I'd like to take this one on and finish the MCP Client UI work from #26343.

I went through the draft PR end-to-end. My plan:

  1. Resolve the merge conflicts with main and rebase cleanly so the PR is mergeable.
  2. Fix the two open Gitar-flagged bugs β€” handleSelectAll replacing instead of merging selections, and the broken prefixCls="w-full" on the antd Space component.
  3. Re-align McpChatPage with the openmetadata-ui design system β€” the current implementation leans on raw MUI, which fights the existing component patterns. I'll move it onto the shared layout/typography primitives so it feels native to the app.
  4. Polish the chat surface β€” empty state, thinking indicator, tool-call accordion, markdown rendering, and the conversation sidebar β€” and make sure SSE streaming still behaves correctly end-to-end.
  5. Stabilize the failing checks (Playwright shards, Sonar coverage, integration tests) so the PR can actually go green.

Deliverable: a clean PR on top of #26343 plus a fresh screen recording of the final flow, as called out in the issue.

Happy to coordinate with anyone already working in this area to avoid duplicate effort. Could you assign this to me?

abhay-codes07 avatar Apr 25 '26 06:04 abhay-codes07


Hi @pmbrull πŸ‘‹

I’ve gone through both the issue description and the existing draft PR #27717 end-to-end, including the Gitar bot findings. I’d like to take this over and deliver a production-ready implementation.

Here’s my complete plan:

  1. Fix all 5 Gitar-flagged issues (2 bugs + 3 edge cases) first:

    • Wire up AbortController properly β€” pass signal to streamChat(), call abort() before each new message send, and add a useEffect cleanup on unmount so no orphaned fetch connections remain.
    • Wrap JSON.parse(payload) in a try/catch inside the SSE parser and yield a typed StreamErrorEvent on failure, so a malformed frame does not terminate the whole stream.
    • Fix SSE spec compliance β€” support both data:payload and data: payload formats.
    • Clean up ghost optimistic messages β€” ensure the finally block in the async generator loop always removes optimistic- prefixed messages, whether the stream ends successfully or with an error.
    • Mark i18n keys as pending translation instead of shipping English strings across all locale files.
  2. Align McpChatPage fully with openmetadata-ui conventions β€” replace any raw MUI usage with the shared Ant Design component set used across the codebase (layout, typography, Button, Collapse, Skeleton, etc.).

  3. Polish the chat experience β€” improve the empty state, thinking/typing indicator, tool-call collapsible accordion with JSON input + result, markdown rendering for assistant messages, and the conversation sidebar (list, new, delete).

  4. Ensure SSE streaming correctness β€” authenticated POST-based SSE via native fetch + ReadableStream async generator is the right approach (since EventSource cannot send auth headers or a request body), and I’ll make sure it correctly handles chunked delivery, partial lines, and reconnect edge cases.

  5. Stabilize CI β€” get all checks green (Playwright, Sonar, Java/Python checkstyle, integration tests) before marking ready for review.

  6. Deliverable β€” a screen recording of the complete flow, as required by the issue.

Could you please assign this to me? I’m ready to start immediately. πŸš€


Yashsainani123 avatar Apr 25 '26 10:04 Yashsainani123