muse-code-msp
Generated Python wire types for the Muse Session Protocol (MSP) — the protocol a Muse Code agent host speaks over stdio.
Every type in this package is generated from the MSP JSON Schema; nothing is written by hand, ever. A machine check keeps the generated code in lockstep with the schema, so the types cannot drift from the protocol.
muse_code_msp— the stable surface: aTypedDictfor every schema definition (open enums staystr, each with a*_KNOWN_VALUEStuple so unknown values pass through instead of failing), plus the method/notification/error tables and the schema-bundle fingerprint constants.muse_code_msp.experimental— the experimental surface: explicit import only, no stability promise.
Zero runtime dependencies. Python 3.10+. Fully typed (py.typed).
The hand-written client built on these types is
muse-code-sdk.
Install
pip install muse-code-msp
Use
from muse_code_msp import (
NOTIFICATIONS,
REQUIRED_HOST_VERSION,
SCHEMA_FINGERPRINT,
TURN_TERMINAL_KNOWN_VALUES,
)
print(REQUIRED_HOST_VERSION) # the muse host version this build pairs with
print(SCHEMA_FINGERPRINT) # the stable-surface schema fingerprint
print(sorted(NOTIFICATIONS)[:3]) # wire notification methods
print(TURN_TERMINAL_KNOWN_VALUES) # an open enum's known values
Documentation
- Guides, cookbook recipes, and the protocol reference: https://meta-models.github.io/muse-code-sdk/
- Python API reference: https://meta-models.github.io/muse-code-sdk/next/generated/python/
- Source and issues: https://github.com/meta-models/muse-code-sdk
Release files for muse-code-msp 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| muse_code_msp-1.3.1.tar.gz | 56.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| muse_code_msp-1.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 113.3 kB
Release files / muse_code_msp-1.3.1.tar.gz
| Download URL | muse_code_msp-1.3.1.tar.gz |
|---|---|
| Size | 56.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ede45a23ad084672a48af307d82e6cdf99514d81f97c078bbdada2167ccbe75f
|
|
BLAKE2b-256 checksum How to use checksums |
292645c96daaf0d292a30e1e894cc214f1fa7f9d833318fbef2eca7951e7c596
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.
Transparency logRelease files / muse_code_msp-1.3.1-py3-none-any.whl
| Download URL | muse_code_msp-1.3.1-py3-none-any.whl |
|---|---|
| Size | 56.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5fe19348a3f9ccb6dea0d85759f338813f599aafd854f8dde1ccdd515d13501
|
|
BLAKE2b-256 checksum How to use checksums |
5af9c721ef7c3e94e6ba8414b80d01e6e0f394c1a9cc453ea522d99cf1abde7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.
Transparency log