You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/migration.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,38 @@ async with http_client:
52
52
53
53
The `headers`, `timeout`, `sse_read_timeout`, and `auth` parameters have been removed from `StreamableHTTPTransport`. Configure these on the `httpx.AsyncClient` instead (see example above).
54
54
55
+
### `Content` type alias removed
56
+
57
+
The deprecated `Content` type alias has been removed. Use `ContentBlock` directly instead.
58
+
59
+
**Before (v1):**
60
+
61
+
```python
62
+
from mcp.types import Content
63
+
```
64
+
65
+
**After (v2):**
66
+
67
+
```python
68
+
from mcp.types import ContentBlock
69
+
```
70
+
71
+
### `args` parameter removed from `ClientSessionGroup.call_tool()`
72
+
73
+
The deprecated `args` parameter has been removed from `ClientSessionGroup.call_tool()`. Use `arguments` instead.
74
+
75
+
**Before (v1):**
76
+
77
+
```python
78
+
result =await session_group.call_tool("my_tool", args={"key": "value"})
79
+
```
80
+
81
+
**After (v2):**
82
+
83
+
```python
84
+
result =await session_group.call_tool("my_tool", arguments={"key": "value"})
0 commit comments