@@ -56,6 +56,7 @@ def invoke_tool(
5656 * ,
5757 kwargs : Dict [str , Union [bool , float , str , Iterable [object ], object , None ]],
5858 tool_name : str ,
59+ authorization : str | Omit = omit ,
5960 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6061 # The extra values given here take precedence over values defined on the client or passed to this method.
6162 extra_headers : Headers | None = None ,
@@ -71,6 +72,8 @@ def invoke_tool(
7172
7273 tool_name: The name of the tool to invoke.
7374
75+ authorization: (Optional) OAuth access token for authenticating with the MCP server.
76+
7477 extra_headers: Send extra headers
7578
7679 extra_query: Add additional query parameters to the request
@@ -85,6 +88,7 @@ def invoke_tool(
8588 {
8689 "kwargs" : kwargs ,
8790 "tool_name" : tool_name ,
91+ "authorization" : authorization ,
8892 },
8993 tool_runtime_invoke_tool_params .ToolRuntimeInvokeToolParams ,
9094 ),
@@ -97,6 +101,7 @@ def invoke_tool(
97101 def list_tools (
98102 self ,
99103 * ,
104+ authorization : str | Omit = omit ,
100105 mcp_endpoint : tool_runtime_list_tools_params .McpEndpoint | Omit = omit ,
101106 tool_group_id : str | Omit = omit ,
102107 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -110,6 +115,8 @@ def list_tools(
110115 List all tools in the runtime.
111116
112117 Args:
118+ authorization: (Optional) OAuth access token for authenticating with the MCP server.
119+
113120 mcp_endpoint: The MCP endpoint to use for the tool group.
114121
115122 tool_group_id: The ID of the tool group to list tools for.
@@ -131,6 +138,7 @@ def list_tools(
131138 timeout = timeout ,
132139 query = maybe_transform (
133140 {
141+ "authorization" : authorization ,
134142 "mcp_endpoint" : mcp_endpoint ,
135143 "tool_group_id" : tool_group_id ,
136144 },
@@ -167,6 +175,7 @@ async def invoke_tool(
167175 * ,
168176 kwargs : Dict [str , Union [bool , float , str , Iterable [object ], object , None ]],
169177 tool_name : str ,
178+ authorization : str | Omit = omit ,
170179 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
171180 # The extra values given here take precedence over values defined on the client or passed to this method.
172181 extra_headers : Headers | None = None ,
@@ -182,6 +191,8 @@ async def invoke_tool(
182191
183192 tool_name: The name of the tool to invoke.
184193
194+ authorization: (Optional) OAuth access token for authenticating with the MCP server.
195+
185196 extra_headers: Send extra headers
186197
187198 extra_query: Add additional query parameters to the request
@@ -196,6 +207,7 @@ async def invoke_tool(
196207 {
197208 "kwargs" : kwargs ,
198209 "tool_name" : tool_name ,
210+ "authorization" : authorization ,
199211 },
200212 tool_runtime_invoke_tool_params .ToolRuntimeInvokeToolParams ,
201213 ),
@@ -208,6 +220,7 @@ async def invoke_tool(
208220 async def list_tools (
209221 self ,
210222 * ,
223+ authorization : str | Omit = omit ,
211224 mcp_endpoint : tool_runtime_list_tools_params .McpEndpoint | Omit = omit ,
212225 tool_group_id : str | Omit = omit ,
213226 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -221,6 +234,8 @@ async def list_tools(
221234 List all tools in the runtime.
222235
223236 Args:
237+ authorization: (Optional) OAuth access token for authenticating with the MCP server.
238+
224239 mcp_endpoint: The MCP endpoint to use for the tool group.
225240
226241 tool_group_id: The ID of the tool group to list tools for.
@@ -242,6 +257,7 @@ async def list_tools(
242257 timeout = timeout ,
243258 query = await async_maybe_transform (
244259 {
260+ "authorization" : authorization ,
245261 "mcp_endpoint" : mcp_endpoint ,
246262 "tool_group_id" : tool_group_id ,
247263 },
0 commit comments