MCSManager Controller
Use this skill to operate an MCSManager instance safely and consistently.
Scope and safety
- - Use only configuration the user explicitly provides in the prompt, session context, or a config file intentionally created for this skill.
- Do not assume a specific host, home directory, panel URL, token, or instance UUID.
- Do not search unrelated workspace files for secrets.
- Do not infer credentials from random local files.
- If required config is missing, ask for it.
Quick workflow
- 1. Confirm the target instance.
- Use the instance identifier the user provided.
- If a dedicated skill config file exists and the user set it up for this skill, use its default instance value.
- 2. Prefer read-only checks first.
- Check whether MCSManager is reachable.
- Check whether the instance is online before restarting anything.
- Read logs before making changes.
- 3. Only then perform state changes.
- Start, stop, restart, kill, or send commands.
- 4. Report back clearly.
- Say what was checked.
- Say what changed.
- Include the important log line or symptom.
- If something is broken, say the broken thing directly.
Operating rules
- - Prefer the API over brittle browser clicking.
- Prefer read-only actions before writes.
- Avoid restart spam. If a start or restart fails, inspect logs before retrying.
- Preserve exact console commands when sending them.
- For dangerous commands like
stop, kill, or destructive plugin actions, confirm intent unless the user explicitly asked. - If the API details are missing, read
references/api-notes.md and adapt to the installed MCSManager version. - If the user wants reusable local config, use
config.json in this skill directory. - If
config.json does not exist, create it by copying config.example.json and filling in user-provided values.
Common tasks
Check status
Use when the user asks whether the server is up, lagging, or crashed.
- - Verify MCSManager service reachability.
- Query the target instance state.
- If the API is unavailable and the user has provided host-side access details, fall back to host-side process and port checks.
Read logs
Use when the user reports crashes, plugin errors, failed joins, or startup problems.
- - Fetch recent instance logs.
- Prioritize Java exceptions, plugin stack traces, port bind errors, world corruption, and authentication issues.
- Quote the minimal log excerpt that explains the failure.
Send console commands
Use for commands like whitelist changes, saves, broadcasts, plugin commands, or graceful shutdowns.
- - Echo the exact command in the response.
- Prefer graceful commands before hard stop actions.
- For batch commands, serialize them and avoid flooding the panel.
Restart safely
Use when the instance is stuck, plugins need reload-by-restart, or the user asks for a restart.
- - Confirm the server is actually online first.
- If players may be connected, warn about impact when appropriate.
- Stop gracefully if possible.
- Start once.
- Re-check status and read the first meaningful startup lines.
Local config pattern
Recommended setup:
- - Commit
config.example.json. - Keep your real
config.json untracked. - Put per-server values in
config.json. - Treat
config.json as user-managed local config, not something to discover by rummaging through unrelated files.
Reference file
Read references/api-notes.md when you need request patterns, environment conventions, or fallback strategy.
MCSManager 控制器
使用此技能安全且一致地操作 MCSManager 实例。
范围与安全性
- - 仅使用用户在提示词、会话上下文或专门为此技能创建的配置文件中明确提供的配置。
- 不要假设特定的主机、主目录、面板 URL、令牌或实例 UUID。
- 不要搜索无关的工作区文件来获取密钥。
- 不要从随机本地文件中推断凭据。
- 如果缺少所需配置,请询问用户。
快速工作流程
- 1. 确认目标实例。
- 使用用户提供的实例标识符。
- 如果存在专用的技能配置文件且用户已为此技能设置,则使用其默认实例值。
- 2. 优先执行只读检查。
- 检查 MCSManager 是否可达。
- 在重启任何内容之前检查实例是否在线。
- 在进行更改之前读取日志。
- 3. 然后才执行状态变更。
- 启动、停止、重启、强制终止或发送命令。
- 4. 清晰报告结果。
- 说明已检查的内容。
- 说明已更改的内容。
- 包含重要的日志行或症状。
- 如果出现问题,直接说明问题所在。
操作规则
- - 优先使用 API 而非脆弱的浏览器点击操作。
- 优先执行只读操作,然后再执行写入操作。
- 避免频繁重启。如果启动或重启失败,在重试之前先检查日志。
- 发送控制台命令时保持命令原样。
- 对于危险命令如 stop、kill 或破坏性插件操作,除非用户明确要求,否则需确认意图。
- 如果缺少 API 详细信息,请阅读 references/api-notes.md 并根据已安装的 MCSManager 版本进行调整。
- 如果用户需要可重用的本地配置,请使用此技能目录中的 config.json。
- 如果 config.json 不存在,请通过复制 config.example.json 并填入用户提供的值来创建。
常见任务
检查状态
当用户询问服务器是否正常运行、卡顿或崩溃时使用。
- - 验证 MCSManager 服务是否可达。
- 查询目标实例状态。
- 如果 API 不可用且用户提供了主机端访问详细信息,则回退到主机端进程和端口检查。
读取日志
当用户报告崩溃、插件错误、连接失败或启动问题时使用。
- - 获取最近的实例日志。
- 优先关注 Java 异常、插件堆栈跟踪、端口绑定错误、世界损坏和身份验证问题。
- 引用能够解释故障的最简日志片段。
发送控制台命令
用于白名单更改、保存、广播、插件命令或优雅关闭等命令。
- - 在响应中回显确切的命令。
- 优先使用优雅命令,再使用强制停止操作。
- 对于批量命令,进行序列化处理,避免向面板发送过多请求。
安全重启
当实例卡死、插件需要通过重启重新加载或用户要求重启时使用。
- - 首先确认服务器确实在线。
- 如果可能有玩家连接,在适当时警告影响。
- 尽可能优雅停止。
- 启动一次。
- 重新检查状态并读取启动后的前几行有意义的内容。
本地配置模式
推荐设置:
- - 提交 config.example.json。
- 将真实的 config.json 保持未跟踪状态。
- 将每个服务器的值放入 config.json。
- 将 config.json 视为用户管理的本地配置,而不是通过翻查无关文件来发现的内容。
参考文件
当需要请求模式、环境约定或回退策略时,请阅读 references/api-notes.md。