Skip to content

Commit 5a39f1c

Browse files
committed
fix: try canceling initialization with invalid version
1 parent 52a0e27 commit 5a39f1c

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-mcp"
3-
version = "0.0.43"
3+
version = "0.0.44"
44
description = "UiPath MCP SDK"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.10"

src/uipath_mcp/_cli/_runtime/_runtime.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,14 @@ async def dispose_session(self) -> None:
330330
response = self._uipath.api_client.request(
331331
"POST",
332332
f"mcp_/mcp/{self.server.name}/out/message?sessionId={self.server.session_id}",
333-
json=types.JSONRPCNotification(
333+
json=types.JSONRPCResponse(
334334
jsonrpc="2.0",
335-
method="notifications/cancelled",
336-
params={"requestId": "*"},
335+
id=0,
336+
result={
337+
"protocolVersion": "invalid-version",
338+
"capabilities": {},
339+
"serverInfo": {"name": "server", "version": "1.0"}
340+
}
337341
).model_dump(),
338342
)
339343
if response.status_code == 202:

0 commit comments

Comments
 (0)