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.1

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.1
File Size Uploaded Provenance Actions
mcsmapi-0.2.1.tar.gz 26.6 kB Without provenance Details for mcsmapi-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 63.7 kB

Release files / mcsmapi-0.2.1.tar.gz

Download URL mcsmapi-0.2.1.tar.gz
Size 26.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8523eff58aba33305c41b49915e899db589725881637f3f604c9b2118e8e023f
BLAKE2b-256 checksum
How to use checksums
39e11ea63da2750dee95b85c13eaa81fd904726e95f1ff4c5302afac87fda0ad
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.1-py3-none-any.whl

Download URL mcsmapi-0.2.1-py3-none-any.whl
Size 37.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ab22ff60e8a43d367cb15766dca7654a072f39df92693c5a4af55500fc9a667
BLAKE2b-256 checksum
How to use checksums
f2edcfd79925746202d9d53e8d8f7433a297515c770ae45562062242b5f2d721
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.1

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