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

MCP Server

Abierto
#17 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Jupyter Notebook
Estrellas
149
Forks
86
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start by running 3.1-sk-with-mcp.ipynb with a question and inspect the MCP function invocation around get_subscription_detail(params: SubscriptionIdParam). Trace why params is not passed to ContosoMCP-get_subscription_detail; the issue is done when the notebook invokes the function without the reported parameter error.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
jupyter-notebook, python
Área
ai, backend
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.