Skip to content

Expose server info for McpClientTool's returned by Tools.GetFromMcpServers #289

@comradealpha

Description

@comradealpha

Hi, first of all - thanks for the great library!

I'm using the Tools.GetFromMcpServers() method to generate tools from a config file. The resulting array of McpClientTool instances works well for function invocation.

However, I found no way to determine which server a given tool was generated from. While the associated server name exists in the EndpointName property of the tool's client, it can't be accessed due to client encapsulation.

For my use case (and potentially for others), it would be helpful to know which server a given McpClientTool came from.

Would you consider exposing the server metadata (ServerInfo and/or EndpointName) in the public contract of McpClientTool, or perhaps providing another way to associate a tool with its originating server?

Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions