2121from .._base_client import AsyncPaginator , make_request_options
2222from ..types .mcp_config_view import McpConfigView
2323from ..types .shared_params .custom_header import CustomHeader
24+ from ..types .shared_params .auth_mechanism import AuthMechanism
2425
2526__all__ = ["McpConfigsResource" , "AsyncMcpConfigsResource" ]
2627
@@ -51,6 +52,7 @@ def create(
5152 allowed_tools : SequenceNotStr [str ],
5253 endpoint : str ,
5354 name : str ,
55+ auth_mechanism : Optional [AuthMechanism ] | Omit = omit ,
5456 custom_headers : Optional [Iterable [CustomHeader ]] | Omit = omit ,
5557 description : Optional [str ] | Omit = omit ,
5658 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -77,6 +79,9 @@ def create(
7779 The first segment before '-' is used as the service name for tool routing (e.g.,
7880 'github-readonly' uses 'github' as the service name).
7981
82+ auth_mechanism: Defines how the primary credential is applied to requests proxied to the
83+ upstream.
84+
8085 custom_headers: Additional headers applied to upstream requests after the credential. At most 8
8186 entries.
8287
@@ -99,6 +104,7 @@ def create(
99104 "allowed_tools" : allowed_tools ,
100105 "endpoint" : endpoint ,
101106 "name" : name ,
107+ "auth_mechanism" : auth_mechanism ,
102108 "custom_headers" : custom_headers ,
103109 "description" : description ,
104110 },
@@ -152,6 +158,7 @@ def update(
152158 id : str ,
153159 * ,
154160 allowed_tools : Optional [SequenceNotStr [str ]] | Omit = omit ,
161+ auth_mechanism : Optional [AuthMechanism ] | Omit = omit ,
155162 custom_headers : Optional [Iterable [CustomHeader ]] | Omit = omit ,
156163 description : Optional [str ] | Omit = omit ,
157164 endpoint : Optional [str ] | Omit = omit ,
@@ -172,6 +179,9 @@ def update(
172179 allowed_tools: New glob patterns specifying which tools are allowed. Examples: ['*'] for all
173180 tools, ['github.search_*'] for specific patterns.
174181
182+ auth_mechanism: Defines how the primary credential is applied to requests proxied to the
183+ upstream.
184+
175185 custom_headers: New list of additional headers. Replaces the existing list entirely; use an
176186 empty list to clear all custom headers. At most 8 entries.
177187
@@ -198,6 +208,7 @@ def update(
198208 body = maybe_transform (
199209 {
200210 "allowed_tools" : allowed_tools ,
211+ "auth_mechanism" : auth_mechanism ,
201212 "custom_headers" : custom_headers ,
202213 "description" : description ,
203214 "endpoint" : endpoint ,
@@ -347,6 +358,7 @@ async def create(
347358 allowed_tools : SequenceNotStr [str ],
348359 endpoint : str ,
349360 name : str ,
361+ auth_mechanism : Optional [AuthMechanism ] | Omit = omit ,
350362 custom_headers : Optional [Iterable [CustomHeader ]] | Omit = omit ,
351363 description : Optional [str ] | Omit = omit ,
352364 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -373,6 +385,9 @@ async def create(
373385 The first segment before '-' is used as the service name for tool routing (e.g.,
374386 'github-readonly' uses 'github' as the service name).
375387
388+ auth_mechanism: Defines how the primary credential is applied to requests proxied to the
389+ upstream.
390+
376391 custom_headers: Additional headers applied to upstream requests after the credential. At most 8
377392 entries.
378393
@@ -395,6 +410,7 @@ async def create(
395410 "allowed_tools" : allowed_tools ,
396411 "endpoint" : endpoint ,
397412 "name" : name ,
413+ "auth_mechanism" : auth_mechanism ,
398414 "custom_headers" : custom_headers ,
399415 "description" : description ,
400416 },
@@ -448,6 +464,7 @@ async def update(
448464 id : str ,
449465 * ,
450466 allowed_tools : Optional [SequenceNotStr [str ]] | Omit = omit ,
467+ auth_mechanism : Optional [AuthMechanism ] | Omit = omit ,
451468 custom_headers : Optional [Iterable [CustomHeader ]] | Omit = omit ,
452469 description : Optional [str ] | Omit = omit ,
453470 endpoint : Optional [str ] | Omit = omit ,
@@ -468,6 +485,9 @@ async def update(
468485 allowed_tools: New glob patterns specifying which tools are allowed. Examples: ['*'] for all
469486 tools, ['github.search_*'] for specific patterns.
470487
488+ auth_mechanism: Defines how the primary credential is applied to requests proxied to the
489+ upstream.
490+
471491 custom_headers: New list of additional headers. Replaces the existing list entirely; use an
472492 empty list to clear all custom headers. At most 8 entries.
473493
@@ -494,6 +514,7 @@ async def update(
494514 body = await async_maybe_transform (
495515 {
496516 "allowed_tools" : allowed_tools ,
517+ "auth_mechanism" : auth_mechanism ,
497518 "custom_headers" : custom_headers ,
498519 "description" : description ,
499520 "endpoint" : endpoint ,
0 commit comments