Archery SQL审核查询平台 MCP Server - 让AI Agent直接操作SQL工单/查询/审核
Project description
Archery MCP Server
将 Archery SQL 审核查询平台的 API 封装为 MCP 工具,让 AI Agent(Kiro/Claude/Cursor 等)能够直接操作 Archery 平台。
一键安装(推荐)
作为 Agent Skill 安装,自动配置 MCP:
npx skills add ckall/archery-mcp-server
安装后在 MCP 配置中填入你的 Archery 连接信息即可使用。
手动安装
方式一:uvx(无需预装,推荐)
{
"mcpServers": {
"archery": {
"command": "uvx",
"args": ["archery-mcp-server@latest"],
"env": {
"ARCHERY_BASE_URL": "http://archery.example.com",
"ARCHERY_USERNAME": "admin",
"ARCHERY_PASSWORD": "your_password"
}
}
}
}
方式二:pip install
pip install archery-mcp-server
然后配置 MCP:
{
"mcpServers": {
"archery": {
"command": "archery-mcp",
"env": {
"ARCHERY_BASE_URL": "http://archery.example.com",
"ARCHERY_USERNAME": "admin",
"ARCHERY_PASSWORD": "your_password"
}
}
}
}
环境变量
| 变量 | 必填 | 说明 |
|---|---|---|
ARCHERY_BASE_URL |
✅ | Archery 平台地址 |
ARCHERY_USERNAME |
✅ | 登录用户名 |
ARCHERY_PASSWORD |
✅ | 登录密码 |
功能覆盖(26 个工具)
| 模块 | 工具数 | 能力 |
|---|---|---|
| SQL 工单管理 | 6 | 提交/查看/审核/执行/待办/日志 |
| SQL 审核 | 1 | 语法检查(goInception) |
| SQL 查询 | 6 | 执行查询/浏览资源/表结构/历史/收藏 |
| 实例管理 | 6 | CRUD/资源浏览/按表名查实例 |
| 用户管理 | 4 | CRUD |
| 资源组/权限组 | 4 | 列表/创建 |
详细工具说明见 SKILL.md。
项目结构
archery-mcp-server/
├── SKILL.md # Agent Skill 定义(安装即用)
├── pyproject.toml # Python 包配置
├── mcp.json # MCP 配置示例
└── src/archery_mcp/
├── __init__.py
├── client.py # Archery API 客户端(JWT认证)
└── server.py # MCP Server(26个工具)
开发
# 克隆
git clone https://github.com/ckall/archery-mcp-server.git
cd archery-mcp-server
# 安装开发依赖
pip install -e .
# 本地运行
export ARCHERY_BASE_URL=http://localhost:9123
export ARCHERY_USERNAME=admin
export ARCHERY_PASSWORD=admin
archery-mcp
兼容性
- Python 3.10+
- Archery 1.8+(需启用 REST API)
- 支持所有 MCP 兼容的 AI IDE:Kiro、Claude Code、Cursor、Windsurf 等
License
MIT
Project details
Release history Release notifications | RSS feed
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 archery_mcp_server-0.1.0.tar.gz.
File metadata
- Download URL: archery_mcp_server-0.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07c2e6d4b9995838af85e0d815e4b04b10cb623ec4ab7f562d306456e2917ab4
|
|
| MD5 |
4d054e6a3e9a3cd639721558eee3390c
|
|
| BLAKE2b-256 |
7a2e71b2ea863fad52f5089cd6e524a63bccf163e74f6c4fe533658c4f9c0775
|
File details
Details for the file archery_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: archery_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ea696e2113e3d978e8562bce6e98a4284acddff40bbd066a78cb499255d9588
|
|
| MD5 |
2890075dcb25670fa14de6678d678659
|
|
| BLAKE2b-256 |
802ade650d1c6009f254795683079ccfc654347d6542b5133440d48ff5befd16
|