Skip to content

Commit 8a0750f

Browse files
authored
Merge pull request #41 from YingchaoX/main
Fix example: ToolCollection is not iterable, use tools.tools instead
2 parents b77ec10 + 2ae17bb commit 8a0750f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

units/en/unit1/mcp-clients.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ server_parameters = StdioServerParameters(command="uv", args=["run", "server.py"
232232
with ToolCollection.from_mcp(
233233
server_parameters, trust_remote_code=True
234234
) as tools:
235-
print("\n".join(f"{t.name}: {t.description}" for t in tools))
235+
print("\n".join(f"{tool.name}: {tool.description}" for tool in tools.tools))
236236

237237
```
238238

0 commit comments

Comments
 (0)