jjs_cli
v0.1.0
Published
Node.js CLI for case_storage Streamable HTTP MCP tools.
Readme
jjs_cli
Node.js CLI for the case_storage Streamable HTTP MCP service. It follows the same install shape as Bailian-style CLIs: install with npm, then use jjs_cli or the short command jjs.
Install
After publishing to npm:
npm install -g jjs_cli
jjs_cli --help
jjs --helpFrom this repository before publishing:
npm install -g ./cli/jjs_cli
jjs_cli --help
jjs --helpRequires Node.js >=22.12.0 and npm.
Auth
jjs_cli auth login --url "https://<HOST>/mcp" --api-key "<SERVER_API_KEY>"
jjs_cli auth status --json
jjs_cli auth logoutThe key is sent as X-Server-API-Key. CLI output masks the key. Local config is stored under the user config directory as jjs_cli/config.json, or a custom path from CASE_STORAGE_CLI_CONFIG.
Environment overrides:
CASE_STORAGE_MCP_URL="https://<HOST>/mcp"
CASE_STORAGE_SERVER_API_KEY="<SERVER_API_KEY>"Commands
jjs_cli tools
jjs_cli schema create_image
jjs_cli call get_user_info --json
jjs_cli image create --prompt "产品宣传图" --aspect-ratio 3:4 --image-size 2K
jjs_cli video seedance --prompt "产品缓慢旋转" --image "https://example.com/ref.jpg"
jjs_cli task get --task-id "<TASK_ID>" --task-type image
jjs_cli voice public
jjs_cli voice synthesize --content "你好" --speaker-id "<SPEAKER_ID>"
jjs_cli douhot search --keyword "热点" --page 1The installed jjs command is equivalent to jjs_cli:
jjs tools
jjs image create --prompt "产品宣传图" --jsonGeneric calls accept:
jjs_cli call create_image \
--arg prompt="产品宣传图" \
--json-arg image_urls='["https://example.com/ref.jpg"]' \
--jsonTest
npm test
npm pack --dry-runThe automated tests use a fake local MCP server and do not require a real backend or key.
