Azure-Samples / Azure-Samples/semantic-kernel-workshop
MCP Server
- Vorherrschende Sprache
- Jupyter Notebook
- Sterne
- 149
- Forks
- 86
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- jupyter-notebook, python
- Bereich
- ai, backend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100