Metadata-Version: 2.4
Name: dpop-broker-auth
Version: 0.1.0
Summary: Agent-side ES256 key enrollment and DPoP proof-of-possession (RFC 9449) for MCP broker authentication.
License-Expression: MIT
Requires-Python: >=3.9
Requires-Dist: cryptography>=41.0
Requires-Dist: pyjwt>=2.8
Requires-Dist: requests>=2.28
Description-Content-Type: text/markdown

# dpop-broker-auth

Agent-side ES256 key enrollment and DPoP proof-of-possession (RFC 9449) for MCP broker authentication.

## Install

```bash
pip install dpop-broker-auth
```

## Usage

```python
from broker_auth import BrokerAuthClient

client = BrokerAuthClient(
    "https://your-broker.example.com",
    "<gateway-token>",
    keystore_path="broker_keypair.json",
)

# One-time enrollment
if not client.is_enrolled:
    client.enroll()

# All requests include DPoP proof automatically
response = client.make_request("POST", "https://your-broker.example.com/api/v1/mcp/invoke/", json={...})
```
