[PR #7595] [MERGED] chore: implement MCP client #7985

Closed
opened 2026-03-23 23:22:05 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7595
Author: @appflowy
Created: 3/24/2025
Status: Merged
Merged: 3/29/2025
Merged by: @appflowy

Base: mainHead: mcp_protocol


📝 Commits (9)

📊 Changes

17 files changed (+931 additions, -125 deletions)

View changed files

📝 frontend/rust-lib/Cargo.lock (+861 -104)
📝 frontend/rust-lib/Cargo.toml (+3 -2)
📝 frontend/rust-lib/flowy-ai/Cargo.toml (+4 -2)
📝 frontend/rust-lib/flowy-ai/src/ai_manager.rs (+1 -1)
📝 frontend/rust-lib/flowy-ai/src/entities.rs (+1 -1)
📝 frontend/rust-lib/flowy-ai/src/lib.rs (+4 -0)
📝 frontend/rust-lib/flowy-ai/src/local_ai/controller.rs (+6 -7)
📝 frontend/rust-lib/flowy-ai/src/local_ai/resource.rs (+1 -1)
📝 frontend/rust-lib/flowy-ai/src/local_ai/stream_util.rs (+1 -1)
frontend/rust-lib/flowy-ai/src/mcp/manager.rs (+39 -0)
frontend/rust-lib/flowy-ai/src/mcp/mod.rs (+1 -0)
📝 frontend/rust-lib/flowy-ai/src/middleware/chat_service_mw.rs (+1 -1)
📝 frontend/rust-lib/flowy-core/Cargo.toml (+1 -1)
📝 frontend/rust-lib/flowy-core/src/deps_resolve/database_deps.rs (+1 -1)
📝 frontend/rust-lib/flowy-core/src/log_filter.rs (+2 -2)
📝 frontend/rust-lib/flowy-error/src/code.rs (+3 -0)
📝 frontend/scripts/tool/update_local_ai_rev.sh (+1 -1)

📄 Description

Feature Preview


PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

Summary by Sourcery

Implement MCP (Multi-Component Protocol) client for managing AI tool interactions

New Features:

  • Add MCP client manager to handle connections with AI tool servers
  • Introduce ability to connect, remove, and list tools from MCP servers

Enhancements:

  • Add new error code for MCP-related errors
  • Update logging filters to match new dependency names

Chores:

  • Rename dependencies from 'appflowy-local-ai' and 'appflowy-plugin' to 'af-local-ai' and 'af-plugin' respectively
  • Update dependency references across multiple Cargo.toml files

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/7595 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 3/24/2025 **Status:** ✅ Merged **Merged:** 3/29/2025 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `mcp_protocol` --- ### 📝 Commits (9) - [`08d1d36`](https://github.com/AppFlowy-IO/AppFlowy/commit/08d1d3602ebb9e13a46af07e6e334156333ea1d1) chore: implement MCP client - [`d372abd`](https://github.com/AppFlowy-IO/AppFlowy/commit/d372abd5a1232a443245c97b959be7331f072388) Merge branch 'main' into mcp_protocol - [`66ce786`](https://github.com/AppFlowy-IO/AppFlowy/commit/66ce786726eed1fb06a4e6281f7b13a4267e19e9) chore: add client - [`ac8141a`](https://github.com/AppFlowy-IO/AppFlowy/commit/ac8141ab15b0e6bfaa8b41a59a85caa518441eea) Merge branch 'main' into mcp_protocol - [`ccb020e`](https://github.com/AppFlowy-IO/AppFlowy/commit/ccb020e8851759d823cd77129c60aedf32372a12) chore: bump lai - [`8aa32ca`](https://github.com/AppFlowy-IO/AppFlowy/commit/8aa32ca3fac69867c6da11124542a26157a4f86c) chore: disable mcp - [`671e855`](https://github.com/AppFlowy-IO/AppFlowy/commit/671e855b0ebc15ac8e5a9f8a6b0c88fec701c571) Merge branch 'main' into mcp_protocol - [`fbf031b`](https://github.com/AppFlowy-IO/AppFlowy/commit/fbf031b06d9461b87c2fa770f97e1f3fffb4560c) chore: bump local ai - [`7b89d76`](https://github.com/AppFlowy-IO/AppFlowy/commit/7b89d76ceac05c811636e49291bd5b3d1b009142) chore: clippy ### 📊 Changes **17 files changed** (+931 additions, -125 deletions) <details> <summary>View changed files</summary> 📝 `frontend/rust-lib/Cargo.lock` (+861 -104) 📝 `frontend/rust-lib/Cargo.toml` (+3 -2) 📝 `frontend/rust-lib/flowy-ai/Cargo.toml` (+4 -2) 📝 `frontend/rust-lib/flowy-ai/src/ai_manager.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-ai/src/entities.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-ai/src/lib.rs` (+4 -0) 📝 `frontend/rust-lib/flowy-ai/src/local_ai/controller.rs` (+6 -7) 📝 `frontend/rust-lib/flowy-ai/src/local_ai/resource.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-ai/src/local_ai/stream_util.rs` (+1 -1) ➕ `frontend/rust-lib/flowy-ai/src/mcp/manager.rs` (+39 -0) ➕ `frontend/rust-lib/flowy-ai/src/mcp/mod.rs` (+1 -0) 📝 `frontend/rust-lib/flowy-ai/src/middleware/chat_service_mw.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-core/Cargo.toml` (+1 -1) 📝 `frontend/rust-lib/flowy-core/src/deps_resolve/database_deps.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-core/src/log_filter.rs` (+2 -2) 📝 `frontend/rust-lib/flowy-error/src/code.rs` (+3 -0) 📝 `frontend/scripts/tool/update_local_ai_rev.sh` (+1 -1) </details> ### 📄 Description <!--- Thank you for submitting a pull request to AppFlowy. The team will dedicate their best efforts to reviewing and approving your pull request. If you have any questions about the project or feedback for us, please join our [Discord](https://discord.gg/wdjWUXXhtw). --> <!--- If your pull request adds a new feature, please drag and drop a video into this section to showcase what you've done! If not, you may delete this section. --> ### Feature Preview <!--- List at least one issue here that this PR addresses. If it fixes the issue, please use the [fixes](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests) keyword to close the issue. For example: fixes https://github.com/AppFlowy-IO/AppFlowy/pull/2106 --> --- <!--- Before you mark this PR ready for review, run through this checklist! --> #### PR Checklist - [ ] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [ ] I've listed at least one issue that this PR fixes in the description above. - [ ] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [ ] All existing tests are passing. ## Summary by Sourcery Implement MCP (Multi-Component Protocol) client for managing AI tool interactions New Features: - Add MCP client manager to handle connections with AI tool servers - Introduce ability to connect, remove, and list tools from MCP servers Enhancements: - Add new error code for MCP-related errors - Update logging filters to match new dependency names Chores: - Rename dependencies from 'appflowy-local-ai' and 'appflowy-plugin' to 'af-local-ai' and 'af-plugin' respectively - Update dependency references across multiple Cargo.toml files --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:22:05 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#7985
No description provided.