Skip to main content

MCP server for Qinglong Panel task management

Project description

青龙面板 MCP Server

PyPI version

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

功能

  • 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

配置

创建配置文件 ~/.qinglong-mcp/.env

macOS/Linux:

mkdir -p ~/.qinglong-mcp
nano ~/.qinglong-mcp/.env

Windows:

mkdir %USERPROFILE%\.qinglong-mcp
notepad %USERPROFILE%\.qinglong-mcp\.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": "uvx",
      "args": ["qinglong-mcp-server"]
    }
  }
}

在 Claude Desktop 中使用

编辑配置文件:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

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

开发测试

运行测试脚本:

./test_run_task.py <任务ID>

工具说明

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(整数)

升级

pip install -U qinglong-mcp-server

项目地址

联系方式

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.3.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.3-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qinglong_mcp_server-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 fe98228e8c20448ae2402bef355dc056b836959ed0c8d017d3b04ad1bccf710c
MD5 79ee99bac8ce6b82644ace2dc71ecf8f
BLAKE2b-256 ea1fc21fd58230e186fee13335dff8d3abc210947b534c76739f4c84455c39bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qinglong_mcp_server-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 42301128b75cf4d0f13866c188bbeb146079a8e1655fbc751f996e86b19d6f89
MD5 793347b0176e18497ff803c102a99e78
BLAKE2b-256 6adeafad6fd752b6b53bd0faed3856a24376b35d6b10b72af72f283464ffcad8

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