fix mcp error not input (#22505)
Signed-off-by: kenwoodjw <blackxin55+@gmail.com>
This commit is contained in:
parent
3aecceff27
commit
3587bd4040
1 changed files with 1 additions and 3 deletions
|
|
@ -148,9 +148,7 @@ class MCPServerStreamableHTTPRequestHandler:
|
|||
if not self.end_user:
|
||||
raise ValueError("User not found")
|
||||
request = cast(types.CallToolRequest, self.request.root)
|
||||
args = request.params.arguments
|
||||
if not args:
|
||||
raise ValueError("No arguments provided")
|
||||
args = request.params.arguments or {}
|
||||
if self.app.mode in {AppMode.WORKFLOW.value}:
|
||||
args = {"inputs": args}
|
||||
elif self.app.mode in {AppMode.COMPLETION.value}:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue