Skip to content

Commit 039c8b5

Browse files
Release 2.9.0
1 parent d63dcd2 commit 039c8b5

File tree

12 files changed

+196
-196
lines changed

12 files changed

+196
-196
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.8.0"
6+
version = "2.9.0"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ client = Klavis(
339339
api_key="YOUR_API_KEY",
340340
)
341341
client.mcp_server.add_servers_to_strata(
342-
strata_id="strata_id",
342+
strata_id="strataId",
343343
)
344344

345345
```
@@ -409,7 +409,7 @@ Delete servers from an existing Strata MCP server.
409409
Note: After deleting servers, you need to reconnect the MCP server so that list_tool can be updated to reflect the removed servers.
410410

411411
Parameters:
412-
- strata_id: The strata server ID (path parameter)
412+
- strataId: The strata server ID (path parameter)
413413
- 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

@@ -434,7 +434,7 @@ client = Klavis(
434434
api_key="YOUR_API_KEY",
435435
)
436436
client.mcp_server.delete_servers_from_strata(
437-
strata_id="strata_id",
437+
strata_id="strataId",
438438
)
439439

440440
```
@@ -530,7 +530,7 @@ client = Klavis(
530530
api_key="YOUR_API_KEY",
531531
)
532532
client.mcp_server.get_strata_server(
533-
strata_id="strata_id",
533+
strata_id="strataId",
534534
)
535535

536536
```
@@ -602,7 +602,7 @@ client = Klavis(
602602
api_key="YOUR_API_KEY",
603603
)
604604
client.mcp_server.get_strata_auth(
605-
strata_id="strata_id",
605+
strata_id="strataId",
606606
server_name="serverName",
607607
)
608608

@@ -648,7 +648,7 @@ client.mcp_server.get_strata_auth(
648648
</dl>
649649
</details>
650650

651-
<details><summary><code>client.mcp_server.<a href="src/klavis/mcp_server/client.py">set_strata_auth</a>(...)</code></summary>
651+
<details><summary><code>client.mcp_server.<a href="src/klavis/mcp_server/client.py">delete_strata_auth</a>(...)</code></summary>
652652
<dl>
653653
<dd>
654654

@@ -660,9 +660,9 @@ client.mcp_server.get_strata_auth(
660660
<dl>
661661
<dd>
662662

663-
Sets authentication data for a specific integration within a Strata MCP server.
663+
Deletes authentication data for a specific integration within a Strata MCP server.
664664

665-
Accepts either API key authentication or general authentication data.
665+
This will clear the stored authentication credentials, effectively unauthenticating the server.
666666
</dd>
667667
</dl>
668668
</dd>
@@ -677,15 +677,14 @@ Accepts either API key authentication or general authentication data.
677677
<dd>
678678

679679
```python
680-
from klavis import ApiKeyAuth, Klavis, McpServerName
680+
from klavis import Klavis
681681

