Skip to content

Tool filter method #819

@Kyu

Description

@Kyu

Is your feature request related to a problem? Please describe.
This feature is related to the use case where one only needs access to certain tools in a mcp session.
Related issue where me and a mcp author discuss: kooshi/SharpToolsMCP#13 (comment)

Describe the solution you'd like
Would like the WithToolsFromAssembly signature/impl to look like

public static IMcpServerBuilder WithToolsFromAssembly(
this IMcpServerBuilder builder,
Assembly? toolAssembly = null,
JsonSerializerOptions? serializerOptions = null,
SomeFilterObject? filter = null)

Describe alternatives you've considered
We could just filter manually, but we figured it might be a useful feature for all

Metadata

Metadata

Assignees

No one assigned

    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