From 9bd8b51f3deb0a22ebabbaedf9100727e234e411 Mon Sep 17 00:00:00 2001 From: Wauplin Date: Mon, 7 Jul 2025 16:00:48 +0200 Subject: [PATCH] Update tiny-agents example --- python-tiny-agents.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/python-tiny-agents.md b/python-tiny-agents.md index 1ff51f86e7..fdaa049097 100644 --- a/python-tiny-agents.md +++ b/python-tiny-agents.md @@ -97,10 +97,8 @@ In this example, a "stdio" MCP server is configured. This type of server runs as "servers": [ { "type": "stdio", - "config": { - "command": "npx", - "args": ["@playwright/mcp@latest"] - } + "command": "npx", + "args": ["@playwright/mcp@latest"] } ] } @@ -315,7 +313,7 @@ class Agent(MCPClient): async def load_tools(self) -> None: # Connect to all configured MCP servers and register their tools for cfg in self._servers_cfg: - await self.add_mcp_server(cfg["type"], **cfg["config"]) + await self.add_mcp_server(**cfg) ```