Skip to content

Commit e54a6a5

Browse files
authored
fix: removed unused import from code cleints example snippet
The import `CodeAgent` isn't used in the first snippet in the "Code Clients" section.
1 parent 8a0750f commit e54a6a5

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
@@ -224,7 +224,7 @@ You can also use the MCP Client in within code so that the tools are available t
224224
First, let's explore our weather server from the previous page. In `smolagents`, we can use the `ToolCollection` class to automatically discover and register tools from an MCP server. This is done by passing the `StdioServerParameters` or `SSEServerParameters` to the `ToolCollection.from_mcp` method. We can then print the tools to the console.
225225

226226
```python
227-
from smolagents import ToolCollection, CodeAgent
227+
from smolagents import ToolCollection
228228
from mcp.client.stdio import StdioServerParameters
229229

230230
server_parameters = StdioServerParameters(command="uv", args=["run", "server.py"])

0 commit comments

Comments
 (0)