Skip to content

MCP Server: Tool registration without a real method #335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
IvanMurzak opened this issue Apr 20, 2025 · 0 comments
Open

MCP Server: Tool registration without a real method #335

IvanMurzak opened this issue Apr 20, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@IvanMurzak
Copy link

Issue (at MCP Server)

The MCP server doesn't have method to link it into Tools collection. Instead expected to handle the tool manually in McpServerHandlers.CallToolHandler. Just please let to register the new tool without real method.

The issue is fully described right here.

Solution (for MCP Server)

To have IMcpServer.NotifyTooListChanged method. It would request list of tools using the handler that were added earlier using .WithListToolsHandler.

public class McpServer : IMcpServer
{
    public void NotifyToolListChanged()
    {
        // 1. request list of tools from handler
        // 2. notify Client about changes
    }
    // ...
}
public interface IMcpServer
{
    void NotifyToolListChanged();
    // ...
}
@IvanMurzak IvanMurzak added the enhancement New feature or request label Apr 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant