1212from ..types .get_auth_data_response import GetAuthDataResponse
1313from ..types .get_instance_response import GetInstanceResponse
1414from ..types .get_mcp_servers_response import GetMcpServersResponse
15- from ..types .get_o_auth_url_response import GetOAuthUrlResponse
1615from ..types .list_tools_response import ListToolsResponse
1716from ..types .mcp_server_name import McpServerName
1817from ..types .status_response import StatusResponse
@@ -179,7 +178,7 @@ def create_strata_server(
179178 Create a Strata MCP server.
180179
181180 Parameters:
182- - servers: Can be 'ALL' to add all available Klavis MCP servers , a list of specific server names, or null to add no servers
181+ - servers: Can be 'ALL' to add all available Klavis integration , a list of specific server names, or null to add no servers
183182 - externalServers: Optional list of external MCP servers to validate and add
184183
185184 Parameters
@@ -247,7 +246,7 @@ def add_servers_to_strata(
247246 The strata server ID
248247
249248 servers : typing.Optional[Servers]
250- List of Klavis MCP servers to add (e.g., 'jira', 'linear'), 'ALL' to add all Klavis MCP servers , or null to add no servers.
249+ List of Klavis integration to add (e.g., 'jira', 'linear'), 'ALL' to add all Klavis integration , or null to add no servers.
251250
252251 external_servers : typing.Optional[typing.Sequence[ExternalServerRequest]]
253252 Optional list of external MCP servers to add with their URLs. Each server will be validated before being added.
@@ -296,7 +295,7 @@ def delete_servers_from_strata(
296295
297296 Parameters:
298297 - strataId: The strata server ID (path parameter)
299- - servers: Can be 'ALL' to delete all available Klavis MCP servers , a list of specific server names, or null to delete no servers
298+ - servers: Can be 'ALL' to delete all available Klavis integration , a list of specific server names, or null to delete no servers
300299 - externalServers: Query parameter - comma-separated list of external server names to delete
301300
302301 Returns separate lists for deleted Klavis servers and deleted external servers.
@@ -306,7 +305,7 @@ def delete_servers_from_strata(
306305 strata_id : str
307306
308307 servers : typing.Optional[typing.Union[DeleteServersFromStrataMcpServerStrataStrataIdServersDeleteRequestServersItem, typing.Sequence[DeleteServersFromStrataMcpServerStrataStrataIdServersDeleteRequestServersItem]]]
309- List of Klavis MCP servers to delete (e.g., 'jira', 'linear'), 'ALL' to delete all Klavis MCP servers , or null to delete no servers.
308+ List of Klavis integration to delete (e.g., 'jira', 'linear'), 'ALL' to delete all Klavis integration , or null to delete no servers.
310309
311310 external_servers : typing.Optional[str]
312311 Comma-separated list of external server names to delete
@@ -766,65 +765,27 @@ def get_instance_auth_data(
766765 _response = self ._raw_client .get_instance_auth_data (instance_id , request_options = request_options )
767766 return _response .data
768767
769- def get_oauth_url (
770- self ,
771- * ,
772- server_name : McpServerName ,
773- instance_id : str ,
774- client_id : typing .Optional [str ] = OMIT ,
775- scope : typing .Optional [str ] = OMIT ,
776- redirect_url : typing .Optional [str ] = OMIT ,
777- request_options : typing .Optional [RequestOptions ] = None ,
778- ) -> GetOAuthUrlResponse :
768+ def get_oauth_url (self , * , request_options : typing .Optional [RequestOptions ] = None ) -> None :
779769 """
780- Gets the OAuth authorization URL for a specific MCP server and instance.
781- Returns the complete OAuth URL with the instance ID as a query parameter.
782-
783770 Parameters
784771 ----------
785- server_name : McpServerName
786- The name of the target MCP server. Case-insensitive (e.g., 'google calendar', 'GOOGLE_CALENDAR', 'Google Calendar' are all valid).
787-
788- instance_id : str
789- The unique identifier for the connection instance.
790-
791- client_id : typing.Optional[str]
792- Optional client ID for white labeling. If not provided, will use default credentials.
793-
794- scope : typing.Optional[str]
795- Optional OAuth scopes to request (comma-separated string).
796-
797- redirect_url : typing.Optional[str]
798- Optional URL to redirect to after authorization completes.
799-
800772 request_options : typing.Optional[RequestOptions]
801773 Request-specific configuration.
802774
803775 Returns
804776 -------
805- GetOAuthUrlResponse
806- Successful Response
777+ None
807778
808779 Examples
809780 --------
810- from klavis import Klavis, McpServerName
781+ from klavis import Klavis
811782
812783 client = Klavis(
813784 api_key="YOUR_API_KEY",
814785 )
815- client.mcp_server.get_oauth_url(
816- server_name=McpServerName.AFFINITY,
817- instance_id="instanceId",
818- )
786+ client.mcp_server.get_oauth_url()
819787 """
820- _response = self ._raw_client .get_oauth_url (
821- server_name = server_name ,
822- instance_id = instance_id ,
823- client_id = client_id ,
824- scope = scope ,
825- redirect_url = redirect_url ,
826- request_options = request_options ,
827- )
788+ _response = self ._raw_client .get_oauth_url (request_options = request_options )
828789 return _response .data
829790
830791
@@ -991,7 +952,7 @@ async def create_strata_server(
991952 Create a Strata MCP server.
992953
993954 Parameters:
994- - servers: Can be 'ALL' to add all available Klavis MCP servers , a list of specific server names, or null to add no servers
955+ - servers: Can be 'ALL' to add all available Klavis integration , a list of specific server names, or null to add no servers
995956 - externalServers: Optional list of external MCP servers to validate and add
996957
997958 Parameters
@@ -1067,7 +1028,7 @@ async def add_servers_to_strata(
10671028 The strata server ID
10681029
10691030 servers : typing.Optional[Servers]
1070- List of Klavis MCP servers to add (e.g., 'jira', 'linear'), 'ALL' to add all Klavis MCP servers , or null to add no servers.
1031+ List of Klavis integration to add (e.g., 'jira', 'linear'), 'ALL' to add all Klavis integration , or null to add no servers.
10711032
10721033 external_servers : typing.Optional[typing.Sequence[ExternalServerRequest]]
10731034 Optional list of external MCP servers to add with their URLs. Each server will be validated before being added.
@@ -1124,7 +1085,7 @@ async def delete_servers_from_strata(
11241085
11251086 Parameters:
11261087 - strataId: The strata server ID (path parameter)
1127- - servers: Can be 'ALL' to delete all available Klavis MCP servers , a list of specific server names, or null to delete no servers
1088+ - servers: Can be 'ALL' to delete all available Klavis integration , a list of specific server names, or null to delete no servers
11281089 - externalServers: Query parameter - comma-separated list of external server names to delete
11291090
11301091 Returns separate lists for deleted Klavis servers and deleted external servers.
@@ -1134,7 +1095,7 @@ async def delete_servers_from_strata(
11341095 strata_id : str
11351096
11361097 servers : typing.Optional[typing.Union[DeleteServersFromStrataMcpServerStrataStrataIdServersDeleteRequestServersItem, typing.Sequence[DeleteServersFromStrataMcpServerStrataStrataIdServersDeleteRequestServersItem]]]
1137- List of Klavis MCP servers to delete (e.g., 'jira', 'linear'), 'ALL' to delete all Klavis MCP servers , or null to delete no servers.
1098+ List of Klavis integration to delete (e.g., 'jira', 'linear'), 'ALL' to delete all Klavis integration , or null to delete no servers.
11381099
11391100 external_servers : typing.Optional[str]
11401101 Comma-separated list of external server names to delete
@@ -1692,71 +1653,33 @@ async def main() -> None:
16921653 _response = await self ._raw_client .get_instance_auth_data (instance_id , request_options = request_options )
16931654 return _response .data
16941655
1695- async def get_oauth_url (
1696- self ,
1697- * ,
1698- server_name : McpServerName ,
1699- instance_id : str ,
1700- client_id : typing .Optional [str ] = OMIT ,
1701- scope : typing .Optional [str ] = OMIT ,
1702- redirect_url : typing .Optional [str ] = OMIT ,
1703- request_options : typing .Optional [RequestOptions ] = None ,
1704- ) -> GetOAuthUrlResponse :
1656+ async def get_oauth_url (self , * , request_options : typing .Optional [RequestOptions ] = None ) -> None :
17051657 """
1706- Gets the OAuth authorization URL for a specific MCP server and instance.
1707- Returns the complete OAuth URL with the instance ID as a query parameter.
1708-
17091658 Parameters
17101659 ----------
1711- server_name : McpServerName
1712- The name of the target MCP server. Case-insensitive (e.g., 'google calendar', 'GOOGLE_CALENDAR', 'Google Calendar' are all valid).
1713-
1714- instance_id : str
1715- The unique identifier for the connection instance.
1716-
1717- client_id : typing.Optional[str]
1718- Optional client ID for white labeling. If not provided, will use default credentials.
1719-
1720- scope : typing.Optional[str]
1721- Optional OAuth scopes to request (comma-separated string).
1722-
1723- redirect_url : typing.Optional[str]
1724- Optional URL to redirect to after authorization completes.
1725-
17261660 request_options : typing.Optional[RequestOptions]
17271661 Request-specific configuration.
17281662
17291663 Returns
17301664 -------
1731- GetOAuthUrlResponse
1732- Successful Response
1665+ None
17331666
17341667 Examples
17351668 --------
17361669 import asyncio
17371670
1738- from klavis import AsyncKlavis, McpServerName
1671+ from klavis import AsyncKlavis
17391672
17401673 client = AsyncKlavis(
17411674 api_key="YOUR_API_KEY",
17421675 )
17431676
17441677
17451678 async def main() -> None:
1746- await client.mcp_server.get_oauth_url(
1747- server_name=McpServerName.AFFINITY,
1748- instance_id="instanceId",
1749- )
1679+ await client.mcp_server.get_oauth_url()
17501680
17511681
17521682 asyncio.run(main())
17531683 """
1754- _response = await self ._raw_client .get_oauth_url (
1755- server_name = server_name ,
1756- instance_id = instance_id ,
1757- client_id = client_id ,
1758- scope = scope ,
1759- redirect_url = redirect_url ,
1760- request_options = request_options ,
1761- )
1684+ _response = await self ._raw_client .get_oauth_url (request_options = request_options )
17621685 return _response .data
0 commit comments