GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #353 from modelstudioai/feat/mcp-skill · modelstudioai/cli@5ef7a89

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • CHANGELOG.md
  • CHANGELOG.zh.md
  • README.md
  • README.zh.md
  • docs/agents
    • auth-change.md
    • skill-change.md
  • packages
    • bailian-kb-dsh
      • package.json
    • bailian-memo-dsh
      • package.json
    • cli
      • README.md
      • README.zh.md
      • package.json
      • postinstall.js
      • src
        • commands.ts
      • tests/e2e
        • aliyun-compat.e2e.test.ts
        • knowledge-skill-registry.e2e.test.ts
    • commands
      • package.json
      • src
        • commands
          • config/agent/writers
            • utils.ts
          • knowledge
            • state-store.ts
          • mcp
            • activate.ts
            • agent-config.ts
            • call-arguments.ts
            • call.ts
            • connect.ts
            • create.ts
            • deactivate.ts
            • delete.ts
            • disconnect.ts
            • get.ts
            • list.ts
            • protocol-endpoint.ts
            • registration.ts
            • server-config.ts
            • server-lifecycle.ts
            • server-management.ts
            • server-response.ts
            • tool-call.ts
            • tool-list.ts
            • tool-response.ts
            • tool-search.ts
            • tools.ts
            • update.ts
          • shared
            • state-lock.ts
          • skill
            • add.ts
            • catalog.ts
            • get.ts
            • init.ts
            • lifecycle.ts
            • list.ts
            • managed-files.ts
            • mcp-dependencies.ts
            • packages.ts
            • registry-lifecycle.ts
            • remove.ts
            • search.ts
            • targets.ts
            • update-check.ts
            • update.ts
          • update.ts
        • index.ts
      • tests
        • e2e
          • console-flags-dry-run.e2e.test.ts
          • fixtures
            • mcp-detail.ts
          • mcp-management.e2e.test.ts
          • mcp.e2e.test.ts
          • pi-agent.e2e.test.ts
          • skill-catalog.e2e.test.ts
          • skill-lifecycle.e2e.test.ts
          • skill.e2e.test.ts
          • topic-routes.ts
        • mcp-agent-config.test.ts
        • output
          • local-command-output.test.ts
        • update-binary-skill-sync.test.ts
    • core
      • package.json
      • src
        • client
          • client.ts
          • endpoints.ts
          • http.ts
          • index.ts
          • mcp-sdk.ts
          • mcp.ts
          • service-planes.ts
        • errors
          • api.ts
        • skills
          • catalog-installs.ts
          • index.ts
          • installer.ts
          • lock.ts
          • types.ts
          • zip.ts
        • types
          • command.ts
      • tests
        • helpers
          • skill-archive.ts
        • skills-installer.test.ts
        • telemetry-service-planes.test.ts
    • kscli
      • README.md
      • README.zh.md
      • package.json
    • runtime
      • package.json
      • src
        • middleware.ts
        • preparation.ts
        • registry.ts
        • utils
          • update-checker.ts
      • tests
        • console-flags.e2e.test.ts
        • harness
          • cross-domain-main.ts
        • preparation.test.ts
        • update-checker.test.ts
  • skills
    • bailian-cli
      • SKILL.md
      • reference
        • index.md
        • mcp.md
        • skill.md
    • bailian-finetune
      • SKILL.md
    • bailian-gen
      • SKILL.md
    • bailian-knowledge
      • SKILL.md
    • bailian-managed-agent
      • SKILL.md
    • bailian-memory
      • SKILL.md
    • bailian-opd
      • SKILL.md
    • bailian-protocol
      • SKILL.md
      • assets
        • issue-reporting.md
        • versioning.md
    • bailian-sandbox
      • SKILL.md
    • bailian-web-search
      • SKILL.md
  • tools
    • generate-reference.ts

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎CHANGELOG.md‎

