Skip to main content

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_KEYHUB_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.5.1.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gspark_agent-0.5.1-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file gspark_agent-0.5.1.tar.gz.

File metadata

  • Download URL: gspark_agent-0.5.1.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.0a6

File hashes

Hashes for gspark_agent-0.5.1.tar.gz
Algorithm Hash digest
SHA256 839b9e61bb8cf750ab7de82744e76c5beecce7728b524da16ad08fe428edc8a8
MD5 2b144e5cb12eb0e1f012eae96b4336fd
BLAKE2b-256 9736d8ac8032bf807b8d540c2d3784b11271091c300612436209932d51d6cb83

See more details on using hashes here.

File details

Details for the file gspark_agent-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: gspark_agent-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.0a6

File hashes

Hashes for gspark_agent-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2595b39bd41dca9608d3bc398f1850dff28e6b030e5e7801b140d8c178e7308a
MD5 d02f180632bd80b8b428a001d0abcb9f
BLAKE2b-256 a1dbe06918045f1d561a3877d8e661cd19980a56ba7cbe6ceb8a1c7902aef200

See more details on using hashes here.

Release history Release notifications | RSS feed

0.6.1

2 files

0.6.0

2 files

0.5.2

2 files

This release

0.5.1 This release

2 files

0.5.0

2 files

0.4.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page