-
Notifications
You must be signed in to change notification settings - Fork 96
feat(designerv2): port v1 add MCP servers logic (addMcpServer, connection handling) #8705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | Minor wording/capitalization improvement suggested |
| Commit Type | ✅ | No change needed |
| Risk Level | Update to Medium and adjust label risk:low → risk:medium |
|
| What & Why | ✅ | Expand a sentence to clarify which paths change vs are new |
| Impact of Change | Fill in Users / Developers / System bullets (see recommendation) | |
| Test Plan | ✅ | Unit tests present. Consider adding E2E/integration if UI will enable soon |
| Contributors | Optional: add contributors where applicable | |
| Screenshots/Videos | ✅ | Not required for this change |
Final notes
- Overall: The PR title and body largely follow the required template and the unit tests are present — passing the checklist. I recommend updating the risk label to
risk:medium(both the PR label and the Risk Level section in the body) because the changes modify core add-operation and connection initialization flows. Also expand the Impact of Change section (developers/system) and optionally add an E2E or integration test if this change will be enabled in the UI soon.
Please update the PR description/labels as recommended and re-submit. Thanks for the thorough work and for including unit tests!
Last updated: Fri, 16 Jan 2026 00:51:57 GMT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR ports MCP (Model Context Protocol) server management code from v1 to v2, specifically adding the ability to handle managed MCP client operations with preferred connection selection. The new code path is inactive until UI is enabled.
Changes:
- Added support for managed MCP client operations with custom parameter handling
- Introduced preferred connection selection for MCP servers
- Restructured node addition logic to handle MCP servers separately from agent tools
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| libs/designer-v2/src/lib/core/actions/bjsworkflow/add.ts | Core implementation for MCP server addition, including managed MCP client handling and preferred connection ID support |
| libs/designer-v2/src/lib/core/actions/bjsworkflow/test/add.spec.ts | Comprehensive unit tests for preferred connection selection logic |
|
📊 Coverage check completed. See workflow run for details. |
Commit Type
Risk Level
What & Why
port v1 code to v2 for adding mcp servers redux action. This is pure new code specific to mcp server support and doesn't impact existing scenarios.
Impact of Change
No impact. new code path is not used yet but will be executed once we enabled UI for adding MCP servers
Test Plan
Contributors
Screenshots/Videos