[PR #4709] [MERGED] Improve MCP functionality #4725

Closed
opened 2026-02-22 18:36:24 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4709
Author: @timothycarambat
Created: 12/4/2025
Status: Merged
Merged: 12/5/2025
Merged by: @timothycarambat

Base: masterHead: mcp-improvements


📝 Commits (8)

📊 Changes

15 files changed (+370 additions, -95 deletions)

View changed files

📝 .github/workflows/dev-build.yaml (+36 -36)
📝 docker/.env.example (+6 -1)
📝 docker/Dockerfile (+1 -5)
📝 server/.env.example (+6 -1)
📝 server/package.json (+3 -1)
📝 server/utils/MCP/hypervisor/index.js (+96 -20)
📝 server/utils/MCP/index.js (+46 -7)
📝 server/utils/agents/aibitat/plugins/memory.js (+5 -1)
📝 server/utils/agents/aibitat/plugins/rechart.js (+2 -2)
📝 server/utils/agents/aibitat/plugins/save-file-browser.js (+6 -4)
📝 server/utils/agents/aibitat/providers/helpers/untooled.js (+38 -6)
📝 server/utils/agents/aibitat/providers/ollama.js (+10 -4)
📝 server/utils/agents/aibitat/utils/dedupe.js (+72 -7)
📝 server/utils/helpers/updateENV.js (+3 -0)
📝 server/yarn.lock (+40 -0)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

closes #4299
resolves #4017
resolves #3854
resolves #4494
resolves #4411
resolves #3920
resolves #4613

What is in this change?

  • Improves unbundled running of MCP tools using fix-path
  • fixes env handling for MCP
  • handles return value and various types of MCP
  • All MCP calls are marked on cooldown to prevent recursive calling with 30s cooldown
  • Refactor deduplicator to use unique/cooldown/duplicates properly

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 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/Mintplex-Labs/anything-llm/pull/4709 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 12/4/2025 **Status:** ✅ Merged **Merged:** 12/5/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `mcp-improvements` --- ### 📝 Commits (8) - [`d87eb22`](https://github.com/Mintplex-Labs/anything-llm/commit/d87eb22c5eb78038e52b54b8c2ecf2591776140e) Improve MCP functionality - [`0210207`](https://github.com/Mintplex-Labs/anything-llm/commit/02102076fcd70c2f25e160a206723565d3045a69) apply ANSI strip path - [`9dd118c`](https://github.com/Mintplex-Labs/anything-llm/commit/9dd118cc0d1c6d09babc41c496f6efc5da44092c) attempt ARM build - [`6554577`](https://github.com/Mintplex-Labs/anything-llm/commit/6554577c8563e2a4afa3a2042040044145173c49) improve dockerfile IO - [`56fba32`](https://github.com/Mintplex-Labs/anything-llm/commit/56fba32e9350d696a5fd4807aecfe557fa78dfac) fix comment - [`77a9d2b`](https://github.com/Mintplex-Labs/anything-llm/commit/77a9d2bc7e5aa0f4dee35a5e23e876da91069d6d) add ability to disable MCP cooldown feature - [`8dda84f`](https://github.com/Mintplex-Labs/anything-llm/commit/8dda84f2023a912a5f50880e45b3825d4f507094) update devbuild name - [`db99931`](https://github.com/Mintplex-Labs/anything-llm/commit/db999313fa310c10db1e08b4a1302e194b261aaa) move chromium arm build patch to CDN ### 📊 Changes **15 files changed** (+370 additions, -95 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/dev-build.yaml` (+36 -36) 📝 `docker/.env.example` (+6 -1) 📝 `docker/Dockerfile` (+1 -5) 📝 `server/.env.example` (+6 -1) 📝 `server/package.json` (+3 -1) 📝 `server/utils/MCP/hypervisor/index.js` (+96 -20) 📝 `server/utils/MCP/index.js` (+46 -7) 📝 `server/utils/agents/aibitat/plugins/memory.js` (+5 -1) 📝 `server/utils/agents/aibitat/plugins/rechart.js` (+2 -2) 📝 `server/utils/agents/aibitat/plugins/save-file-browser.js` (+6 -4) 📝 `server/utils/agents/aibitat/providers/helpers/untooled.js` (+38 -6) 📝 `server/utils/agents/aibitat/providers/ollama.js` (+10 -4) 📝 `server/utils/agents/aibitat/utils/dedupe.js` (+72 -7) 📝 `server/utils/helpers/updateENV.js` (+3 -0) 📝 `server/yarn.lock` (+40 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [x] 🐛 fix - [x] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> closes #4299 resolves #4017 resolves #3854 resolves #4494 resolves #4411 resolves #3920 resolves #4613 ### What is in this change? - Improves unbundled running of MCP tools using `fix-path` - fixes env handling for MCP - handles return value and various types of MCP - All MCP calls are marked on cooldown to prevent recursive calling with 30s cooldown - Refactor deduplicator to use unique/cooldown/duplicates properly <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:36:24 -05:00
yindo closed this issue 2026-02-22 18:36:24 -05:00
yindo changed title from [PR #4709] Improve MCP functionality to [PR #4709] [MERGED] Improve MCP functionality 2026-06-05 15:20:02 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4725