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.2

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

Built distribution (wheel)

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

Total release size: 109.1 kB

Release files / openboost_cli-2.0.2.tar.gz

Download URL openboost_cli-2.0.2.tar.gz
Size 40.4 kB
Tags Source
SHA-256 checksum
How to use checksums
cc16f7ec6ba85c6a45c1b2c667ca8915d641daf4638ee1c2152d4be89e0322a7
BLAKE2b-256 checksum
How to use checksums
af91590f040ccafbfceba579da046cd48d7cae7935ba4fa463b0a1a4e7ff6002
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.2-py3-none-any.whl

Download URL openboost_cli-2.0.2-py3-none-any.whl
Size 68.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fabe8be5eb8c37a8a4cc2b7b11c0ab4ab05a1811dbff3050ed4b414d9b07cba8
BLAKE2b-256 checksum
How to use checksums
56e68139c2f231256511e12f9da444941a88c50b7d994c615e5777e3e9c99ae4
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.2

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