dmint-mcp gateway can send an outbound notification when an MCP tool call needs human approval or is explicitly denied. Supported destinations are Slack incoming webhooks, Discord webhooks, and Microsoft Teams connectors.Dmint) does not dispatch them.MCP tool call │ ▼ EnforcementGate (asyncio event loop) │ decision: APPROVAL_REQUIRED or DENY ├───────────────────────────────┐ ▼ ▼ Persist / reject asyncio.to_thread(...) (decision is final) │ ▼ serialized notifier (one dispatch at a time) │ ┌────────────┼────────────┐ ▼ ▼ ▼ Slack Discord Teams
route_call awaits the notification handoff before returning the approval/denial response. Dispatch is therefore at-most-once and synchronous from the caller’s perspective, not fire-and-forget. There is no automatic retry. If delivery is operationally important, monitor webhook logs and use a separate reliable queue.| Variable | Destination | Description |
DMINT_SLACK_WEBHOOK_URL | Slack | Incoming webhook URL. |
DMINT_DISCORD_WEBHOOK_URL | Discord | Channel webhook URL. |
DMINT_TEAMS_WEBHOOK_URL | Microsoft Teams | Connector URL. |
DMINT_MSTEAMS_WEBHOOK_URL | Microsoft Teams | Legacy alias used only when DMINT_TEAMS_WEBHOOK_URL is unset. |
DMINT_WEBHOOK_TIMEOUT | All | Positive request timeout in seconds (default 3.0). Invalid or non-positive values fall back to the default. |
DMINT_WEBHOOK_ALLOWED_HOSTS | All | Optional comma-separated hostname allowlist. Listed hosts skip the private/metadata address rejection, but still require HTTPS and DNS-pinned delivery. Use only for an operator-controlled internal destination. |
webhook_notifier was injected. The dmint dashboard and Core Python API do not read these variables for authorization purposes.apr_...);tool.action);(none);dmint approve apr_..., with --deployment-epoch when non-default);DMINT_DATABASE_URL / local environment configuration rather than embedding a connection string in a chat message.@everyone → @\u200beveryone@here → @\u200bhere<!channel> → <!​channel> (zero-width inserted after <!)<@123456> / <@&role> → neutralized[label](url) is rewritten to [label] (url), and Slack-style bracketed URLs are neutralized. This reduces spoofed-link risk in approval messages.https://;100.64.0.0/10), and cloud-metadata destinations;Host header and TLS SNI;MCPConfigurationError before any connection.DMINT_WEBHOOK_ALLOWED_HOSTS is an explicit operator override for private destinations; it does not disable TLS verification or the no-redirect policy.from dmint.core.webhooks import WebhookConfig, WebhookNotifier from dmint.mcp import MCPGateway notifier = WebhookNotifier( WebhookConfig( slack_url="https://hooks.slack.com/services/...", timeout=3.0, ) ) gateway = MCPGateway(config, webhook_notifier=notifier)
webhook_notifier to Dmint(...) expecting Core to dispatch it. That parameter is deprecated and inert: Core emits a DeprecationWarning, and the notifier is never invoked. This preserves Core’s zero-network-call authorization invariant.| Failure | Effect on authorization | Effect on notification |
| Webhook timeout | None; decision unchanged | Logged warning; no retry |
| HTTP 4xx/5xx | None; decision unchanged | Logged warning; no retry |
| DNS/SSRF rejection | None; decision unchanged | Logged warning; no connection |
| Notification disabled/unconfigured | None | No-op |