Skip to content

Commit fa3e145

Browse files
committed
Pass arguments as a dictionary instead of spreading them into kwargs
1 parent 6cdd97b commit fa3e145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp_python/server/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def decorator(func: Callable[..., Awaitable[Any]]):
274274
logger.debug("Registering handler for CallToolRequest")
275275

276276
async def handler(req: CallToolRequest):
277-
result = await func(req.params.name, **(req.params.arguments or {}))
277+
result = await func(req.params.name, (req.params.arguments or {}))
278278
return ServerResult(CallToolResult(toolResult=result))
279279

280280
self.request_handlers[CallToolRequest] = handler

0 commit comments

Comments
 (0)