-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
i use c# server request a sample to owl client, and get an Exception
ModelContextProtocol.Server.McpServerTool[1433779783]
"sample_ll_mfor_translation" threw an unhandled exception.
System.InvalidOperationException: Client does not support sampling.
at ModelContextProtocol.Server.McpServerExtensions.ThrowIfSamplingUnsupported(IMcpServer server)
at ModelContextProtocol.Server.McpServerExtensions.SampleAsync(IMcpServer server, CreateMessageRequestParams request, CancellationToken cancellationToken)
at WordMCPro.tools.document_tools.sampleLLMforTranslation(IMcpServer server, String content) in D:\dndx\intern\Csharp_code\WordMCPro\WordMCPro\tools\document_tools.cs:line 226
at Microsoft.Extensions.AI.AIFunctionFactory.ReflectionAIFunctionDescriptor.<>c__DisplayClass35_1.<b__9>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.Extensions.AI.AIFunctionFactory.ReflectionAIFunction.InvokeCoreAsync(AIFunctionArguments arguments, CancellationToken cancellationToken)
at Microsoft.Extensions.AI.AIFunctionFactory.ReflectionAIFunction.InvokeCoreAsync(AIFunctionArguments arguments, CancellationToken cancellationToken)
at ModelContextProtocol.Server.AIFunctionMcpServerTool.InvokeAsync(RequestContext`1 request, CancellationToken cancellationToken)