Skip to content

add MCPToolset#5138

Open
longcw wants to merge 10 commits intomainfrom
longc/improve-toolsets
Open

add MCPToolset#5138
longcw wants to merge 10 commits intomainfrom
longc/improve-toolsets

Conversation

@longcw
Copy link
Contributor

@longcw longcw commented Mar 18, 2026

No description provided.

@chenghao-mou chenghao-mou requested a review from a team March 18, 2026 11:24
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

Copy link
Member

@chenghao-mou chenghao-mou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! Tested locally with an MCP server.

"""
toolsets = [tool for tool in self.tools if isinstance(tool, Toolset)]
if toolsets:
await asyncio.gather(*(toolset.aclose() for toolset in toolsets))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add return_exceptions=True for both gather calls here? I guess fail fast is good too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants