Skip to content

Reuse McpClientTool across different McpClient instances #934

@PederHP

Description

@PederHP

Sometimes it makes sense to cache tool definitions and not do a ListToolsAsync on every reconnect.

Adding a WithMcpClient() that creates a new instance with the provided client to McpClientTool would enable this pattern.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions