From cb7f4c30fb17420310e8906050a64cb0ca7055cf Mon Sep 17 00:00:00 2001 From: leemour Date: Tue, 17 Nov 2026 23:26:47 +0100 Subject: [PATCH] fix(mcp): the registry entry asks which profiles to serve server.json started `mcp serve --profiles all`, so a client installed from the MCP Registry reached every account on the computer without the owner choosing one. That breaks "never pick an account for the owner" (WC-MCP-9). --profiles is now a required named argument with the placeholder `personal`, as yandex-disk-cli ships it. mcp serve already takes one name, a comma-separated list or all (cli-core mcpGroup). The version stays 0.0.0: release.yml sets it at publish time. Checked with mcp-publisher 1.8.5 validate. Co-Authored-By: Claude Opus 5.5 --- changes/fix-registry-profiles-required.md | 8 ++++++++ server.json | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 changes/fix-registry-profiles-required.md diff --git a/changes/fix-registry-profiles-required.md b/changes/fix-registry-profiles-required.md new file mode 100644 index 00000000..0ced1a61 --- /dev/null +++ b/changes/fix-registry-profiles-required.md @@ -0,0 +1,8 @@ +### Изменено — может сломать скрипты + +- **Запись в MCP Registry спрашивает, какие профили обслуживать.** Раньше она запускала `mcp serve --profiles all`, и + клиент, установивший сервер из реестра, получал все аккаунты на компьютере, хотя владелец их не выбирал. Теперь + `--profiles` — обязательный аргумент с примером `personal`: клиент спрашивает один профиль, список через запятую + или `all`. Зачем: CLI никогда не выбирает аккаунт за владельца + ([WC-MCP-9](https://github.com/WireCatLabs/cli-base/blob/main/docs/standards/mcp.md#wc-mcp-9--a-server-serves-the-profiles-it-is-told-with-one-connection-for-each)). Обратите внимание: клиент, настроенный по старой записи, оставит `--profiles all`, пока его не + настроят заново; сервер, добавленный вручную или через `mcp config`, не меняется. diff --git a/server.json b/server.json index e07e4e78..f67152ed 100644 --- a/server.json +++ b/server.json @@ -30,7 +30,9 @@ { "type": "named", "name": "--profiles", - "value": "all" + "description": "The profiles this server serves: one name, a comma-separated list such as work,personal, or all for every profile on this computer", + "isRequired": true, + "placeholder": "personal" } ] }