kl-mcp-client 2.1.14__tar.gz → 2.1.16__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kl-mcp-client
3
- Version: 2.1.14
3
+ Version: 2.1.16
4
4
  Summary: MCP Client for Python
5
5
  Author-email: Kyle <hngan.it@gmail.com>
6
6
  License: MIT
@@ -234,6 +234,12 @@ class MCPTools:
234
234
  )
235
235
  return res.get("structuredContent", {})
236
236
 
237
+ async def cookies(self, sessionId: str):
238
+ logger.info("get cookies")
239
+ res = await self.client.call_tool(
240
+ "getCookies", {"sessionId": sessionId}
241
+ )
242
+ return res.get("structuredContent", {})
237
243
  # ======================================================
238
244
  # KEYBOARD
239
245
  # ======================================================
@@ -340,4 +346,4 @@ class MCPTools:
340
346
  "getCurrentUrl", {"sessionId": sessionId}
341
347
  )
342
348
  data = res.get("structuredContent", {})
343
- return data.get("url", "")
349
+ return data
@@ -296,6 +296,13 @@ class MCPTools:
296
296
  "importCookies", {"sessionId": sessionId, "cookies": cookies}
297
297
  ).get("structuredContent", {})
298
298
 
299
+ @_ensure_client
300
+ def cookies(self, sessionId: str):
301
+ logger.info("get_cookies")
302
+ return self.client.call_tool(
303
+ "getCookies", {"sessionId": sessionId}
304
+ ).get("structuredContent", {})
305
+
299
306
  # ======================================================
300
307
  # AI / PARSING
301
308
  # ======================================================
@@ -521,7 +528,7 @@ class MCPTools:
521
528
  logger.debug("current_url")
522
529
  return self.client.call_tool(
523
530
  "getCurrentUrl", {"sessionId": sessionId}
524
- ).get("structuredContent", {}).get("url")
531
+ ).get("structuredContent", {})
525
532
 
526
533
  @_ensure_client
527
534
  def set_viewport(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kl-mcp-client
3
- Version: 2.1.14
3
+ Version: 2.1.16
4
4
  Summary: MCP Client for Python
5
5
  Author-email: Kyle <hngan.it@gmail.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "kl-mcp-client"
7
- version = "2.1.14"
7
+ version = "2.1.16"
8
8
  description = "MCP Client for Python"
9
9
  dependencies = [ "requests>=2.32.5", "httpx>=0.28.1",]
10
10
  readme = "README.md"
File without changes
File without changes