Skip to main content

MCSM API

Supported MCSManager Versions Python Version PyPI Downloads Ask DeepWiki

English|Chinese Simplified

Documentation

📄 Docs: docs

💡 Example: example

Introduction

mcsmapi is an async Python SDK for MCSManager, built on httpx + pydantic.

  • Fully async (sync/await)
  • Typed models with IDE autocompletion
  • Chainable operations on returned objects
  • Supports sync with context manager

Installation

ash pip install mcsmapi

For the latest build: Actions

Supported Features

  • Dashboard data (Overview)
  • User management (User)
  • Instance management (Instance)
  • Daemon management (Daemon)
  • File management (File)
  • Image management (Image)
  • Schedule task management (Schedule)
  • Java runtime management (Java)
  • Mod management (Mod)
  • Panel & Daemon upgrade (Upgrade)

Supported MCSM Versions

MCSM Version Support Status
10.x ✅

Quick Example

`python import asyncio from mcsmapi import MCSMAPI

async def main(): mcsm = MCSMAPI("http://localhost:23333") await mcsm.login("admin", "password")

# Dashboard
data = await mcsm.overview.overview()
print(f"Panel version: {data.version}")

# List daemons
daemons = await mcsm.daemon.config()
for d in daemons:
    print(f"  {d.remarks} ({d.ip}:{d.port})")

# Search instances on a daemon
instances = await daemons[0].search_instances()
for inst in instances.data:
    print(f"  {inst.config.nickname} [{inst.status.name}]")

# Partial config update (only sends provided fields)
inst = instances.data[0]
await inst.updateConfig({"nickname": "My Server"})

# File operations via chaining
files = await inst.files(target=".")
for f in files.items[:5]:
    print(f"  {f.name}")

await mcsm.close()

asyncio.run(main()) `

See example/ for more usage patterns.

Contributing

Feel free to submit an Issue or Pull Request.

License

MIT License — see LICENSE.

Metadata

Release files for mcsmapi 0.2.0

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

Source distribution (sdist)

Source distribution for mcsmapi 0.2.0
File Size Uploaded Provenance Actions
mcsmapi-0.2.0.tar.gz 26.5 kB Without provenance Details for mcsmapi-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcsmapi 0.2.0
File Interpreter ABI Platform Actions
mcsmapi-0.2.0-py3-none-any.whl Python 3 none any Details for mcsmapi-0.2.0-py3-none-any.whl

Total release size: 63.4 kB

Release files / mcsmapi-0.2.0.tar.gz

Download URL mcsmapi-0.2.0.tar.gz
Size 26.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fa812a59d4b29cbf96892c2ecfd6a9f7ab372055b5dc288a3e08a81611d240f1
BLAKE2b-256 checksum
How to use checksums
f170967d11ab079fccc743c90eeb6bd4fa3825332536ac98e13c927b0e138c17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / mcsmapi-0.2.0-py3-none-any.whl

Download URL mcsmapi-0.2.0-py3-none-any.whl
Size 36.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa726fb953d33f261f3cc1672f790a67a5a8ece1184e9ec24fc440d8de53c2af
BLAKE2b-256 checksum
How to use checksums
08fdd013416c63c4a93d72536f01dbdb9b625f2a6219a73d8c5741e28c6fb9b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for mcsmapi 0.2.0

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.

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