Skip to main content

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: a TypedDict for every schema definition (open enums stay str, each with a *_KNOWN_VALUES tuple 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

Metadata

Release files for muse-code-msp 1.4.13

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

Source distribution (sdist)

Source distribution for muse-code-msp 1.4.13
File Size Uploaded Provenance Actions
muse_code_msp-1.4.13.tar.gz 95.6 kB With provenance Details for muse_code_msp-1.4.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for muse-code-msp 1.4.13
File Interpreter ABI Platform Actions
muse_code_msp-1.4.13-py3-none-any.whl Python 3 none any Details for muse_code_msp-1.4.13-py3-none-any.whl

Total release size: 191.4 kB

Release files / muse_code_msp-1.4.13.tar.gz

Download URL muse_code_msp-1.4.13.tar.gz
Size 95.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1ee37b9734c03df28a1b2b0978c94f39f59d58c7e20eb64260675565f5dd1e2f
BLAKE2b-256 checksum
How to use checksums
e927b26b7d846c7ce86e9c9f7aadc589fb34b237ac0e56999a961096bfd5df00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 24, 2026.

Transparency log

Release files / muse_code_msp-1.4.13-py3-none-any.whl

Download URL muse_code_msp-1.4.13-py3-none-any.whl
Size 95.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef22d081211ee8243adcfcf5d1082ad1c1e27d7cb1c5baa2bdc8a26c2660e8c4
BLAKE2b-256 checksum
How to use checksums
3301e48c5f92a7d305498959935a281ea39d1d1db07369d5fb6ba3f97ed1e348
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 24, 2026.

Transparency log

Security for muse-code-msp 1.4.13

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for muse_code_msp-1.4.13.tar.gz

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 Oct 24, 2026.

Transparency log

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.

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