Apm Sdk Python
БесплатноНе проверенPython SDK, CLI, and MCP server for Synology ActiveProtect Manager (APM) — automate APM from code, the terminal, or AI assistant
Описание
Python SDK, CLI, and MCP server for Synology ActiveProtect Manager (APM) — automate APM from code, the terminal, or AI assistant
README
CI Documentation PyPI - synology-apm-sdk PyPI - synology-apm-cli PyPI - synology-apm-mcp
Python SDK, command-line tool, and MCP server for Synology ActiveProtect Manager (APM).
Prerequisites
Pick whichever matches the install method you use below — you don't need both:
uv— provisions Python automatically and powers theuvx/uv tool/uv addcommands below; see the installation instructions for macOS, Windows, and Linuxpip— usually bundled with your Python installation; see the installation instructions if you need to install it separately- Python 3.11 or later (provisioned automatically when using
uv/uvx; required on your own interpreter for a plainpip install)
AI Agent Integration (MCP Server)
synology-apm-mcp exposes APM operations — backups, restores, protection plans, M365 workloads, infrastructure, activities, and logs — as Model Context Protocol tools for AI agents such as Claude Desktop and ChatGPT Desktop, plus workflow skills that teach agents domain goals (daily backup reports, storage capacity analysis, failure investigation, and more).
Install the MCP Server
See packages/synology-apm-mcp/README.md for the full setup guide — Claude Desktop, ChatGPT Desktop, environment variables, operation modes, and audit logging.
CLI
synology-apm-cli operates APM directly from your terminal — protection plans, backup/restore operations, infrastructure, activities, and logs.
Install the CLI
Run directly without installing:
uvx synology-apm-cli --help
Or install with pip:
pip install synology-apm-cli
synology-apm-cli --help
CLI Quick Start
synology-apm-cli config set # set up default credentials
synology-apm-cli infra info
Full CLI Command Reference
See packages/synology-apm-cli/README.md for authentication options, output formats, and the full command reference.
Developer Guide
Building your own automation on top of the SDK, or contributing to this repo? Start here.
SDK
synology-apm-sdk is the async-native, fully typed Python interface to the APM REST API that both the CLI and MCP server are built on.
Install the SDK
uv add synology-apm-sdk # inside a uv project
pip install synology-apm-sdk # any other environment
See packages/synology-apm-sdk/README.md for the Quick Start, full data model, and usage examples.
Repository Structure
This repo is a uv workspace that publishes three PyPI packages from shared source:
| Path | Description |
|---|---|
packages/synology-apm-sdk/ |
The synology-apm-sdk PyPI package (synology_apm.sdk import) |
packages/synology-apm-cli/ |
The synology-apm-cli PyPI package (synology_apm.cli import; depends on synology-apm-sdk) |
packages/synology-apm-mcp/ |
The synology-apm-mcp PyPI package — MCP server for AI agent integration (depends on synology-apm-sdk) |
skills/ |
Workflow skills for the MCP server — teach AI agents how to accomplish domain goals using MCP tools |
examples/ |
Example automation scripts built on synology_apm.sdk |
docs/ |
Sphinx API reference source — published to GitHub Pages (see API Reference) |
Install From Source (Contributing)
git clone https://github.com/synology-apm/apm-sdk-python.git
cd apm-sdk-python
# Install all three packages editable, plus dev tools (pytest, mypy, ruff, etc.)
uv sync
# Run the CLI
uv run synology-apm-cli config set # set up default credentials
See CLAUDE.md for the development guide: testing standards, code conventions, and common commands (tests, linting, type checking, docs, skills generation).
API Reference
The full SDK API reference (every public class, method, and type signature) is generated from source with Sphinx and published at:
https://synology-apm.github.io/apm-sdk-python/
To build it locally instead (e.g. to preview docstring changes):
uv sync --group docs # first time only
make docs
Then open docs/_build/html/index.html in your browser.
Documentation Index
| Document | Description |
|---|---|
| APM_PRODUCT_OVERVIEW.md | APM product/domain knowledge: workload categories, protection plans, backup copy, and other core concepts |
| packages/synology-apm-cli/README.md | CLI command reference — authentication, output formats, full command list |
| packages/synology-apm-mcp/README.md | MCP server guide — Claude Desktop / ChatGPT Desktop setup, operation modes, available tools and workflow skills |
| packages/synology-apm-sdk/README.md | SDK developer guide — quick start and usage examples for every module |
| API Reference | Full SDK API reference — every public class, method, and type signature (Sphinx, hosted on GitHub Pages) |
| examples/README.md | Example automation scripts (inventory, reports, bulk import/export, …) |
| CLAUDE.md | Development guide — testing standards, conventions, and common commands |
Установка Apm Sdk Python
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/synology-apm/apm-sdk-pythonFAQ
Apm Sdk Python MCP бесплатный?
Да, Apm Sdk Python MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Apm Sdk Python?
Нет, Apm Sdk Python работает без API-ключей и переменных окружения.
Apm Sdk Python — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Apm Sdk Python в Claude Desktop, Claude Code или Cursor?
Открой Apm Sdk Python на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
автор: duxiaohuiSupabase
Database, auth and storage
автор: SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Apm Sdk Python with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
