feat: turn chatflow into MCP server#5930
feat: turn chatflow into MCP server#5930prd-hoang-doan wants to merge 1 commit intoFlowiseAI:mainfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly expands Flowise's interoperability by transforming chatflows into Model Context Protocol (MCP) servers. This allows other applications and AI agents to discover and utilize Flowise chatflows as specialized tools, enhancing the platform's integration capabilities and enabling more complex, multi-agent workflows. The changes include the necessary backend infrastructure, API endpoints, database schema updates, and a user-friendly interface for configuring these new server functionalities. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces first-class Model Context Protocol (MCP) support, allowing a chatflow to be exposed as an MCP server. The changes are extensive and well-structured, including new dependencies, database migrations, API endpoints, services, UI components, and comprehensive unit tests. My review focuses on improving code maintainability by reducing duplication in controllers by applying recommended middleware patterns for authorization and validation, and ensuring consistency in dependency management and code comments. Overall, this is a solid feature addition.
- Added '@modelcontextprotocol/sdk' version 1.12.0 - Added 'zod' version 3.25.32 - Added migrations for MCP server config - Added MCP endpoints (Streamable HTTP and SSE) - Added MCP server configuration tab - Added unit tests for MCP endpoints and services
a41f96f to
2c31965
Compare
Ticket:
Flowise Roadmap (view)
Overview:
Adds first-class Model Context Protocol (MCP) support so a chatflow/agentflow can be exposed as an MCP server, including server-side endpoints (Streamable HTTP + deprecated SSE transport), persisted configuration, and a UI configuration tab.
Changes:
Testing
Unit test
Integration test
Scenario: Conversational Agent -> Github MCP -> Flowise Chatflow -> Custom MCP -> Third Party Platform
Demo Recording:
Youtube: https://youtu.be/l7R2xRm0-XQ