[PR #3803] [MERGED] Fix MCP Start/Stop Toast Text #4412

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

📋 Pull Request Information

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

Base: masterHead: fix/mcp-enable-toast-text


📝 Commits (6)

📊 Changes

1 file changed (+3 additions, -2 deletions)

View changed files

📝 frontend/src/pages/Admin/Agents/MCPServers/ServerPanel.jsx (+3 -2)

📄 Description

Pull Request Type

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

What is in this change?

Fixes the toast message for starting/stopping an MCP server to correctly reflect the server's state at the time of the toggle. The previous implementation could show the wrong state due to asynchronous state updates. The fix uses the existing running value before calling setRunning.

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/3803 **Author:** [@17ColinMiPerry](https://github.com/17ColinMiPerry) **Created:** 5/11/2025 **Status:** ✅ Merged **Merged:** 5/12/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `fix/mcp-enable-toast-text` --- ### 📝 Commits (6) - [`79cba95`](https://github.com/Mintplex-Labs/anything-llm/commit/79cba9552a8148c3a65f061ce7910439bc9e5b19) corrected toggle server toast text - [`cba5b7d`](https://github.com/Mintplex-Labs/anything-llm/commit/cba5b7d48a8a87a74ef06d411370ef5ccdf93f13) reordered code for readability - [`a2fe4e2`](https://github.com/Mintplex-Labs/anything-llm/commit/a2fe4e234bd7127521a600450a0876948dc8b7dd) reordered code for readability - [`524f433`](https://github.com/Mintplex-Labs/anything-llm/commit/524f433e539d0ef31d0f0ed853aa939db470614a) ran yarn lint - [`e4666e5`](https://github.com/Mintplex-Labs/anything-llm/commit/e4666e50090d82b3cb99350a1463596e4a245bce) reordered code for readability - [`1ac073d`](https://github.com/Mintplex-Labs/anything-llm/commit/1ac073d5df7718a71543c85140e33f1e7b9753dd) ran yarn lint ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/Admin/Agents/MCPServers/ServerPanel.jsx` (+3 -2) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [x] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> Fixes the toast message for starting/stopping an MCP server to correctly reflect the server's state at the time of the toggle. The previous implementation could show the wrong state due to asynchronous state updates. The fix uses the existing running value before calling setRunning. ### 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:35:47 -05:00
yindo closed this issue 2026-02-22 18:35:47 -05:00
yindo changed title from [PR #3803] Fix MCP Start/Stop Toast Text to [PR #3803] [MERGED] Fix MCP Start/Stop Toast Text 2026-06-05 15:18:26 -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#4412