Skip to main content

openboost-cli

OpenBoost MCP 的统一命令行工具和 Python 客户端,支持 TikTok、Patent、Amazon、Social 四类业务工具,以及账号、套餐和订单工具。

  • 业务工具:TikTok 32、Patent 17、Amazon 38、Social 11,共 98 个

  • 账号工具:6 个

  • 合计:104 个工具

  • PyPI 包名:openboost-cli

  • 命令行入口:openboost

  • Python 包名:openboost_cli

  • Python 版本:3.10 及以上

安装

从 PyPI 安装:

pip install openboost-cli

从源码使用 uv 安装开发环境:

uv sync
uv run openboost --help

配置

可以将通用密钥写入配置文件:

openboost config set --secret-key "your-secret-key"

也可以只配置某个 MCP:

openboost config set --mcp amazon --secret-key "your-secret-key"
openboost config set --mcp amazon --base-url "https://mcp.openboostai.com/mcp-servers/openboost-all-mcp/sse"

默认配置文件位于:

~/.config/openboost/config.json

支持以下环境变量:

OPENBOOST_CONFIG
OPENBOOST_SECRET_KEY
OPENBOOST_TIKTOK_SECRET_KEY
OPENBOOST_PATENT_SECRET_KEY
OPENBOOST_AMAZON_SECRET_KEY
OPENBOOST_SOCIAL_SECRET_KEY
OPENBOOST_ACCOUNT_SECRET_KEY
OPENBOOST_TIKTOK_BASE_URL
OPENBOOST_PATENT_BASE_URL
OPENBOOST_AMAZON_BASE_URL
OPENBOOST_SOCIAL_BASE_URL
OPENBOOST_ACCOUNT_BASE_URL

密钥也可仅对一次调用通过顶层 --key 参数提供。不要将密钥提交到代码仓库。

命令行使用

查看帮助和全部工具:

openboost --help
openboost list

查看某个工具的参数:

openboost docs tiktok tt_commodity_info_list

使用快捷命令:

openboost tiktok commodity category-tree
openboost patent search count "TACD: virtual reality"
openboost amazon hot cat-tree --site 1 --rank-type "Best Seller"
openboost social youtube post-info "video-id"
openboost account info

使用通用调用命令:

openboost call tiktok tt_video_content \
  --set countryRegion=美国 \
  --set videoId=123456

复杂参数可以从 JSON 文件或标准输入读取:

openboost call patent patent_query_search --payload request.json
echo '{"query_text":"TACD: virtual reality","limit":10}' | \
  openboost call patent patent_query_search --stdin

不带子命令运行 openboost 会进入交互式菜单,也可以显式运行:

openboost tui

Python 客户端

Python 客户端按 MCP 分类提供动态工具方法,方法名与 MCP tool name 保持一致:

from openboost_cli import OpenBoost

client = OpenBoost(secret_key="your-secret-key")

result = client.tiktok.tt_video_content(
    countryRegion="美国",
    videoId="123456",
)

patents = client.patent.patent_query_search(
    query_text="TACD: virtual reality",
    limit=10,
)

video = client.social.youtube_fetch_post_info(media_id="video-id")
account = client.account.account_info()

也可以按名称取得某个 MCP 客户端:

tiktok = client.client("tiktok")
result = tiktok.call_tool(
    "tt_commodity_get_commodity_cat_tree",
    {},
)

开发与构建

uv sync
uv run pytest
uv build

维护者可使用具有完整权限的密钥从统一 MCP 同步公开工具元数据和参数 Schema。脚本不会保存或输出密钥:

OPENBOOST_SECRET_KEY="your-secret-key" \
uv run python scripts/sync_mcp_schemas.py --apply

单元测试不会访问真实接口。真实接口 smoke test 必须同时显式设置开关和密钥:

OPENBOOST_RUN_INTEGRATION=1 \
OPENBOOST_TIKTOK_SECRET_KEY="your-secret-key" \
uv run pytest -m integration

项目不会自动发布到 PyPI;发布前请人工检查构建产物和版本号。

Metadata

Release files for openboost-cli 3.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openboost-cli 3.1.0
File Size Uploaded Provenance Actions
openboost_cli-3.1.0.tar.gz 61.8 kB Without provenance Details for openboost_cli-3.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openboost-cli 3.1.0
File Interpreter ABI Platform Actions
openboost_cli-3.1.0-py3-none-any.whl Python 3 none any Details for openboost_cli-3.1.0-py3-none-any.whl

Total release size: 183.9 kB

Release files / openboost_cli-3.1.0.tar.gz

Download URL openboost_cli-3.1.0.tar.gz
Size 61.8 kB
Tags Source
SHA-256 checksum
How to use checksums
63447628a02bbe155102e625bfd143e41aadc3e37832a62df040402d23a66eec
BLAKE2b-256 checksum
How to use checksums
8c1b3f30b4b5a783db3ca4d9c93e3c1ec8e03681f959aa59c9bcfd6eb1e4323f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / openboost_cli-3.1.0-py3-none-any.whl

Download URL openboost_cli-3.1.0-py3-none-any.whl
Size 122.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0686cf5659b2df4d56f15eb2b58af759f172b86b7379e711409a8004ed42248
BLAKE2b-256 checksum
How to use checksums
976344d57b9bb88cf6ab5500853acc404ab298e33b7a5bca11e2fe0d04cd24fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for openboost-cli 3.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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