Skip to content

Commit 2d36eed

Browse files
authored
Update tiny-agents example (#2927)
1 parent fd9d0ce commit 2d36eed

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

python-tiny-agents.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,8 @@ In this example, a "stdio" MCP server is configured. This type of server runs as
9797
"servers": [
9898
{
9999
"type": "stdio",
100-
"config": {
101-
"command": "npx",
102-
"args": ["@playwright/mcp@latest"]
103-
}
100+
"command": "npx",
101+
"args": ["@playwright/mcp@latest"]
104102
}
105103
]
106104
}
@@ -315,7 +313,7 @@ class Agent(MCPClient):
315313
async def load_tools(self) -> None:
316314
# Connect to all configured MCP servers and register their tools
317315
for cfg in self._servers_cfg:
318-
await self.add_mcp_server(cfg["type"], **cfg["config"])
316+
await self.add_mcp_server(**cfg)
319317

320318
```
321319

0 commit comments

Comments
 (0)