-
Notifications
You must be signed in to change notification settings - Fork 520
Description
Is your feature request related to a problem? Please describe.
We're trying to create an MCP Server Tool on an asp.net server using this SDK.
As a part of this- we'd like a way to support dynamic descriptions of an mcp tool based on a route variable in the path.
Example-
Request path - /{routeVariable1}/mcp
For the tool list call- we'd like to have a tool description generated based on the value of the routeVariable1. A method call like GetToolDescription(IHttpContext context) => "This is the description for {context.GetRouteVariable["routeVariable1"]} tool.
Sample request/responses
Example 1
/routevariable1/mcp/tools/list
--> returns "This is the description for routevariable1 tool.
Example 2
/routevariable2/mcp/tools/list
--> returns "This is the description for routevariable2 tool.
Is the above pattern supported by the C# MCP SDK?
If yes, could you point me to a sample of how we could implement this?