Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计提醒

dokploy-api-mcpdokploy API MCP 文档

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

2,130

周安装

87

GitHub Stars

1

下载量

682
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dokploy-api-mcp(dokploy API MCP 文档)
来源仓库:https://github.com/sattva2020/skills
仓库路径:skills/dokploy-api-mcp
安装命令:
npx skills add https://github.com/sattva2020/skills --skill dokploy-api-mcp
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sattva2020/skills --skill dokploy-api-mcp

简介

dokploy-api-mcp 用于 Dokploy 实例应用部署管理,支持自托管 PaaS 环境。

  • 它提供 449 个 API 端点覆盖,包括 Swagger UI 和 CLI 集成。
  • 可通过 npx skills add 命令从 GitHub 仓库安装,建议结合原始 README 核验具体用法。
  • 使用前需确认 Dokploy 版本和 API Token 权限,避免误操作生产环境。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Dokploy Deployment

Deploy and manage applications on a self-hosted Dokploy instance (v0.28.4+). Dokploy is an open-source PaaS (alternative to Vercel/Heroku) using Docker + Traefik v3.

Quick Reference

ItemValue
Dashboardhttps://<DOKPLOY_HOST>/
API basehttps://<DOKPLOY_HOST>/api/
Swagger UIhttps://<DOKPLOY_HOST>/swagger (browser login required)
Auth headerx-api-key: <TOKEN>
CLI installnpm install -g @dokploy/cli
MCP server@sattva/dokploy-mcp (449 tools — full API coverage)
API versionOpenAPI 3.1.0, 449 endpoints
Docshttps://docs.dokploy.com

First Run — Setup

On first use, check if the Dokploy MCP server is configured. If not, run the interactive setup:

