feat(mcp): расширение покрытия MCP-инструментов (49 → 70) - #58
Merged
Conversation
Fill the gaps between the MCP tool surface and the REST API so an agent can drive nearly the whole control plane, not just the subset added alongside each feature. Added tools: - domains: get_domain, update_domain, delete_domain - mailboxes: get_mailbox, update_mailbox, get_mailbox_sieve, set_mailbox_sieve - quarantine: list_quarantine, release_quarantine, delete_quarantine - users: list_users, create_user, set_user_role, delete_user - smtp/api-keys/webhooks: update_smtp_account, set_api_key_policy, update_webhook, list_webhook_deliveries - backups: list_backups, create_backup - stats: get_stats - client: add put() (for set_mailbox_sieve) - README: refreshed tool list + count Closes #23 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что это
Закрыл разрыв между набором MCP-инструментов и REST API (закрывает #23). Раньше MCP-тулзы добавлялись точечно вместе с каждой фичей; теперь агент может управлять почти всем control-plane.
49 → 70 инструментов.
Добавлено
get_domain,update_domain,delete_domainget_mailbox,update_mailbox(квота/active/блокировки/notes),get_mailbox_sieve,set_mailbox_sievelist_quarantine,release_quarantine,delete_quarantinelist_users,create_user,set_user_role,delete_userupdate_smtp_account,set_api_key_policy(suppression-exempt),update_webhook,list_webhook_deliverieslist_backups,create_backupget_statsИзменения
mcp/src/index.ts: +21 инструмент, сгруппированы по ресурсам; read-only/destructive аннотации проставлены.mcp/src/client.ts: добавленput()(дляset_mailbox_sieve).mcp/README.md: обновлён список тулзов и счётчик (70).Проверки
mcp typecheck·mcp build— зелёные. Проверил отсутствие дублей имён инструментов. Сторона mailserver-api не затронута (толькоmcp/).Заметка
MCP — тонкая обёртка над REST (каждый tool = вызов эндпоинта), поэтому фактическая корректность подтверждается против живого API при использовании; гейт — typecheck+build. Формат
mcp/не прогонял через prettier (пакет им не управляется — как отмечалось ранее); новые тулзы follow существующий стиль файла.Closes #23
🤖 Generated with Claude Code