Copy file name to clipboardExpand all lines: CHANGELOG.md
+17Lines changed: 17 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,23 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
66

77
[中文版](CHANGELOG.zh.md) · [README](README.md) · [Contributing](CONTRIBUTING.md)
88

9+
## [2.14.0] - 2026-11-27
10+
11+
### Added
12+
13+
- Inspect servers with `bl mcp get`, create, update or delete custom servers, and activate or deactivate official and custom servers in batches. Use `bl mcp tool search`, `list`, and `call` to find, list and invoke tools through OpenAPI.
14+
- Search official and private workspace skills with `bl skill search`. Select cloud skills by `--code` and public OSS skills by `--name`. Choose an agent and user or project scope at installation time. For cloud skills, you can pin a version, preview update differences, or remove an installation offline.
15+
16+
### Changed
17+
18+
- `bl mcp list` now requires a standard Bailian API key and reports local agent registrations. **(BREAKING)**
19+
- `bl skill list` and `bl skill update` now default to the cloud catalog. To keep using OSS, run `bl skill list --source oss` and `bl skill update --all`. **(BREAKING)**
20+
- `bl mcp connect` and `bl skill add` activate inactive MCP services they need by default, which can incur charges. Preview the operation with `--dry-run`. To skip activation, use `--and-activate=false` for connections or `--with-mcp false` for skill installations.
21+
22+
### Fixed
23+
24+
- `bl mcp tools` now follows pagination so servers with multiple pages return their full tool list.
25+
926
## [2.13.0] - 2026-11-27
1027

1128
### Added
Collapse file

‎CHANGELOG.zh.md‎

Copy file name to clipboardExpand all lines: CHANGELOG.zh.md
+17Lines changed: 17 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,23 @@
66

77
[English](CHANGELOG.md) · [README](README.zh.md) · [参与贡献](CONTRIBUTING.zh.md)
88

9+
## [2.14.0] - 2026-11-27
10+
11+
### 新增
12+
13+
- `bl mcp get` 可查看 MCP 服务详情。自定义服务支持创建、更新和删除,官方及自定义服务支持批量启停。使用 `bl mcp tool search`、`list` 和 `call` 可通过 OpenAPI 搜索、列出和调用工具。
14+
- `bl skill search` 可搜索官方 Skill 和工作空间的私有 Skill。用 `--code` 指定云端 Skill,用 `--name` 指定公共 OSS Skill。安装时可选择 Agent 和用户或项目范围。云端 Skill 支持固定版本、预览更新差异和离线移除本地安装。
15+
16+
### 变更
17+
18+
- `bl mcp list` 改用普通百炼 API Key,结果包含本地 Agent 注册信息。**(BREAKING)**
19+
- `bl skill list` 和 `bl skill update` 默认使用云端目录。原有 OSS 脚本请分别改用 `bl skill list --source oss` 和 `bl skill update --all`。**(BREAKING)**
20+
- `bl mcp connect` 和 `bl skill add` 默认会开通所需的未启用 MCP 服务,可能产生费用。可用 `--dry-run` 预览。跳过自动开通时,连接 MCP 服务用 `--and-activate=false`,安装 Skill 用 `--with-mcp false`。
21+
22+
### 修复
23+
24+
- `bl mcp tools` 现在会读取后续分页,工具较多时也能列出完整清单。
25+
926
## [2.13.0] - 2026-11-27
1027

1128
### 新增
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+23-1Lines changed: 23 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ Synchronous Batch Chat is non-streaming; explicit realtime/international/Token P
192192

193193
### Console Login (OAuth, Recommended)
194194

195-
Required for console capability commands (model list, flow-agent list, MCP list, workspace, usage queries, rate-limit increases, direct console calls). It can create an ordinary API key when needed. Token Plan and other subscription plans cannot use `--console`; use the API Key login below.
195+
Required for console capability commands (model list, flow-agent list, workspace, usage queries, rate-limit increases, direct console calls). It can create an ordinary API key when needed. Token Plan and other subscription plans cannot use `--console`; use the API Key login below.
196196

