gspark-agent
面向 AI Agent 的 G-spark / HUB 接入工具:CLI + MCP,共用同一套 /v1 客户端。
安装
pip install "gspark-agent[mcp]"
# 或隔离安装
pipx install "gspark-agent[mcp]"
开发(本仓库):
pip install "./packages/gspark-agent[mcp]"
配置
export GSPARK_API_KEY=sk_xxxx
export GSPARK_BASE_URL=https://api.g-spark.cn # 或其他节点,如 https://api.hqszh.com
兼容别名:HUB_API_KEY、HUB_BASE_URL。
CLI
gspark apps list --json
gspark apps show video_01 --json
gspark tasks estimate --app video_01 --input prompt="hello" --json
gspark tasks run --app video_01 --input prompt="hello" --wait --json
gspark tasks get <task_id> --json
gspark account balance --json
gspark account ledger --page 1 --size 20 --json
--json:紧凑单行 JSON(便于 Agent / 管道)- 默认:缩进 JSON;
account ledger默认为表格
--input 支持 JSON 数组/对象,例如:--input tags='["a","b"]'、--input meta='{"k":1}'。
MCP(Cursor)
见 agent_pack/mcp-config.example.json;控制台「Agent 接入」页可下载完整接入包。
gspark-mcp
Agent Skill
agent_pack/SKILL.md 为全站通用说明书,配合 CLI 使用;无需为每个应用单独复制文档。
许可
Proprietary — 允许安装使用;勿再分发改牌。
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gspark_agent-0.4.0.tar.gz
(12.0 kB
view details)
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 gspark_agent-0.4.0.tar.gz.
File metadata
- Download URL: gspark_agent-0.4.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.0a6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bcc7aa788afcabaff15b628eba462dadf58eeb4a493b10a0364eb5602449817
|
|
| MD5 |
06956b2d1da433324e7c8ffcc67b95ff
|
|
| BLAKE2b-256 |
56d042484d84f4b9c1a64955d6972e2568bc06ca098bd8d3f19800d2970c00b8
|
File details
Details for the file gspark_agent-0.4.0-py3-none-any.whl.
File metadata
- Download URL: gspark_agent-0.4.0-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.0a6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86665b5b5f412b1c40a07c961be444908394721659411edd2eff414ea8c89b7e
|
|
| MD5 |
b5ac3140ae7cb83335688fceb1cc01a2
|
|
| BLAKE2b-256 |
cee61fd1b85dd44b05daa82c16f8306e15b12c085a948d193e79d73767ada92f
|