Metadata-Version: 2.5
Name: cmdop
Version: 3.0.1
Summary: Your machines' tools from a program: the same tools agents use through MCP, typed from Rust.
Project-URL: Homepage, https://cmdop.ai
Project-URL: Documentation, https://docs.cmdop.ai/reference/sdk/python
Project-URL: Source, https://github.com/commandoperator/cmdop-sdk
Project-URL: Issues, https://github.com/commandoperator/cmdop-sdk/issues
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: httpx<1,>=0.28
Requires-Dist: pydantic<3,>=2.10
Requires-Dist: typing-extensions>=4.12
Provides-Extra: dev
Requires-Dist: cryptography>=44; extra == 'dev'
Requires-Dist: pyright>=1.1.400; extra == 'dev'
Requires-Dist: pytest>=8.3; extra == 'dev'
Description-Content-Type: text/markdown

# cmdop (Python)

Your machines' tools from a program: the same tools agents use through MCP, typed from Rust.

```python
import cmdop

with cmdop.connect() as c:                 # CMDOP_TOKEN, CMDOP_URL
    box = c.machine("box")
    print(box.run("uptime").stdout)
    run = box.stream("make test")
    for piece in run:
        print(piece.data, end="")
    print(run.result.exit_code)
```

`cmdop.connect_async()` is the same, awaited. `src/cmdop/generated/` is generated by `make sdk-generate`; never edit it.

## The same tools over MCP

CMDOP is an MCP server too: an agent reaches these tools at `$CMDOP_URL/mcp` (streamable HTTP) with an agent token
as `Authorization: Bearer`, the same kind of token this package takes, under the same grant and record. The
command or settings for each client: https://docs.cmdop.ai/guides/connect

Website: https://cmdop.ai · Docs: https://docs.cmdop.ai/reference/sdk/python · License: MIT
