Skip to content

Commit d36853a

Browse files
zzstoatzzclaude
andauthored
Fix pydantic-ai deprecation warning: mcp_servers -> toolsets (#1206)
Updates the pydantic-ai Agent instantiation to use the new 'toolsets' parameter instead of the deprecated 'mcp_servers' parameter. This change is internal only - Marvin's public API remains unchanged. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent ed50ee6 commit d36853a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/marvin/agents/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ async def get_agentlet(
206206
agent_kwargs["tools"] = combined_tools
207207

208208
if active_mcp_servers:
209-
agent_kwargs["mcp_servers"] = active_mcp_servers
209+
agent_kwargs["toolsets"] = active_mcp_servers
210210

211211
agentlet = pydantic_ai.Agent[Any, Any](**agent_kwargs)
212212

0 commit comments

Comments
 (0)