Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Can McpTools be instance methods? #98

@jtschuster

Description

@jtschuster

Is there a technical reason that the tools have to be static? I had some instance methods as McpTools in order to use a logger in them, but they were broken by https://github.com/PederHP/mcpdotnet/pull/94/files#diff-1e87fd46aea8e66c8ee4a1e0a60ba98600a6f48c1cff86ee4cd6a87088b0cba7R57

If they need to be static for a particular reason, is there a good workaround to use logging from an ApplicationBuilder inside the tools?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions