Skip to content

Commit 52e9746

Browse files
authored
Merge pull request #46 from JairajJangle/patch-1
fix: removed unused import from code clients example snippet
2 parents dec9a6c + e54a6a5 commit 52e9746

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)