Skip to content

Commit 446b269

Browse files
committed
Release 2.5.0
1 parent f0237d6 commit 446b269

13 files changed

+60
-329
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "klavis"
33

44
[tool.poetry]
55
name = "klavis"
6-
version = "2.4.0"
6+
version = "2.5.0"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 7 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ client.mcp_server.list_tools(
217217
Create a Strata MCP server.
218218

219219
Parameters:
220-
- servers: Can be 'ALL' to add all available Klavis MCP servers, a list of specific server names, or null to add no servers
220+
- servers: Can be 'ALL' to add all available Klavis integration, a list of specific server names, or null to add no servers
221221
- externalServers: Optional list of external MCP servers to validate and add
222222
</dd>
223223
</dl>
@@ -364,7 +364,7 @@ client.mcp_server.add_servers_to_strata(
364364
<dl>
365365
<dd>
366366

367-
**servers:** `typing.Optional[Servers]` — List of Klavis MCP servers to add (e.g., 'jira', 'linear'), 'ALL' to add all Klavis MCP servers, or null to add no servers.
367+
**servers:** `typing.Optional[Servers]` — List of Klavis integration to add (e.g., 'jira', 'linear'), 'ALL' to add all Klavis integration, or null to add no servers.
368368

369369
</dd>
370370
</dl>
@@ -410,7 +410,7 @@ Note: After deleting servers, you need to reconnect the MCP server so that list_
410410

411411
Parameters:
412412
- strataId: The strata server ID (path parameter)
413-
- servers: Can be 'ALL' to delete all available Klavis MCP servers, a list of specific server names, or null to delete no servers
413+
- servers: Can be 'ALL' to delete all available Klavis integration, a list of specific server names, or null to delete no servers
414414
- externalServers: Query parameter - comma-separated list of external server names to delete
415415

416416
Returns separate lists for deleted Klavis servers and deleted external servers.
@@ -466,7 +466,7 @@ client.mcp_server.delete_servers_from_strata(
466466
DeleteServersFromStrataMcpServerStrataStrataIdServersDeleteRequestServersItem
467467
],
468468
]
469-
]` — List of Klavis MCP servers to delete (e.g., 'jira', 'linear'), 'ALL' to delete all Klavis MCP servers, or null to delete no servers.
469+
]` — List of Klavis integration to delete (e.g., 'jira', 'linear'), 'ALL' to delete all Klavis integration, or null to delete no servers.
470470

471471
</dd>
472472
</dl>
@@ -1343,25 +1343,10 @@ client.mcp_server.get_instance_auth_data(
13431343
</dl>
13441344
</details>
13451345

1346-
<details><summary><code>client.mcp_server.<a href="src/klavis/mcp_server/client.py">get_oauth_url</a>(...)</code></summary>
1346+
<details><summary><code>client.mcp_server.<a href="src/klavis/mcp_server/client.py">get_oauth_url</a>()</code></summary>
13471347
<dl>
13481348
<dd>
13491349

1350-
#### 📝 Description
1351-
1352-
<dl>
1353-
<dd>
1354-
1355-
<dl>
1356-
<dd>
1357-
1358-
Gets the OAuth authorization URL for a specific MCP server and instance.
1359-
Returns the complete OAuth URL with the instance ID as a query parameter.
1360-
</dd>
1361-
</dl>
1362-
</dd>
1363-
</dl>
1364-
13651350
#### 🔌 Usage
13661351

13671352
<dl>
@@ -1371,15 +1356,12 @@ Returns the complete OAuth URL with the instance ID as a query parameter.
13711356
<dd>
13721357

13731358
```python
1374-
from klavis import Klavis, McpServerName
1359+
from klavis import Klavis
13751360

13761361
client = Klavis(
13771362
api_key="YOUR_API_KEY",
13781363
)
1379-
client.mcp_server.get_oauth_url(
1380-
server_name=McpServerName.AFFINITY,
1381-
instance_id="instanceId",
1382-
)
1364+
client.mcp_server.get_oauth_url()
13831365

13841366
```
13851367
</dd>
@@ -1395,46 +1377,6 @@ client.mcp_server.get_oauth_url(
13951377
<dl>
13961378
<dd>
13971379

1398-
**server_name:** `McpServerName` — The name of the target MCP server. Case-insensitive (e.g., 'google calendar', 'GOOGLE_CALENDAR', 'Google Calendar' are all valid).
1399-
1400-
</dd>
1401-
</dl>
1402-
1403-
<dl>
1404-
<dd>
1405-
1406-
**instance_id:** `str` — The unique identifier for the connection instance.
1407-
1408-
</dd>
1409-
</dl>
1410-
1411-
<dl>
1412-
<dd>
1413-
1414-
**client_id:** `typing.Optional[str]` — Optional client ID for white labeling. If not provided, will use default credentials.
1415-
1416-
</dd>
1417-
</dl>
1418-
1419-
<dl>
1420-
<dd>
1421-
1422-
**scope:** `typing.Optional[str]` — Optional OAuth scopes to request (comma-separated string).
1423-
1424-
</dd>
1425-
</dl>
1426-
1427-
<dl>
1428-
<dd>
1429-
1430-
**redirect_url:** `typing.Optional[str]` — Optional URL to redirect to after authorization completes.
1431-
1432-
</dd>
1433-
</dl>
1434-
1435-
<dl>
1436-
<dd>
1437-
14381380
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
14391381

14401382
</dd>

src/klavis/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
GetAuthDataResponse,
1818
GetInstanceResponse,
1919
GetMcpServersResponse,
20-
GetOAuthUrlResponse,
2120
GetServerInstancesResponse,
2221
HttpValidationError,
2322
ListToolsResponse,
@@ -62,7 +61,6 @@
6261
"GetAuthDataResponse",
6362
"GetInstanceResponse",
6463
"GetMcpServersResponse",
65-
"GetOAuthUrlResponse",
6664
"GetServerInstancesResponse",
6765
"HttpValidationError",
6866
"Klavis",

src/klavis/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ def __init__(
2020

2121
def get_headers(self) -> typing.Dict[str, str]:
2222
headers: typing.Dict[str, str] = {
23-
"User-Agent": "klavis/2.4.0",
23+
"User-Agent": "klavis/2.5.0",
2424
"X-Fern-Language": "Python",
2525
"X-Fern-SDK-Name": "klavis",
26-
"X-Fern-SDK-Version": "2.4.0",
26+
"X-Fern-SDK-Version": "2.5.0",
2727
}
2828
api_key = self._get_api_key()
2929
if api_key is not None:

src/klavis/mcp_server/client.py

Lines changed: 18 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from ..types.get_auth_data_response import GetAuthDataResponse
1313
from ..types.get_instance_response import GetInstanceResponse
1414
from ..types.get_mcp_servers_response import GetMcpServersResponse
15-
from ..types.get_o_auth_url_response import GetOAuthUrlResponse
1615
from ..types.list_tools_response import ListToolsResponse
1716
from ..types.mcp_server_name import McpServerName
1817
from ..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

Comments
 (0)