Azure-Samples / Azure-Samples/semantic-kernel-workshop

MCP Server

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
149
Forks
86
PR merge metrics
No merged PRs in 30d

Description

When running the 3.1-sk-with-mcp.ipynb whatever is entered as question, the MCP server returns following error:

Function failed. Error: Parameter params is required but not provided in the arguments.
Error invoking function ContosoMCP-get_subscription_detail: Parameter params is required but not provided in the arguments..
Traceback (most recent call last):
File "c:\Trainwork\semantic-kernel-workshop\.venv\Lib\site-packages\semantic_kernel\kernel.py", line 423, in _inner_auto_function_invoke_handler
result = await context.function.invoke(context.kernel, context.arguments)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Trainwork\semantic-kernel-workshop\.venv\Lib\site-packages\semantic_kernel\functions\kernel_function.py", line 258, in invoke
raise e
File "c:\Trainwork\semantic-kernel-workshop\.venv\Lib\site-packages\semantic_kernel\functions\kernel_function.py", line 250, in invoke
await stack(function_context)
File "c:\Trainwork\semantic-kernel-workshop\.venv\Lib\site-packages\semantic_kernel\functions\kernel_function_from_method.py", line 102, in _invoke_internal
function_arguments = self.gather_function_parameters(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Trainwork\semantic-kernel-workshop\.venv\Lib\site-packages\semantic_kernel\functions\kernel_function_from_method.py", line 188, in gather_function_parameters
raise FunctionExecutionException(
semantic_kernel.exceptions.function_exceptions.FunctionExecutionException: Parameter params is required but not provided in the arguments.

It seems as the def get_subscription_detail(params: SubscriptionIdParam) -> SubscriptionDetail: doesn't get an argument.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.