Skip to content

Commit 18c0363

Browse files
committed
Update tiny-agents example
1 parent fda25f2 commit 18c0363

File tree

3 files changed

+21
-31
lines changed

3 files changed

+21
-31
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
}

units/en/unit2/tiny-agents.mdx

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,11 @@ The JSON file will look like this:
7676
"servers": [
7777
{
7878
"type": "stdio",
79-
"config": {
80-
"command": "npx",
81-
"args": [
82-
"mcp-remote",
83-
"http://localhost:7860/gradio_api/mcp/sse" // This is the MCP Server we created in the previous section
84-
]
85-
}
79+
"command": "npx",
80+
"args": [
81+
"mcp-remote",
82+
"http://localhost:7860/gradio_api/mcp/sse" // This is the MCP Server we created in the previous section
83+
]
8684
}
8785
]
8886
}
@@ -114,13 +112,11 @@ The JSON file will look like this:
114112
"servers": [
115113
{
116114
"type": "stdio",
117-
"config": {
118-
"command": "npx",
119-
"args": [
120-
"mcp-remote",
121-
"http://localhost:7860/gradio_api/mcp/sse"
122-
]
123-
}
115+
"command": "npx",
116+
"args": [
117+
"mcp-remote",
118+
"http://localhost:7860/gradio_api/mcp/sse"
119+
]
124120
}
125121
]
126122
}
@@ -154,13 +150,11 @@ We could also use an open source model running locally with Tiny Agents. If we s
154150
"servers": [
155151
{
156152
"type": "stdio",
157-
"config": {
158-
"command": "npx",
159-
"args": [
160-
"mcp-remote",
161-
"http://localhost:1234/v1/mcp/sse"
162-
]
163-
}
153+
"command": "npx",
154+
"args": [
155+
"mcp-remote",
156+
"http://localhost:1234/v1/mcp/sse"
157+
]
164158
}
165159
]
166160
}

units/en/unit3_1/mcp-client.mdx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,10 @@ Let's continue with the agent creation:
6666
servers=[
6767
{
6868
"type": "stdio",
69-
"config": {
70-
"command": "python",
71-
"args": ["mcp_server.py"],
72-
"cwd": ".",
73-
"env": {"HF_TOKEN": HF_TOKEN} if HF_TOKEN else {},
74-
},
69+
"command": "python",
70+
"args": ["mcp_server.py"],
71+
"cwd": ".",
72+
"env": {"HF_TOKEN": HF_TOKEN} if HF_TOKEN else {},
7573
}
7674
],
7775
)

0 commit comments

Comments
 (0)