Skip to main content

openboost-cli

OpenBoost MCP 的统一命令行工具和 Python 客户端,支持 TikTok、Patent 和 Amazon 三类 MCP 服务。

  • 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 "http://mcp.microdata-inc.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_TIKTOK_BASE_URL
OPENBOOST_PATENT_BASE_URL
OPENBOOST_AMAZON_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 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,
)

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

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

开发与构建

uv sync
uv run pytest
uv build

单元测试不会访问真实接口。真实接口 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 2.0.1

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 2.0.1
File Size Uploaded Provenance Actions
openboost_cli-2.0.1.tar.gz 39.9 kB Without provenance Details for openboost_cli-2.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 108.4 kB

Release files / openboost_cli-2.0.1.tar.gz

Download URL openboost_cli-2.0.1.tar.gz
Size 39.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c96b31bd585562c3e5c3ddaf82bfde92180d01994ab03a6cd7d15b5f66350e7d
BLAKE2b-256 checksum
How to use checksums
cc43fbe653c3475aebf24e02099a8eb8146ce380b55fc97596941276a3f26886
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL openboost_cli-2.0.1-py3-none-any.whl
Size 68.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a85548da2270717b141f76093274bfe12d37807bf4a27320f8f3095e4f6c548e
BLAKE2b-256 checksum
How to use checksums
6f220a76385a947a062d99b26f4bf3a91f7d2b1a1468042c08a02b4d194f2a17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for openboost-cli 2.0.1

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