feat: QoL MCP (#7361)

* Update mcp_component.py

* [autofix.ci] apply automated fixes

* Update mcp_component.py

* Update mcp_component.py

* making tools empty when see url is empty

* ✅ (mcp-server.spec.ts): add additional tests to ensure dropdown_str_tool is disabled and has a timeout of 30 seconds for selector wait.

* fix mcp tests

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
This commit is contained in:
Edwin Jose 2025-04-10 14:58:06 -04:00 • committed by GitHub
commit b060183c8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 69 additions and 25 deletions

View file

@ -78,9 +78,10 @@ class TestMCPToolsComponent(ComponentTestBaseWithoutClient):
"""Test build config updates when mode changes."""
component = component_class(**default_kwargs)
build_config = {
"command": {"show": False},
"sse_url": {"show": True},
"tool": {"options": [], "show": True}, # Add tool field since component uses it
"command": {"show": False, "value": "uvx mcp-server-fetch"},
"sse_url": {"show": True, "value": "http://localhost:7860/api/v1/mcp/sse"},
"tool": {"options": [], "show": True},
"mode": {"value": "Stdio"},
}
# Test switching to Stdio mode