682682
client = Klavis(
683683
api_key="YOUR_API_KEY",
684684
)
685-
client.mcp_server.set_strata_auth(
686-
strata_id="strata_id",
687-
server_name=McpServerName.AFFINITY,
688-
auth_data=ApiKeyAuth(),
685+
client.mcp_server.delete_strata_auth(
686+
strata_id="strataId",
687+
server_name="serverName",
689688
)
690689

691690
```
@@ -710,15 +709,7 @@ client.mcp_server.set_strata_auth(
710709
<dl>
711710
<dd>
712711

713-
**server_name:** `McpServerName` — The name of the Klavis MCP server to set authentication for (e.g., 'GitHub', 'Jira')
714-
715-
</dd>
716-
</dl>
717-
718-
<dl>
719-
<dd>
720-
721-
**auth_data:** `StrataSetAuthRequestAuthData` — Authentication data
712+
**server_name:** `str` — The name of the Klavis MCP server to delete authentication for (e.g., 'github', 'jira')
722713

723714
</dd>
724715
</dl>
@@ -738,7 +729,7 @@ client.mcp_server.set_strata_auth(
738729
</dl>
739730
</details>
740731

741-
<details><summary><code>client.mcp_server.<a href="src/klavis/mcp_server/client.py">delete_strata_auth</a>(...)</code></summary>
732+
<details><summary><code>client.mcp_server.<a href="src/klavis/mcp_server/client.py">set_strata_auth</a>(...)</code></summary>
742733
<dl>
743734
<dd>
744735

@@ -750,9 +741,9 @@ client.mcp_server.set_strata_auth(
750741
<dl>
751742
<dd>
752743

753-
Deletes authentication data for a specific integration within a Strata MCP server.
744+
Sets authentication data for a specific integration within a Strata MCP server.
754745

755-
This will clear the stored authentication credentials, effectively unauthenticating the server.
746+
Accepts either API key authentication or general authentication data.
756747
</dd>
757748
</dl>
758749
</dd>
@@ -767,14 +758,15 @@ This will clear the stored authentication credentials, effectively unauthenticat
767758
<dd>
768759

769760
```python
770-
from klavis import Klavis
761+
from klavis import ApiKeyAuth, Klavis, McpServerName
771762

772763
client = Klavis(
773764
api_key="YOUR_API_KEY",
774765
)
775-
client.mcp_server.delete_strata_auth(
776-
strata_id="strata_id",
777-
server_name="server_name",
766+
client.mcp_server.set_strata_auth(
767+
strata_id="strataId",
768+
server_name=McpServerName.AFFINITY,
769+
auth_data=ApiKeyAuth(),
778770
)
779771

780772
```
@@ -799,7 +791,15 @@ client.mcp_server.delete_strata_auth(
799791
<dl>
800792
<dd>
801793

802-
**server_name:** `str` — The name of the Klavis MCP server to delete authentication for (e.g., 'github', 'jira')
794+
**server_name:** `McpServerName` — The name of the Klavis MCP server to set authentication for (e.g., 'GitHub', 'Jira')
795+
796+
</dd>
797+
</dl>
798+
799+
<dl>
800+
<dd>
801+
802+
**auth_data:** `Authdata` — Authentication data
803803

804804
</dd>
805805
</dl>

src/klavis/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@
4343
from .client import AsyncKlavis, Klavis
4444
from .environment import KlavisEnvironment
4545
from .mcp_server import (
46+
Authdata,
4647
DeleteServersFromStrataMcpServerStrataStrataIdServersDeleteRequestServersItem,
4748
McpServerGetToolsResponse,
4849
Servers,
4950
SetAuthRequestAuthData,
50-
StrataSetAuthRequestAuthData,
5151
)
5252
from .oauth import Environment
5353
from .user import SetUserAuthRequestAuthData
@@ -56,6 +56,7 @@
5656
__all__ = [
5757
"ApiKeyAuth",
5858
"AsyncKlavis",
59+
"Authdata",
5960
"CallToolResponse",
6061
"CallToolResult",
6162
"ConnectionType",
@@ -93,7 +94,6 @@
9394
"StrataDeleteServersResponse",
9495
"StrataGetAuthResponse",
9596
"StrataGetResponse",
96-
"StrataSetAuthRequestAuthData",
9797
"ToolFormat",
9898
"UnprocessableEntityError",
9999
"ValidationError",

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.8.0",
23+
"User-Agent": "klavis/2.9.0",
2424
"X-Fern-Language": "Python",
2525
"X-Fern-SDK-Name": "klavis",
26-
"X-Fern-SDK-Version": "2.8.0",
26+
"X-Fern-SDK-Version": "2.9.0",
2727
}
2828
api_key = self._get_api_key()
2929
if api_key is not None:

src/klavis/mcp_server/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
# isort: skip_file
44

55
from .types import (
6+
Authdata,
67
DeleteServersFromStrataMcpServerStrataStrataIdServersDeleteRequestServersItem,
78
McpServerGetToolsResponse,
89
Servers,
910
SetAuthRequestAuthData,
10-
StrataSetAuthRequestAuthData,
1111
)
1212

1313
__all__ = [
14+
"Authdata",
1415
"DeleteServersFromStrataMcpServerStrataStrataIdServersDeleteRequestServersItem",
1516
"McpServerGetToolsResponse",
1617
"Servers",
1718
"SetAuthRequestAuthData",
18-
"StrataSetAuthRequestAuthData",
1919
]

0 commit comments

Comments
 (0)