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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qinglong_mcp_server-0.1.2.tar.gz.
File metadata
- Download URL: qinglong_mcp_server-0.1.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caa29a72539ccf81d2565cb6c0295e83bc4058c62855b211dd0bee494bc15090
|
|
| MD5 |
0a6b1d6b184d1dabb4e18891e6bc79b0
|
|
| BLAKE2b-256 |
acdfc38e706271dd3b59d7eda7b48b33aec6739ad84760a7e8f75cc4ed53e676
|
File details
Details for the file qinglong_mcp_server-0.1.2-py3-none-any.whl.
File metadata
- Download URL: qinglong_mcp_server-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da1bc99b0e29658d306a5dc7a30112fb0bc30e25b42d4e4c5decde7220ad70c8
|
|
| MD5 |
70a867b8cc10a7ca3a61dac042818e73
|
|
| BLAKE2b-256 |
b068bb64504ebb5b6a2cb84fb9e32b6cd832ae8252a11b07e36fad4490804e55
|