Skip to main content

MCP server for Qinglong Panel task management

Project description

青龙面板 MCP Server

这是一个 Model Context Protocol (MCP) server,用于查询和执行青龙面板中的定时任务。

功能

  • list_qinglong_tasks: 查询青龙面板中的所有定时任务列表
  • run_task: 执行任务并等待完成,自动返回执行日志(最多等待30秒)
  • run_task_async: 异步启动任务,不等待执行完成
  • get_task_logs: 获取青龙面板中指定任务的执行日志
  • get_task_status: 获取青龙面板中指定任务的执行状态

安装

pip install -r requirements.txt

配置

复制 .env.example.env 并配置青龙面板信息:

cp .env.example .env

编辑 .env 文件:

QINGLONG_URL=https://your-qinglong-url.com
CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret

使用

在 Kiro CLI 中使用

编辑 Kiro CLI 的 MCP 配置文件(~/.kiro/settings/mcp.json):

{
  "mcpServers": {
    "qinglong": {
      "command": "python3",
      "args": ["/path/to/qinglong-mcp-server/server.py"],
      "autoApprove": ["list_qinglong_tasks", "run_task"]
    }
  }
}

测试工具

运行 query_tasks.py 测试 API 连接并查看任务列表:

./query_tasks.py

工具说明

list_qinglong_tasks

查询所有任务,无需参数。

run_task

执行任务并等待完成,自动返回执行日志(最多等待30秒),需要提供:

  • task_id: 任务 ID(整数)

run_task_async

异步启动任务,不等待执行完成,需要提供:

  • task_id: 任务 ID(整数)

get_task_logs

获取任务执行日志,需要提供:

  • task_id: 任务 ID(整数)

get_task_status

获取任务执行状态,需要提供:

  • task_id: 任务 ID(整数)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qinglong_mcp_server-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qinglong_mcp_server-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file qinglong_mcp_server-0.1.0.tar.gz.

File metadata

  • Download URL: qinglong_mcp_server-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for qinglong_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fb3e1fd23ad02ee5eea9a81f8459c8f83885f3e00e1686ebe97aacd31f3074f1
MD5 dcd65a7553b5044e4e4df71651e9f3d1
BLAKE2b-256 5377818340af049098a0a7cb73720f489b6ac6c32c9f5a2100ff76a417965dec

See more details on using hashes here.

File details

Details for the file qinglong_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for qinglong_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3cde1f60397bdfe6892dbfbc5c52f056fda6c4798c93daeead8ff6dd5cb0a6e5
MD5 f652340761e0b2215cc2e7024f6005e6
BLAKE2b-256 ccaeeb85b7d8d1ac598a1bed54949177604724a03f7740b354b46209c42462e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page