Skip to content

add MCPToolset#5138

Merged
longcw merged 10 commits intomainfrom
longc/improve-toolsets
Mar 23, 2026
Merged

add MCPToolset#5138
longcw merged 10 commits intomainfrom
longc/improve-toolsets

Conversation

@longcw
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

@longcw longcw merged commit 7e0ed1e into main Mar 23, 2026
22 checks passed
@longcw longcw deleted the longc/improve-toolsets branch March 23, 2026 14:46
russellmartin-livekit pushed a commit that referenced this pull request Apr 13, 2026
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