Metadata-Version: 2.4
Name: ai-devlease-client
Version: 0.1.13
Summary: Typed client of the ai-devlease lease manager - a wrapper over the mcp-proxy-adapter framework client
Author-email: Vasiliy Zdanovskiy <vasilyvz@gmail.com>
License: Proprietary
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: mcp-proxy-adapter>=8.11.3

# ai-devlease-client

Typed async client of the ai-devlease lease manager (import `ai_devlease_client`).

Commands: `acquire` (adapter queue: submit, then poll the job), `renew` (holder only),
`release`, `status`, `lock_exclusive`, `unlock_exclusive`, `catalog`, `help`, `health`, and the registry commands
`register_service`, `list_services`, `remove_service`, `deploy_start`, `deploy_finish`, `stop_service`, `info`
(command line: `python -m ai_devlease_client <subcommand>`; the guide is returned by `info`).
Holder format is `<project>/<run_id>` (one `/`, each segment 1..64 of `[a-z0-9._-]`) and is
validated before the call. Errors map to typed exceptions: `-32602` to `ValidationError`
and `-32010..-32017` to `ServiceNotInCatalogError` .. `StorageError`.

```python
async with AiDevleaseClient.from_document_path("config.json") as client:
    async with client.lease("proj/run1", "fake-a") as lease:
        ...  # renewed every 60 s; lease.restart_required lists services to reconnect to
```