197197
```bash
198198
bl auth login --console
@@ -218,6 +218,28 @@ Input must be one raw token (up to 64 KiB), not JSON or `Bearer ...`; interactiv
218218

219219
### API Key
220220

221+
MCP management and cloud Skill commands use the configured workspace ID to build the Beijing workspace endpoint. Set it once with `bl config set workspace_id <id>`, or use `BAILIAN_WORKSPACE_ID` or `--workspace-id`. An explicit model base URL (flag, environment or profile) takes precedence.
222+
223+
Search the cloud Skill catalog with a Bailian API key, for example `bl skill search --keyword pdf --type official`. Pass a returned `skill_code` to `bl skill get --code <skill_code>` to see the latest version and local installation paths. Omit `--type` to include private skills in your workspace. `skill get` also reads MCP server codes from the latest package’s `mcp-config.json` by default. Use `--with-mcp false` to skip the package download.
224+
225+
Install a search result with `bl skill add --code <skill_code> --agent cursor --scope project`. Add `--skill-version 1.0` to pin a version. `bl skill list --scope project` shows installation paths and states. Preview updates with `bl skill update --code <skill_code> --scope project --diff --dry-run` and omit `--dry-run` to apply. `bl skill remove --code <skill_code> --agent cursor --scope project` removes that local installation offline.
226+
227+
When targeting a skill with `get`, `add`, `update` or `remove`, use either `--code` with its cloud OpenAPI code or `--name` with its public OSS registry name. For example, `bl skill add --name spark-video` installs one OSS skill. `bl skill add --all` installs the entire public OSS registry. Browse that registry with `bl skill list --source oss`.
228+
229+
Skill commands check unpinned installations from the selected source and report available updates on stderr. The check reuses catalog reads and caches revisions for 24 hours. Removal uses the cache offline. Run `bl skill update` to update installed cloud skills, or `bl skill update --all` to update installed OSS skills. `bl skill update --name all` remains an alias for `bl skill update --all`.
230+
231+
Installation activates inactive MCP dependencies by default, which may incur charges. Use `--dry-run` to preview the activation plan. To install only the Skill, pass `--with-mcp false`.
232+
233+
Use an ordinary Bailian API key to list activated MCP servers (`bl mcp list`), inspect server details and tools (`bl mcp get --server <code>`), and manage custom servers (`bl mcp create`, `update`, `delete`). Use `--dry-run` to preview changes. Deleting a custom server requires `bl mcp delete --server <code> --yes`.
234+
235+
Search for tools with a natural-language query, for example `bl mcp tool search --query "look up an order" --limit 5`. Recommendations can trigger OneKey activation. For a known server, use `bl mcp tool list --server <code>` to read its tools and input schemas through OpenAPI. Listing tools can also trigger OneKey activation. Both commands support a local `--dry-run` preview. To inspect tools through an MCP session, use `bl mcp tools --server <code>` with an optional `--url <endpoint>`.
236+
237+
To call a tool through OpenAPI, run `bl mcp tool call --server <code> --tool getOrder --arg orderId=A123`. Use `--dry-run` to preview the arguments. Calling a tool may activate a OneKey service. To call through an MCP session, use `bl mcp call --target <code>.getOrder --arg orderId=A123`. Both commands apply `--json` first, then repeated `--arg` values, and finally `--query` as text.
238+
239+
Use `bl mcp activate --server <code,...>` or `bl mcp deactivate --server <code,...>` for up to 30 distinct official or custom servers. Preview changes with `--dry-run`. OneKey activation may place an order. Stopping a custom server keeps its saved configuration.
240+
241+
Use `bl mcp connect --server <code> --transport streamable-http --agent cursor` to register the workspace endpoint. Connecting activates an inactive service by default. Use `--and-activate=false` to connect only to active services. Add `--scope project` from the project root for project-level registration. Agent config files and backups can contain your API key. `bl mcp disconnect --server <code> --agent cursor` removes the matching local registration offline. Use the same scope for both commands.
242+
221243
To use an existing ordinary API key or a Token Plan subscription key, run the same command:
222244

223245
```bash
Collapse file

