kl-mcp-client 2.1.10__tar.gz → 2.1.11__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.
Files changed (19) hide show
  1. {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/PKG-INFO +1 -1
  2. kl_mcp_client-2.1.11/kl_mcp_client/__version__.py +1 -0
  3. {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client/asyncio/tools.py +20 -0
  4. {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client/tools.py +20 -0
  5. {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client.egg-info/PKG-INFO +1 -1
  6. {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/pyproject.toml +1 -1
  7. kl_mcp_client-2.1.10/kl_mcp_client/__version__.py +0 -1
  8. {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/README.md +0 -0
  9. {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client/__init__.py +0 -0
  10. {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client/asyncio/__init__.py +0 -0
  11. {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client/asyncio/client.py +0 -0
  12. {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client/client.py +0 -0
  13. {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client.egg-info/SOURCES.txt +0 -0
  14. {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client.egg-info/dependency_links.txt +0 -0
  15. {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client.egg-info/requires.txt +0 -0
  16. {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/kl_mcp_client.egg-info/top_level.txt +0 -0
  17. {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/setup.cfg +0 -0
  18. {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/tests/test_async_tools.py +0 -0
  19. {kl_mcp_client-2.1.10 → kl_mcp_client-2.1.11}/tests/test_tools.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kl-mcp-client
3
- Version: 2.1.10
3
+ Version: 2.1.11
4
4
  Summary: MCP Client for Python
5
5
  Author-email: Kyle <hngan.it@gmail.com>
6
6
  License: MIT
@@ -0,0 +1 @@
1
+ __VERSION__ = "2.1.11"
@@ -402,3 +402,23 @@ class MCPTools:
402
402
  },
403
403
  )
404
404
  return res.get("structuredContent", {})
405
+ # ======================================================
406
+ # CURRENT TAB
407
+ # ======================================================
408
+
409
+ async def current_tab(self, sessionId: str) -> Dict[str, Any]:
410
+ """
411
+ Get current active browser tab ID.
412
+
413
+ Returns:
414
+ {
415
+ "tabId": "<targetId>"
416
+ }
417
+ """
418
+ res = await self.client.call_tool(
419
+ "currentTab",
420
+ {
421
+ "sessionId": sessionId,
422
+ },
423
+ )
424
+ return res.get("structuredContent", {})
@@ -637,3 +637,23 @@ class MCPTools:
637
637
  },
638
638
  },
639
639
  ).get("structuredContent", {})
640
+ # ======================================================
641
+ # CURRENT TAB
642
+ # ======================================================
643
+
644
+ @_ensure_client
645
+ def current_tab(self, sessionId: str) -> Dict[str, Any]:
646
+ """
647
+ Get current active browser tab ID.
648
+
649
+ Returns:
650
+ {
651
+ "tabId": "<targetId>"
652
+ }
653
+ """
654
+ return self.client.call_tool(
655
+ "currentTab",
656
+ {
657
+ "sessionId": sessionId,
658
+ },
659
+ ).get("structuredContent", {})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kl-mcp-client
3
- Version: 2.1.10
3
+ Version: 2.1.11
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.10"
7
+ version = "2.1.11"
8
8
  description = "MCP Client for Python"
9
9
  dependencies = [ "requests>=2.32.5", "httpx>=0.28.1",]
10
10
  readme = "README.md"
@@ -1 +0,0 @@
1
- __VERSION__ = "2.1.10"
File without changes
File without changes