Skip to content

Build and run agents you can see, understand and trust.

fix(examples): rename the default MCP client to match the server it runs (#2644)

Lukasd18458a35996
diff --git a/examples/agent_service/main.py b/examples/agent_service/main.py
index 3955320ba..3c2c71c18 100644
--- a/examples/agent_service/main.py
+++ b/examples/agent_service/main.py
@@ -26,7 +26,7 @@ from agentscope.workspace import WorkspaceBase
default_mcps = [
MCPClient(
- name="browser-use",
+ name="playwright",
mcp_config=StdioMCPConfig(
command="npx",
args=["@playwright/mcp@latest"],
diff --git a/tests/workspace_e2b_test.py b/tests/workspace_e2b_test.py
index a3d146126..b28094d26 100644
--- a/tests/workspace_e2b_test.py
+++ b/tests/workspace_e2b_test.py
@@ -42,7 +42,7 @@ class TestE2BWorkspaceLifecycle(IsolatedAsyncioTestCase):
Verifies:
1. The workspace initializes without raising.
- 2. ``list_mcps`` returns at least the seeded MCP (browser-use).
+ 2. ``list_mcps`` returns at least the seeded MCP (playwright).
3. Each MCP exposes at least one tool via ``list_raw_tools``.
4. ``close`` (sandbox pause) completes without raising.
"""
@@ -50,7 +50,7 @@ class TestE2BWorkspaceLifecycle(IsolatedAsyncioTestCase):
api_key=_E2B_API_KEY,
default_mcps=[
MCPClient(
- name="browser-use",
+ name="playwright",
mcp_config=StdioMCPConfig(
command="npx",
args=["@playwright/mcp@latest"],
diff --git a/tests/workspace_opensandbox_test.py b/tests/workspace_opensandbox_test.py
index 893c6dfc5..5020358d3 100644
--- a/tests/workspace_opensandbox_test.py
+++ b/tests/workspace_opensandbox_test.py
@@ -38,7 +38,7 @@ class TestOpenSandboxWorkspaceLifecycle(IsolatedAsyncioTestCase):
Verifies:
1. The workspace initializes without raising.
- 2. ``list_mcps`` returns at least the seeded MCP (browser-use).
+ 2. ``list_mcps`` returns at least the seeded MCP (playwright).
3. Each MCP exposes at least one tool via ``list_raw_tools``.
4. ``close`` (sandbox pause) completes without raising.
"""
@@ -47,7 +47,7 @@ class TestOpenSandboxWorkspaceLifecycle(IsolatedAsyncioTestCase):
api_key=_API_KEY,
default_mcps=[
MCPClient(
- name="browser-use",
+ name="playwright",
mcp_config=StdioMCPConfig(
command="npx",
args=["@playwright/mcp@latest"],