Catalog PyPI
Back to packageRELEASE DETAILS

1.0.2

PyPI

agentlink-sdk

Official Python SDK for China Mobile Cloud AgentLink MCP Gateway

agentagentlinkautomationbrowserclouddesktop-automationmcprpasandboxwindows
Published14 Jul 2026
Direct dependencies7
Transitive dependenciesNot calculated

README

Version 1.0.2 documentation

Official Python SDK for China Mobile Cloud AgentLink MCP Gateway

Python License

AgentLink Python SDK provides a high-level, Pythonic API for interacting with the AgentLink MCP (Model Context Protocol) Gateway. It supports cloud sandbox lifecycle management, browser automation, Windows desktop control, and generic MCP tool invocation.

Features

  • 🌐 Browser Automation — Navigate, click, type, take screenshots, evaluate JavaScript
  • 🖥️ Windows Desktop Control — PowerShell commands, click, type, keyboard shortcuts, screenshots
  • 🔄 Automatic Sandbox Management — Auto-creates and reuses sandbox sessions
  • 🧵 Thread-Safe — Safe for use in multi-threaded applications
  • 🔁 Retry Logic — Automatic retries with configurable timeout
  • 📦 Context Manager — Auto-cleanup with with statement
  • 🐍 Pythonic API — Clean, intuitive interface with type hints

Installation

pip install agentlink-python-sdk

Or install from source:

cd agentlink-python-sdk
pip install -e .

Quick Start

Prerequisites

  • Python 3.8 or later
  • An AgentLink API key (obtain from your AgentLink platform administrator)

Basic Usage

from agentlink_sdk import AgentLink

# Initialize client
al = AgentLink(api_key="your-api-key")

# Browser automation (sandbox is auto-created and reused)
al.browser.go("https://www.baidu.com")
snapshot = al.browser.a11y_tree()
screenshot = al.browser.capture()
screenshot.save("page.png")

# Clean up
al.cleanup()

Development

# Install for development
cd agentlink-python-sdk
pip install -e ".[dev]"

# Run tests
pytest


## License

This project is licensed under the Apache License 2.0 — see the [LICENSE](LICENSE) file for details.


Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 7

Native requirements
7 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
httpx
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
httpx>=0.24.0runtime
pytest-asyncio
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pytest-asyncio>=0.21; extra == "dev"runtime
pytest-httpx
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pytest-httpx>=0.21; extra == "dev"runtime
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pytest>=7.0; extra == "dev"runtime
ruff
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
ruff>=0.1.0; extra == "dev"runtime
mkdocs-material
Environment
{
  "extras": "",
  "marker": "extra == \"docs\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
mkdocs-material>=9.0; extra == "docs"runtime
mkdocs
Environment
{
  "extras": "",
  "marker": "extra == \"docs\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
mkdocs>=1.5; extra == "docs"runtime

Distribution files

2 collected
agentlink_sdk-1.0.2-py3-none-any.whl

bdist_wheel · 33.28 KB · Python py3

Source file
agentlink_sdk-1.0.2.tar.gz

sdist · 52.59 KB · Python source

Source file

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:35 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:5e7de9b3fa67eb8d5d3eb536a1d44288e7c35d0a2aed600f68a8f32fc7ea29e4

Other collected versions

View all collected versions →