‎README.zh.md‎

Copy file name to clipboardExpand all lines: README.zh.md
+23-1Lines changed: 23 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ bl text chat --batch --model qwen-plus --message "你好" --timeout 3600
191191

192192
### 控制台登录(OAuth,推荐)
193193

194-
控制台能力命令(模型列表、应用列表、MCP 列表、工作空间、用量查询、限流提额、控制台直调)需要使用此登录方式,并可在需要时创建普通 API Key。Token Plan 等订阅计划不能使用 `--console`,请使用下面的 API Key 登录方式。
194+
控制台能力命令(模型列表、应用列表、工作空间、用量查询、限流提额、控制台直调)需要使用此登录方式,并可在需要时创建普通 API Key。Token Plan 等订阅计划不能使用 `--console`,请使用下面的 API Key 登录方式。
195195

196196
```bash
197197
bl auth login --console
@@ -217,6 +217,28 @@ bl auth login --console --token-stdin --console-site international --console-reg
217217

218218
### API Key
219219

220+
MCP 管理命令和云端 Skill 命令会用工作空间 ID 自动拼接北京地域的专属域名。可用 `bl config set workspace_id <id>` 配置一次,也可通过 `BAILIAN_WORKSPACE_ID` 或 `--workspace-id` 指定。若已通过参数、环境变量或 Profile 设置模型 Base URL,则优先使用该地址。
221+
222+
使用百炼 API Key 查询云端 Skill,例如 `bl skill search --keyword pdf --type official`。用结果中的 `skill_code` 执行 `bl skill get --code <skill_code>`,可查看最新版本及本地安装路径。省略 `--type` 会同时检索官方 Skill 和当前工作空间的私有 Skill。`skill get` 默认读取最新版本包中 `mcp-config.json` 声明的 MCP 服务编码。只需元数据时,加 `--with-mcp false` 可跳过下载。
223+
224+
用 `bl skill add --code <skill_code> --agent cursor --scope project` 安装搜索到的 Skill。加 `--skill-version 1.0` 可固定版本。`bl skill list --scope project` 显示安装位置和状态。`bl skill update --code <skill_code> --scope project --diff --dry-run` 预览更新,去掉 `--dry-run` 后应用。`bl skill remove --code <skill_code> --agent cursor --scope project` 只移除该 Agent 的本地安装,可离线执行。
225+
226+
对指定 Skill 执行 `get`、`add`、`update`、`remove` 时,使用 `--code` 传入云端 OpenAPI 编码,或用 `--name` 传入公开 OSS Registry 名称,二者互斥。例如,`bl skill add --name spark-video` 安装一个公开 Skill,`bl skill add --all` 安装公开 OSS Registry 中的全部 Skill。用 `bl skill list --source oss` 查看公开目录。
227+
228+
运行 Skill 命令时,CLI 会检查当前来源中未固定版本的已安装项,并在 stderr 提示可用更新。检查会复用本次目录查询,版本信息缓存 24 小时;卸载时只读有效缓存。运行 `bl skill update` 更新已安装的云端 Skill,或用 `bl skill update --all` 更新已安装的 OSS Skill。原有写法 `bl skill update --name all` 与 `bl skill update --all` 等效。
229+
230+
安装时默认开通包内声明且尚未启用的 MCP 依赖,可能产生费用。使用 `--dry-run` 可预览开通计划。仅安装 Skill 可加 `--with-mcp false`。
231+
232+
使用百炼普通 API Key 即可列出已启用的 MCP 服务(`bl mcp list`)、查看服务详情和工具(`bl mcp get --server <code>`),以及管理自定义服务(`bl mcp create`、`update`、`delete`)。可用 `--dry-run` 预览变更。删除自定义服务须执行 `bl mcp delete --server <code> --yes`。
233+
234+
可用自然语言查找工具,例如 `bl mcp tool search --query "查询订单" --limit 5`。推荐请求可能触发 OneKey 服务开通。已知服务编码时,可用 `bl mcp tool list --server <code>` 通过 OpenAPI 查看工具和入参定义。查询工具也可能触发 OneKey 服务开通。两个命令都支持用 `--dry-run` 在本地预览。要通过真实 MCP 会话查看工具,可用 `bl mcp tools --server <code>`,也可用 `--url <endpoint>` 指定端点。
235+
236+
通过 OpenAPI 调用工具可用 `bl mcp tool call --server <code> --tool getOrder --arg orderId=A123`。用 `--dry-run` 可预览参数。调用工具可能触发 OneKey 服务开通。通过 MCP 会话调用同一工具可用 `bl mcp call --target <code>.getOrder --arg orderId=A123`。两个命令都先取 `--json`,再按顺序应用 `--arg`,最后用 `--query` 的文本覆盖同名参数。
237+
238+
使用 `bl mcp activate --server <code,...>` 或 `bl mcp deactivate --server <code,...>` 可批量开通或停用官方和自定义服务,去重后最多 30 个。用 `--dry-run` 可预览变更。开通 OneKey 服务可能下单。停用自定义服务会保留已保存的配置。
239+
240+
用 `bl mcp connect --server <code> --transport streamable-http --agent cursor` 注册工作空间端点。接入时默认开通尚未启用的服务。用 `--and-activate=false` 可仅接入已启用的服务。项目级注册需在项目根目录加 `--scope project`。Agent 配置和备份可能含有 API Key。用 `bl mcp disconnect --server <code> --agent cursor` 可离线移除相同作用域的本地托管注册。
241+
220242
使用已有的普通 API Key 或 Token Plan 订阅 Key,都执行同一条命令:
221243

222244
```bash
Collapse file

