diff --git a/mcp_python/server/__init__.py b/mcp_python/server/__init__.py index 38600a6ce..71b373d63 100644 --- a/mcp_python/server/__init__.py +++ b/mcp_python/server/__init__.py @@ -274,7 +274,7 @@ def decorator(func: Callable[..., Awaitable[Any]]): logger.debug("Registering handler for CallToolRequest") async def handler(req: CallToolRequest): - result = await func(req.params.name, **(req.params.arguments or {})) + result = await func(req.params.name, (req.params.arguments or {})) return ServerResult(CallToolResult(toolResult=result)) self.request_handlers[CallToolRequest] = handler