Skip to content

Commit 0a0b334

Browse files
Python: Use keyword arg for McpError construction in MCP call path
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 78abcca commit 0a0b334

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • python/semantic_kernel/connectors

python/semantic_kernel/connectors/mcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ async def _call_tool(
10621062
function_name, arguments = args[0], args[1]
10631063
if function_name not in exposed_names:
10641064
raise McpError(
1065-
types.ErrorData(
1065+
error=types.ErrorData(
10661066
code=types.METHOD_NOT_FOUND,
10671067
message=f"Unknown tool: {function_name}",
10681068
)

0 commit comments

Comments
 (0)