Metadata-Version: 2.4
Name: mcpward-sdk
Version: 0.1.0
Summary: Python client SDK for the mcpward MCP gateway.
Project-URL: Homepage, https://mcpward.redfleet.fr
Project-URL: Repository, https://github.com/dbe006/mcpward-sdk
Project-URL: Issues, https://github.com/dbe006/mcpward-sdk/issues
Author: David Bellaiche
License-Expression: MIT
Keywords: agent,claude,cursor,gateway,mcp,mcpward,sdk
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
Requires-Dist: pytest>=8.3; extra == 'dev'
Description-Content-Type: text/markdown

# mcpward-sdk

Python client SDK for the [mcpward](https://mcpward.redfleet.fr) MCP gateway.

## Install

```bash
pip install mcpward-sdk
```

## Usage

```python
from mcpward_sdk import MCPWardClient

async with MCPWardClient("https://mcpward.redfleet.fr", "mw_sk_your_key") as client:
    # List available tools
    tools = await client.list_tools()
    for tool in tools:
        print(f"{tool['name']}: {tool.get('description', '')[:60]}")

    # Call a tool
    result = await client.call_tool("read_wiki_structure", {"repoName": "facebook/react"})
    print(result.content)

    # Call a tool on a specific server
    result = await client.call_tool("create_issue", {"title": "Bug"}, server="github")

    # Check health
    health = await client.health()

    # Manage webhooks
    wh = await client.create_webhook("https://hooks.example.com/mcpward", ["upstream.down"])
    hooks = await client.list_webhooks()
    await client.delete_webhook(wh["id"])

    # Upgrade to Pro
    checkout_url = await client.create_checkout("pro")
```

## License

MIT
