bytedance / deer-flow

DeerFlow is a community-driven Deep Research framework, combining language models with tools like web search, crawling, and Python execution, while contributing back to the open-source community.
https://deerflow.tech
MIT License
15.33k stars 1.9k forks source link

Is it possible to show the UI frame returned from a MCP server on Deerflow UI? #297

Open GingerMoon opened 1 month ago

GingerMoon commented 1 month ago

I am considering how to implement BI(business intelligence) via deerflow. Basically the flow is below, each step will be implemented by a MCP server:

  1. generate sql based on user's natural language query.
  2. execute the sql and return the data.
  3. display the data with the suitable charts. ( get UI code returned from a mcp server and render the UI code on deerflow UI)

My question is, does deerflow support showing the charts returned by the step-3 in deerflow UI?

foreleven commented 1 month ago

https://github.com/bytedance/deer-flow/blob/7d38e5f900a31cc47384f573893b4f0b57c1ce8b/web/src/app/chat/components/research-activities-block.tsx#L102

You can write a React component for your call tool to showcase it.

GingerMoon commented 1 month ago

@foreleven thanks for the reply. Sorry that I don't have much React knowledge just for confirmation of my understanding, if a mcp server can returns a React component as deerflow requires, then it can be rendered by deerflow. Basically deerflow UI code doesn't need to make any change, correct?

GingerMoon commented 3 weeks ago

@foreleven any update would be much appreciated!