Skip to main content

MCP server for Qinglong Panel task management

Project description

青龙面板 MCP Server

PyPI version

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

说明:本仓库包含源代码,供开发者参考。普通用户请直接通过 pip 或 uvx 安装使用。

功能

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

安装

使用 pip 安装:

pip install qinglong-mcp-server

或使用 uvx(推荐,无需安装):

uvx qinglong-mcp-server

配置

首次运行时会自动创建配置文件模板。

编辑配置文件:

macOS/Linux:

nano ~/.qinglong-mcp/.env

Windows:

notepad %USERPROFILE%\.qinglong-mcp\.env

填入你的青龙面板信息:

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

使用

在 MCP 客户端中使用

编辑 MCP 配置文件,添加以下内容:

{
  "mcpServers": {
    "qinglong": {
      "command": "uvx",
      "args": ["qinglong-mcp-server"]
    }
  }
}

配置文件位置(以 Kiro CLI 为例):

  • ~/.kiro/settings/mcp.json

开发测试

运行测试脚本:

./test_query_tasks.py

升级

pip install -U qinglong-mcp-server

项目地址

联系方式

Email: pholex@gmail.com

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.4.tar.gz (8.8 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.4-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qinglong_mcp_server-0.1.4.tar.gz
  • Upload date:
  • Size: 8.8 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.4.tar.gz
Algorithm Hash digest
SHA256 a810ba69c9e0b1654ec0f64e92cfe40b90e6a6496a484004d8ad7a39c535b7cd
MD5 e40cef384b27fa2747a45d0d85fb3a23
BLAKE2b-256 b308c3e194063710460fe59d154621f034ef39b4ce92d06f0c2984f8e819adc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qinglong_mcp_server-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 18b265d54dfdaea58349ada99f5d77211a590e1b208f4a71fb7b275c05ee5e91
MD5 d66fdf9934569b47195d4a8089754baf
BLAKE2b-256 2c44c283b766250956161099b5f8ebede2f0d61843bf15b12aaf963ec92f0620

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