Skip to main content

Python client SDK for the mcpward MCP gateway.

Project description

mcpward-sdk

Python client SDK for the mcpward MCP gateway.

Install

pip install mcpward-sdk

Usage

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcpward_sdk-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcpward_sdk-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file mcpward_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: mcpward_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for mcpward_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 88c4863d3ddc185a30e99a14f9322a5fa65aa004db072fdfac31f5303497bbbc
MD5 aae7ea72a6e66a59301db9249919a107
BLAKE2b-256 b82e9f5a481bd864fa129cd6e2ef145799f7faa0f44e1d90a6d9838abe81262a

See more details on using hashes here.

File details

Details for the file mcpward_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcpward_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for mcpward_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9919aed5c894eba9a5aff80a1abd40348577261572b3252f099b3a525fdeeba8
MD5 23d0d617799e0b2bd74d7aef0c72e8ef
BLAKE2b-256 0cb4b3d2f5278a98b5608a94bc9bf1eed75878974b80abcc1fe7b1fe5eaad5e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page