1. Check: does ~/.claude/mcp.json contain a "dokploy" server entry?
2. If NO → run: python3 skills/dokploy-api-mcp/scripts/setup.py
   (or the full path in the user's skill installation directory)
3. The script will:
   - Ask for Dokploy URL (e.g., https://dokploy.example.com)
   - Ask for API key (generated in Dashboard → Settings → Profile → API/CLI)
   - Validate the connection
   - Auto-configure ~/.claude/mcp.json with the MCP server
4. Tell the user: "Restart Claude Code to activate the Dokploy MCP server."

With CLI arguments (non-interactive):

python3 skills/dokploy-api-mcp/scripts/setup.py --url https://dokploy.example.com --key YOUR_API_KEY

After setup, the MCP server (@sattva/dokploy-mcp, 449 tools) will be available on next Claude Code restart. Prefer MCP tools over curl for all operations.

Environment Variables

Before using this skill, ensure these are available:

DOKPLOY_URL=https://dokploy.example.com
DOKPLOY_API_KEY=<generated-api-token>

Generate API token: Dashboard → Settings → Profile → API/CLI → Generate.

Deployment Workflow

Step 1: Check Current State

# Get application status
curl -s -X GET "${DOKPLOY_URL}/api/trpc/application.one?input=$(python3 -c "
import urllib.parse, json
print(urllib.parse.quote(json.dumps({'json':{'applicationId':'APP_ID'}})))
")" -H "x-api-key: ${DOKPLOY_API_KEY}"

Step 2: Trigger Deploy

# Deploy application (POST — mutation)
curl -s -X POST "${DOKPLOY_URL}/api/application.deploy" \
  -H "x-api-key: ${DOKPLOY_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"json":{"applicationId":"APP_ID"}}'

Step 3: Monitor Deploy Status

# Poll deployment status
curl -s -X GET "${DOKPLOY_URL}/api/trpc/deployment.all?input=$(python3 -c "
import urllib.parse, json
print(urllib.parse.quote(json.dumps({'json':{'applicationId':'APP_ID'}})))
")" -H "x-api-key: ${DOKPLOY_API_KEY}"

Step 4: Verify Health

curl -sk "https://<app-domain>/api/health"

API Reference

Dokploy uses tRPC internally. Two request formats:

Queries (read) — GET with encoded input

GET /api/trpc/<router>.<procedure>?input=URL_ENCODED({"json":{...}})
Header: x-api-key: <token>

Mutations (write) — POST with JSON body

POST /api/<router>.<procedure>
Header: x-api-key: <token>
Header: Content-Type: application/json
Body: {"json":{...}}

Key Endpoints

See references/API-REFERENCE.md for the full list (449 endpoints).

EndpointMethodPurpose
project.allGETList all projects
project.oneGETGet project by ID
application.oneGETGet app details + status
application.deployPOSTTrigger deployment
application.stopPOSTStop application
application.startPOSTStart application
application.updatePOSTUpdate app settings
application.saveBuildTypePOSTChange build type
application.saveEnvironmentPOSTSet environment variables
compose.oneGETGet compose service
compose.deployPOSTDeploy compose service
deployment.allGETList deployments for app
domain.byApplicationIdGETGet domains for app
domain.createPOSTAdd custom domain
postgres.oneGETGet PostgreSQL service
redis.oneGETGet Redis service
mariadb.oneGETGet MariaDB service
mongo.oneGETGet MongoDB service
environment.byProjectIdGETList environments
rollback.rollbackPOSTRollback deployment
schedule.createPOSTCreate scheduled task
backup.createPOSTCreate backup config
notification.createTelegramPOSTSetup Telegram notifications
docker.getContainersByAppNameMatchGETList Docker containers
application.readTraefikConfigGETRead Traefik config

CLI Usage

# Install
npm install -g @dokploy/cli

# Authenticate (creates ~/.config/dokploy/config.json)
dokploy authenticate

# Verify token
dokploy verify

# Application management
dokploy app create   # Create new application
dokploy app deploy   # Deploy application
dokploy app stop     # Stop application
dokploy app delete   # Delete application

# Database management
dokploy db create    # Create database service
dokploy db delete    # Delete database service

# Environment variables
dokploy env set      # Set env vars
dokploy env list     # List env vars

# Project management
dokploy project create
dokploy project list

MCP Server (449 tools — full API coverage)

When MCP is available, ALWAYS prefer MCP tools over curl. MCP handles tRPC URL encoding and response parsing automatically.

See references/MCP-TOOLS.md for the full 449-tool reference.

Setup

Automatic (recommended): Run the setup script from the "First Run" section above — it configures MCP automatically.

Manual (~/.claude/mcp.json):

{
  "mcpServers": {
    "dokploy": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@sattva/dokploy-mcp"],
      "env": {
        "DOKPLOY_URL": "https://dokploy.example.com/api",
        "DOKPLOY_API_KEY": "<your-api-token>"
      }
    }
  }
}

Note: On macOS/Linux use "command": "npx" directly instead of cmd /c. Local dev: use "command": "node", "args": ["e:/My/MCP/dokploy-mcp/dist/index.js"].

MCP Tools by Category (449 total)

CategoryToolsDescription
application_*29App lifecycle, deploy, config, git providers
compose_*28Docker Compose services
settings_*49Server settings, Traefik, cleanup, monitoring
notification_*38Slack/Telegram/Discord/Email/Webhook/Gotify/Ntfy/Pushover/Lark/Teams
user_*18User management, API keys, permissions
server_*16Remote server management
postgres_*14PostgreSQL management
redis_*14Redis management
mysql_*14MySQL management
mariadb_*14MariaDB management
mongo_*14MongoDB management
patch_*12File patches
backup_*11Database backups
organization_*10Organizations, invitations
sso_*10SSO/SAML enterprise auth
domain_*9Domain/SSL management
ai_*9AI-powered compose generator
deployment_*8Deployment history, queue
project_*8Project management
gitea_*8Gitea provider
docker_*7Container operations
bitbucket_*7Bitbucket provider
registry_*7Docker registries
gitlab_*7GitLab provider
stripe_*7Billing (cloud)
environment_*7Environments per project
github_*6GitHub provider
licenseKey_*6Enterprise licensing
sshKey_*6SSH key management
mounts_*6Volume mounts
destination_*6S3 backup destinations
schedule_*6Scheduled tasks/cron
volumeBackups_*6Volume backups
certificates_*4SSL certificates
cluster_*4Docker Swarm cluster
port_*4Port management
redirects_*4URL redirects
security_*4Security settings
previewDeployment_*4Preview deployments
swarm_*3Swarm node info
gitProvider_*2Git provider generic
rollback_*2Deployment rollbacks
admin_*1Admin setup

MCP Deployment Workflow

1. application_one                → check current status
2. application_saveEnvironment    → set/update env vars if needed
3. application_saveBuildType      → ensure Dockerfile build configured
4. application_deploy             → trigger deployment
5. application_one                → poll until applicationStatus = "done"
6. curl health endpoint           → verify app is working

MCP Limitations (use Dashboard only)

  • Build/container logs — WebSocket only, no MCP or REST endpoint
  • Docker exec into container — No API endpoint, use SSH to VPS

Everything else is available through MCP tools, including: Redis, MariaDB, MongoDB, Compose, Backups, Notifications, Schedules, Rollbacks, SSO, Patches, Organizations, and more.

Common Pitfalls

See references/PITFALLS.md for detailed solutions.

ProblemCauseFix
COPY /app/public failsGit ignores empty dirsRUN mkdir -p public in Dockerfile
DB connection errorNeon HTTP driver vs standard PGUse postgres (postgres.js) package
Clerk publishableKey missingSSG validates env at buildexport const dynamic = "force-dynamic" + skip provider in build phase
Container crash with migrate.mjsstandalone output lacks modulesRun migrations via in-app API endpoint
Build logs unavailable via APIWebSocket only, no RESTCheck Dashboard UI or poll deployment.all for status
Container logs unavailable via APIWebSocket onlyUse Dashboard UI
External DB port unreachableVPS firewall blocks portUse internal Docker network names
SSL certificate error from curlSelf-signed or Let's Encrypt delayUse curl -sk or wait for cert provisioning
404 on API routes after deployRoute not in standalone outputVerify route exists in .next/standalone
Traefik middleware broken after upgradeDokploy v0.25+ uses Traefik v3Update middleware config syntax

Build Types

Dokploy supports:

TypeWhen to use
DockerfileCustom builds, multi-stage, full control
NixpacksAuto-detect language, zero config
BuildpackHeroku/Paketo compatible apps
Docker ImagePre-built images from registry

Services (Databases)

Create via Dashboard → Project → Add Service:

  • PostgreSQL — internal hostname: <appName>:5432
  • MySQL/MariaDB — internal hostname: <appName>:3306
  • MongoDB — internal hostname: <appName>:27017
  • Redis — internal hostname: <appName>:6379

Internal hostnames use Docker network. External ports optional (may need firewall rules).

Domain & SSL

  1. Add domain via Dashboard or API (domain.create)
  2. Point DNS A-record to VPS IP
  3. Dokploy auto-provisions Let's Encrypt certificate via Traefik v3
  4. HTTPS works automatically after DNS propagation

Next.js Specific Guide

See references/NEXTJS-GUIDE.md for full details on deploying Next.js 14/15 to Dokploy.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.57%
按下载量换算249

Claude

32.67%
按下载量换算223

Cursor

18.48%
按下载量换算126

Gemini CLI

9.39%
按下载量换算64

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills