К содержанию
TelegaFirst

Для AI-агентов: markdown этой страницы — /docs/mcp-integrations.mdиндекс документации — /llms.txt

MCP: integrations

Обновлено

Определения инструментов. Обновляйте tools/list после изменения прав. required_scopes: ALL.

configure_integration

Configure (upsert) a CRM connector for the tenant. Provide `credentials` — bitrix24 {type,webhook_url}, getcourse {type,account,api_key} or amocrm {type,subdomain,access_token} (the long-lived token: amoMarket → Create integration → Keys and access) — plus optional settings (`pipeline_id`, `default_stage_id`, `paid_stage_id` from `list_crm_pipelines`; GetCourse `gc_funnel_id` / `gc_funnel_stage_id`), subscribed_events (any of order.created, payment.succeeded, payment.refunded, subscription.updated; an empty list means all of them), is_active. The credentials are checked against the CRM before anything is saved (a refusal names the CRM's answer) and its custom fields are set up; they are encrypted at rest and never returned. Idempotent: reconfiguring reactivates a deleted connector, and a new token lifts an auto-disable the old one caused. OWNER-ONLY (data-egress).

Scopes (ALL): ["integrations:write"]. Risk: "write".

Вход, результат и права

delete_integration

Soft-delete (disconnect) a CRM connector by `crm_type` (bitrix24 / getcourse / amocrm). Idempotent — deleting an absent/already-deleted connector returns deleted:true. OWNER-ONLY.

Scopes (ALL): ["integrations:write"]. Risk: "destructive".

Вход, результат и права

list_crm_pipelines

List the pipelines and their stages of a CONNECTED CRM (bitrix24 / amocrm), read live from it, by the CRM's own ids: the values `configure_integration` settings take as `pipeline_id` (the pipeline a new deal lands in), `default_stage_id` (the stage of a new deal) and `paid_stage_id` (the stage a deal moves to once the order is paid). getcourse has no list to read: it returns an empty `pipelines`, and its optional sales board is set by `gc_funnel_id` / `gc_funnel_stage_id` (the numbers in the board's address). Refused when that CRM is not connected or does not answer. OWNER-ONLY. 0-cost read.

Scopes (ALL): ["integrations:read"]. Risk: "read".

Вход, результат и права

list_integrations

List the tenant CRM connectors (bitrix24 / getcourse / amocrm): each with `crm_type`, `is_active`, `has_credentials` (the secret itself is never returned), `subscribed_events`, non-secret settings (pipeline/stage/offer; pick pipeline and stage ids with `list_crm_pipelines`), auto-disable status and push stats. OWNER-ONLY. 0-cost read.

Scopes (ALL): ["integrations:read"]. Risk: "read".

Вход, результат и права