mirror of
https://github.com/modelstudioai/cli.git
synced 2026-09-14 19:49:23 +08:00
73d9d7ef07
- `bl mcp list` — list MCP servers enabled under the current Bailian account via console gateway PageList (always activated=1). - `bl mcp tools <server-code>` — list tools exposed by a server. - `bl mcp call <server-code>.<tool>` — invoke a tool. Accepts `--json`, repeatable `--arg k=v` (JSON-parsed when possible) and `--query` sugar; `--url` overrides the endpoint for non-Bailian MCPs. - core: export `bailianMcpUrl(baseUrl, code)` building `/api/v1/mcps/<code>/mcp`; `McpClient` now takes a full URL. - `bl search web` switches to `mcpWebSearchEndpoint` directly. - e2e: `mcp.e2e.test.ts` covering help, dry-run, arg-merge semantics, invalid-input paths, and one live `tools/list` against WebSearch.