Skip to content

Commit f93f51a

Browse files
authored
fix(agent.json): move server command and args to top level to avoid KeyError
The MCP client expected `command` and `args` as top-level fields in each server definition, but our agent.json incorrectly nested them under `config`. This caused a KeyError: 'command' when loading tools. Updated agent.json so that `command` and `args` are defined alongside `type` instead of inside a `config` block. With this change, tiny-agents can correctly launch the stdio server using `npx @playwright/mcp@latest`.
1 parent 2ce8294 commit f93f51a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

units/en/unit1/mcp-clients.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,8 @@ Now, let's create an agent configuration file `agent.json`.
272272
"servers": [
273273
{
274274
"type": "stdio",
275-
"config": {
276-
"command": "npx",
277-
"args": ["@playwright/mcp@latest"]
278-
}
275+
"command": "npx",
276+
"args": ["@playwright/mcp@latest"]
279277
}
280278
]
281279
}

0 commit comments

Comments
 (0)