docs: fix example to use correct StreamableHttpServerInfo class in MCPToolset documentation (#12247)

This commit is contained in:
bogdankostic
2026-08-05 13:08:32 +02:00
committed by GitHub
parent 1cd96fcd95
commit 1ff7799ce2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ toolset = MCPToolset(
```python
from haystack_integrations.tools.mcp import MCPToolset, StreamableHttpServerInfo
server_info = SSEServerInfo(url="http://localhost:8000/mcp")
server_info = StreamableHttpServerInfo(url="http://localhost:8000/mcp")
toolset = MCPToolset(server_info=server_info, tool_names=["get_current_time"])
```
@@ -71,7 +71,7 @@ toolset = MCPToolset(
```python
from haystack_integrations.tools.mcp import MCPToolset, StreamableHttpServerInfo
server_info = SSEServerInfo(url="http://localhost:8000/mcp")
server_info = StreamableHttpServerInfo(url="http://localhost:8000/mcp")
toolset = MCPToolset(server_info=server_info, tool_names=["get_current_time"])
```