-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Hosted MCP support #731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hosted MCP support #731
Conversation
@@ -308,3 +358,13 @@ def decorator(real_func: ToolFunction[...]) -> FunctionTool: | |||
return _create_function_tool(real_func) | |||
|
|||
return decorator | |||
return decorator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure the first one should work :)
@@ -375,6 +409,34 @@ def process_model_response( | |||
computer_actions.append( | |||
ToolRunComputerAction(tool_call=output, computer_tool=computer_tool) | |||
) | |||
elif isinstance(output, McpApprovalRequest): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: inconsistent MCP casing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comes from the SDK unfortunately. I gave the feedback but it wasnt taken into account
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that's the SDK
Uh oh!
There was an error while loading. Please reload this page.