Skip to main content

mwps-client

Official Python client for the mwps server. MwpsClient is the single entry point: it hides transport selection, TLS material, request correlation and error mapping behind one typed async method per mwps command (see mwps_client/mwps_client/client.py).

The client connects directly to the mwps server address given as base_url (host and port), presenting the client certificate cert and key when they are supplied and verifying the server against ca. It does not go through MCP Proxy: there is no call_server hop between the client and mwps.

Model access

mwps-client talks only to mwps itself, never to a model. The mwps server it calls never talks to a model directly either: macsc (Model Access Core) is the sole gateway for model access, reached exclusively through macsc's own client, macore_client.MacClient (package macore-client). See the server's info command (overview section) or src/mwps/docs/overview.md in the server repository for the full rule.

Installation

pip install mwps-client

Usage

import asyncio
from mwps_client import MwpsClient

async def main():
    client = MwpsClient(base_url="https://<host>:8015", ca="/path/to/ca.crt")
    print(await client.health())
    session = await client.session_init()
    session_id = (session.get("data") or {}).get("session_id")
    result = await client.mwps_chat(session_id=session_id, content="Hello")
    print(result)

asyncio.run(main())

Version lockstep

mwps-client carries no version of its own: its published version is always identical to the mwps server version it was generated against (C-068, ClientServerVersionLockstep). Both packages read the same repository-root VERSION file — mwps_client/VERSION is a symlink to ../VERSION — so a client published from a given deploy always matches the server it talks to. See pipeline/README.md for the release process that keeps the two in lockstep.

Metadata

Release files for mwps-client-dev 0.1.54

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mwps-client-dev 0.1.54
File Size Uploaded Provenance Actions
mwps_client_dev-0.1.54.tar.gz 8.8 kB Without provenance Details for mwps_client_dev-0.1.54.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mwps-client-dev 0.1.54
File Interpreter ABI Platform Actions
mwps_client_dev-0.1.54-py3-none-any.whl Python 3 none any Details for mwps_client_dev-0.1.54-py3-none-any.whl

Total release size: 16.9 kB

Release files / mwps_client_dev-0.1.54.tar.gz

Download URL mwps_client_dev-0.1.54.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c8331338603dc923500202bec64b1fdbf8c414157165f554cea2e9594b6737dc
BLAKE2b-256 checksum
How to use checksums
6b922aac17a5d55434234b831daa67ef8d0aa31a6e17c62c193156a854568a27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / mwps_client_dev-0.1.54-py3-none-any.whl

Download URL mwps_client_dev-0.1.54-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d38d09f5a6d3697e1dcbbdb4ecb914628cd49f82017b951ac093af370ca1285b
BLAKE2b-256 checksum
How to use checksums
509fd6efcff91b0dd9cf6040d8cfa2b947f21f8835090a5082b89d2784974698
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for mwps-client-dev 0.1.54

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.54 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page