‎docs/agents/auth-change.md‎

Copy file name to clipboardExpand all lines: docs/agents/auth-change.md
+2Lines changed: 2 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ defineCommand({ auth }) → runtime/authStage → ctx.client → command.run(ctx
2929
- `openapi` — 阿里云 OpenAPI 签名域,用 AccessKey ID/Secret 调用 Token Plan 等 OpenAPI
3030
- `none` — 本地命令、登录/配置类命令、无需 credential 的命令
3131

32+
同一命令同时支持公开来源和鉴权来源时,可通过 `requiresApiKey(flags)` 声明何时解析 API Key。例如 Skill 的 OSS Registry 可匿名读取,云端目录使用当前 Profile 的百炼 API Key。`skill get/add/update/remove` 的 `--name` 选择公开 OSS Registry,`--code` 选择云端 OpenAPI。移除按所选来源筛选本地记录,可离线执行。`skill list` 默认查询云端,`--source oss` 列出公开目录。`skill add --all` 从 OSS 安装,`skill update --all` 匿名更新已安装的 OSS Skill。不带选择器的 `skill update` 默认走云端。OSS 安装检查包声明的 MCP 时,`requiresApiKey` 返回 `"optional"`,由 runtime 注入已配置的 API Key;无 MCP 依赖的包可匿名安装。
33+
3234
### 可选 console 副凭证
3335

3436
`auth: "apiKey"` 的命令可用 `optionalConsole: true` 声明 best-effort console 副凭证(例:`cmodel import` 提交前用 console 目录预检基础模型)。runtime 在注入 apiCred 后尽力 `resolveConsole`;解析失败静默跳过,**不得**让 apiKey 主流程失败。此类命令的 help 会额外展示 console 域 flag(`--console-region` / `--console-site` / `--console-switch-agent`),命令捕获 `client.console` 的 AUTH 错误后降级并 warning。纯 console 请求仍必须声明 `auth: "console"`。
Collapse file

‎docs/agents/skill-change.md‎

Copy file name to clipboardExpand all lines: docs/agents/skill-change.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
2. **`bailian-protocol` 是共享协议 skill**,业务 skill 执行前应 Read 它
1616
3. **不要**在 frontmatter 写 `companions`,也不要对外说「companions = 安装器硬依赖」
1717
4. 子集安装:`bl skill add --name bailian-protocol,<skill>`;漏装 protocol 会导致相对路径 Read 失败
18-
5. **`bl skill add --all`:** 安装 registry 全量(含 `spark-video` 等非 bailian 技能);不要用 `--all` 做升级同步。首次 / 整包用 `bl skill init`。升级后自动同步以及 `bl update` 成功后用 `bl skill update`(只更新已安装,不装新 skill)。
18+
5. **OSS 批量安装与更新**:首次安装百炼整包用 `bl skill init`。`bl skill add --all` 安装公开 Registry 全量 Skill(含 `spark-video` 等非百炼 Skill)。升级后自动同步及 `bl update` 使用 `bl skill update --all` 更新已安装的 OSS Skill。
1919

2020
## 概念图
2121

@@ -38,7 +38,7 @@ bailian-gen bailian-finetune bailian-managed-agent bailian-web-search
3838

3939
### A. 分层边界
4040

41-
- [ ] **整包装齐**:安装 / 缺 skill 文案主推 `bl skill init`;升级同步用 `bl skill update`(只更新已安装,不装新 skill);业务 skill **不**声明 `companions`
41+
- [ ] **整包装齐**:安装 / 缺 skill 文案主推 `bl skill init`;升级同步用 `bl skill update --all`(只更新已安装,不装新 skill);业务 skill **不**声明 `companions`
4242
- [ ] **协议读取**:CRITICAL / references 可链 `../bailian-protocol/…`;若读不到 → 停止执行 `bl`,提示 `bl skill init`
4343
- [ ] **调用归因**:协议 `SKILL.md` 放 bash + PowerShell 的 agent / script 模板与协议样例;每个业务 skill **只留一条**填好的 agent 样例并链回协议;其余示例 / `assets/` / `reference/` 保持裸 `bl …`。Agent 当面 inline 套 agent 四变量;**抄进可复用脚本时改用 protocol `script` 模板**,并写明「样例仅当面 inline」。禁止为冒充 agent 而设变量,也禁止写入 shell profile / direnv / CI 全局环境
4444
- [ ] **高风险确认**:统一由 `bailian-protocol` 定义;reference / leaf help 以 `risk: high` 明示风险,业务 skill 不得引导 Agent 自动补 `--yes`。遇到 exit code 7 / `requires_confirmation` 时停止执行并请求确认;目标或范围变化后重新确认
Collapse file

‎packages/bailian-kb-dsh/package.json‎

Copy file name to clipboardExpand all lines: packages/bailian-kb-dsh/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bailian-kb-dsh",
3-
"version": "2.13.0",
3+
"version": "2.14.0",
44
"description": "Bailian knowledge-base tools for DeepSeek Harness: kb_search and kb_chat over the DashScope RAG API, plus the bl CLI management skill.",
55
"keywords": [
66
"alibaba-cloud",
Collapse file

‎packages/bailian-memo-dsh/package.json‎

Copy file name to clipboardExpand all lines: packages/bailian-memo-dsh/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bailian-memo-dsh",
3-
"version": "2.13.0",
3+
"version": "2.14.0",
44
"description": "Bailian personal memory for DeepSeek Harness: automatic recall, silent curation, and user-controlled remember/forget.",
55
"keywords": [
66
"alibaba-cloud",

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.