fix: make MCP naming changes, change actions to tools#8860
Conversation
WalkthroughThis update standardizes terminology across the frontend, replacing "action(s)" and "connection(s)" with "tool(s)" and "server(s)" in user-facing labels, tooltips, and test descriptions. The changes affect UI components, modal dialogs, server lists, and automated tests, with no modifications to logic, control flow, or exported entity signatures. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UI
participant MCPServer
User->>UI: Navigates to MCP Servers
UI->>MCPServer: Fetches list of servers
MCPServer-->>UI: Returns server data (tools count, etc.)
UI->>User: Displays "MCP Servers" and "tools" labels
User->>UI: Interacts with tool management (search, edit, etc.)
UI->>MCPServer: Sends tool-related requests
MCPServer-->>UI: Responds with tool data
UI->>User: Updates tool-related UI elements
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (10)
🧰 Additional context used📓 Path-based instructions (6)`src/frontend/**/*.{ts,tsx}`: Use React 18 with TypeScript for all UI components and frontend logic.
📄 Source: CodeRabbit Inference Engine (.cursor/rules/frontend_development.mdc) List of files the instruction was applied to:
`src/frontend/**/*.{ts,tsx,js,jsx,css,scss}`: Use Tailwind CSS for styling all frontend components.
📄 Source: CodeRabbit Inference Engine (.cursor/rules/frontend_development.mdc) List of files the instruction was applied to:
`src/frontend/src/components/**/*.{ts,tsx}`: All components must be styled using Tailwind CSS utility classes.
📄 Source: CodeRabbit Inference Engine (.cursor/rules/frontend_development.mdc) List of files the instruction was applied to:
`src/frontend/src/{components,hooks}/**/*.{ts,tsx}`: Implement dark mode support in components and hooks where needed.
📄 Source: CodeRabbit Inference Engine (.cursor/rules/frontend_development.mdc) List of files the instruction was applied to:
`{src/backend/tests/**/*.py,src/frontend/**/*.test.{ts,tsx,js,jsx},src/frontend/...
📄 Source: CodeRabbit Inference Engine (.cursor/rules/testing.mdc) List of files the instruction was applied to:
`src/frontend/**/*.@(test|spec).{ts,tsx,js,jsx}`: Frontend test files should be ...
📄 Source: CodeRabbit Inference Engine (.cursor/rules/testing.mdc) List of files the instruction was applied to:
🧠 Learnings (8)📓 Common learningssrc/frontend/src/components/core/folderSidebarComponent/components/sideBarFolderButtons/components/mcp-server-notice.tsx (5)src/frontend/src/pages/SettingsPage/index.tsx (2)src/frontend/tests/extended/features/edit-tools.spec.ts (9)src/frontend/src/pages/MainPage/pages/homePage/components/McpServerTab.tsx (5)src/frontend/tests/extended/features/mcp-server-tab.spec.ts (4)src/frontend/src/modals/toolsModal/components/toolsTable/index.tsx (2)src/frontend/tests/extended/features/mcp-server.spec.ts (7)⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (23)
✨ Finishing Touches
🧪 Generate Unit Tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
This pull request focuses on renaming terminology across the frontend codebase to improve clarity and consistency. Specifically, it replaces references to "actions" with "tools" and updates related labels, descriptions, and test cases accordingly. The changes span multiple files and components, ensuring the new terminology is consistently applied throughout the application.
Terminology Updates:
Component and UI Updates:
MCPServerNotice,McpComponent,ToolsTable, andMcpServerTabcomponents to replace "actions" with "tools." For example, "Search actions..." was changed to "Search tools..." and "Flows/Actions" was changed to "Flows/Tools." ([[1]](https://github.com/langflow-ai/langflow/pull/8860/files#diff-f61b943ddbd5597b737df702e9dfa7cb61a4f61ff75c9a5d1c21346e392f182dL27-R27),[[2]](https://github.com/langflow-ai/langflow/pull/8860/files#diff-6627057181c3970ed9c9daea69fa855a4915363c9297f365fccded5c744c5e27L34-R35),[[3]](https://github.com/langflow-ai/langflow/pull/8860/files#diff-74c8a3a7d322d9e3c2682246b095581a079f097b77acf319fd19a7922a39c7baL165-R165),[[4]](https://github.com/langflow-ai/langflow/pull/8860/files#diff-74c8a3a7d322d9e3c2682246b095581a079f097b77acf319fd19a7922a39c7baL266-R266),[[5]](https://github.com/langflow-ai/langflow/pull/8860/files#diff-da4edd139a58d412a5bba68a4e4e84c77cf40f53711bceee9c9a12da4ea2eda8L256-R257),[[6]](https://github.com/langflow-ai/langflow/pull/8860/files#diff-da4edd139a58d412a5bba68a4e4e84c77cf40f53711bceee9c9a12da4ea2eda8L272-R276))Settings Page Updates:
[[1]](https://github.com/langflow-ai/langflow/pull/8860/files#diff-71d4eb4d8471e6b2c846279e40537123edcd7c0e0cac0c39bb6bbcbf16391ce3L42-R42),[[2]](https://github.com/langflow-ai/langflow/pull/8860/files#diff-a4b5b22b3fc381cf0106e514b25841e55c25b132acca137a25bdc0215eb243c3L64-R64),[[3]](https://github.com/langflow-ai/langflow/pull/8860/files#diff-a4b5b22b3fc381cf0106e514b25841e55c25b132acca137a25bdc0215eb243c3L95-R95))Modal Updates:
AddMcpServerModalto reflect the change from "connections" to "servers." ([src/frontend/src/modals/addMcpServerModal/index.tsxL255-R255](https://github.com/langflow-ai/langflow/pull/8860/files#diff-2761edaffa0fb75a00335954fd6059dd4c93c3032fc2aa7282a472acdd59968dL255-R255))Test Updates:
[[1]](https://github.com/langflow-ai/langflow/pull/8860/files#diff-12076cff30d0cc193e72edab3d5f11b01ed45e94e88ede30bbc3ae7267450665L43-R43),[[2]](https://github.com/langflow-ai/langflow/pull/8860/files#diff-7be38a6d14c366a786e62666ed82fb46f758a4d65b76f8c486a56eb90b700e39L6-R6),[[3]](https://github.com/langflow-ai/langflow/pull/8860/files#diff-7be38a6d14c366a786e62666ed82fb46f758a4d65b76f8c486a56eb90b700e39L50-R57),[[4]](https://github.com/langflow-ai/langflow/pull/8860/files#diff-37d0e42832061615b47a8d9aac2a99d55e565969f0e0e9311e1e536152013f9aL108-R112))Summary by CodeRabbit
Style
Tests