Update content according to latest spec (#513)
* Update content according to latest spec * Add Title to a bunch of types * Add _meta to lots of types * Address feedback, more cleanup, fix NAOT test failure
This commit is contained in:
parent
28d65470f4
commit
2bcff315f8
2 changed files with 1700 additions and 853 deletions
|
|
@ -504,7 +504,7 @@ public static partial class McpServerBuilderExtensions
|
|||
/// This method is typically paired with <see cref="WithListToolsHandler"/> to provide a complete tools implementation,
|
||||
/// where <see cref="WithListToolsHandler"/> advertises available tools and this handler executes them.
|
||||
/// </remarks>
|
||||
public static IMcpServerBuilder WithCallToolHandler(this IMcpServerBuilder builder, Func<RequestContext<CallToolRequestParams>, CancellationToken, ValueTask<CallToolResponse>> handler)
|
||||
public static IMcpServerBuilder WithCallToolHandler(this IMcpServerBuilder builder, Func<RequestContext<CallToolRequestParams>, CancellationToken, ValueTask<CallToolResult>> handler)
|
||||
{
|
||||
Throw.IfNull(builder);
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ public sealed class McpServerHandlers
|
|||
/// This handler is invoked when a client makes a call to a tool that isn't found in the <see cref="McpServerTool"/> collection.
|
||||
/// The handler should implement logic to execute the requested tool and return appropriate results.
|
||||
/// </remarks>
|
||||
public Func<RequestContext<CallToolRequestParams>, CancellationToken, ValueTask<CallToolResponse>>? CallToolHandler { get; set; }
|
||||
public Func<RequestContext<CallToolRequestParams>, CancellationToken, ValueTask<CallToolResult>>? CallToolHandler { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the handler for <see cref="RequestMethods.PromptsList"/> requests.
|
||||
|
|
|
|||
Loading…
Reference in a new issue