Skip to content

AI assistants (MCP)

AVACOM serves a Model Context Protocol server, so an AI assistant the bank already uses (Claude Desktop, GitHub Copilot in VS Code, Claude Code or any other MCP client) can answer questions such as “what is firing right now?” or “why did the payments incident happen, and how sure is AVACOM?” from AVACOM’s own data.

Every tool only reads. None changes an incident’s status, runs a fix, sends an RCA or edits anything; a client that asks for anything else is refused, and the refusal is recorded.

The server is the API’s /mcp path:

Install MCP address
Production (docker-compose.prod.yml) https://<your domain>/backend/mcp
Single sign-on (docker-compose-with-sso.yml) https://<your domain>/v2/mcp
Evaluation (docker-compose.yml) http://localhost:8080/mcp

It speaks MCP’s streamable HTTP transport without sessions: each request is a POST with JSON-RPC, and each answer is plain JSON. There is no event stream (GET answers 405) and nothing to close (DELETE answers 405 too).

With single sign-on, /v2/mcp takes API keys only and skips the sign-in page, as alert ingestion does (oauth2proxy/nginx.conf.template).

  1. Open Settings › Users and Access › API Keys and press Create API Key.

  2. Name it after the assistant, for example assistant-noc-desk: the name is what the audit trail shows.

  3. Choose the role:

    • noc for most assistants. The assistant sees what a NOC user sees in the app. What the AI’s drill-down fetched from the sources (its queries and their records) stays hidden, as it is for NOC users.
    • admin only when the assistant must see what the drill-down fetched.

    webhook and workflowrunner keys are refused: they may not read incidents.

  4. Copy the key once and store it where the client reads secrets (below). Do not paste it into a chat, and always send it in the x-api-key header: a key in the address (?api_key=) is refused, because addresses are logged.

Give each assistant, or each person, a key of its own: the rate limit and the audit trail count per key, and deleting a key cuts off that assistant alone. A signed-in person’s bearer token also works, with that person’s role.

The examples use https://avacom.bank.local/backend/mcp; replace it with your address.

Add .vscode/mcp.json to the workspace (or run MCP: Add Server and choose HTTP). VS Code asks for the key the first time and stores it in its secret storage:

.vscode/mcp.json
{
"inputs": [
{ "type": "promptString", "id": "avacom-key", "description": "AVACOM API key", "password": true }
],
"servers": {
"avacom": {
"type": "http",
"url": "https://avacom.bank.local/backend/mcp",
"headers": { "x-api-key": "${input:avacom-key}" }
}
}
}

Start the server from the file’s Start link, then pick the AVACOM tools in Copilot Chat’s agent mode.

Claude Desktop reaches a server that needs a header through the mcp-remote bridge (Node.js 18 or later). Edit claude_desktop_config.json (Settings › Developer › Edit Config):

claude_desktop_config.json
{
"mcpServers": {
"avacom": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://avacom.bank.local/backend/mcp", "--header", "x-api-key:${AVACOM_API_KEY}"],
"env": { "AVACOM_API_KEY": "<the key>" }
}
}
}

Write the header without a space after the colon: Claude Desktop on Windows splits arguments at spaces. Restart Claude Desktop; the tools appear under the tools icon. If AVACOM’s certificate comes from the bank’s own certificate authority, add "NODE_EXTRA_CA_CERTS": "C:\\certs\\bank-root.pem" (the path to that CA’s certificate) to env. An http:// address other than localhost also needs "--allow-http" in args.

Add the server to the project’s .mcp.json, which reads the key from the environment:

.mcp.json
{
"mcpServers": {
"avacom": {
"type": "http",
"url": "https://avacom.bank.local/backend/mcp",
"headers": { "x-api-key": "${AVACOM_API_KEY}" }
}
}
}

Or add it for yourself only:

Terminal window
claude mcp add --transport http avacom https://avacom.bank.local/backend/mcp --header "x-api-key: $AVACOM_API_KEY"

/mcp inside Claude Code shows whether it connected.

Any client that speaks streamable HTTP and can send a header works: point it at the address and send the key in x-api-key. The official MCP SDKs (Python, TypeScript) do it with their streamable HTTP client and an HTTP client that carries the header. To try the server by hand:

Terminal window
curl -s https://avacom.bank.local/backend/mcp \
-H "x-api-key: $AVACOM_API_KEY" -H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_incidents","arguments":{"limit":3}}}'

AVACOM accepts the MCP versions 2024-11-05, 2025-03-26, 2025-06-18 and 2025-11-25. A browser-based client sends an Origin header: list its origin in AVACOM_MCP_ALLOWED_ORIGINS, or it is refused (403). Desktop clients send none.

Tool What it answers
list_incidents Incidents, newest first: id, name, status, severity, services, alert count and times. Filters: status, severity, service, since and until (ISO times), limit, offset
get_incident One incident, the people’s summary, and whether its RCA is ready and how confident it is
get_rca The root-cause analysis: the probable cause with its graded confidence and the reasons it is not higher, the hypotheses, blind spots and fix steps (without their commands). detail: "full" adds the timeline, findings, every citation, the fix commands and what the AI looked at
get_evidence What the analysis collected: an overview of every section, or one section page by page (alerts, metrics, patterns, records, chains, sources, calls). Ids such as A1 or P3 match the RCA’s citations
get_blast_radius The services upstream and downstream of the incident’s services, with hops and paths, and the business services hit
find_similar_incidents Resolved incidents most like this one from the memory: their confirmed cause, whether their RCA was right, what fixed them, and the matching playbooks. When the memory uses embeddings, this asks the tenant’s AI service for the incident’s embedding, as the incident page does
get_regulator_report The incident report’s latest approved version, or the approved version asked for. Drafts and versions in review are never shared

Each tool tells the client it only reads (readOnlyHint), and refuses arguments it does not know.

Trimmed answers. Answers are short summaries with ids, so they fit an assistant’s context. Lists come a page at a time. When a list goes on, the answer holds more: the exact tool and arguments for the next page, for example

"more": { "tool": "get_evidence", "arguments": { "incident_id": "9962d18d-…", "section": "patterns", "offset": 2, "limit": 2 } }

An answer longer than 24,000 characters is refused with a hint to ask for fewer items.

Masked text. Every answer goes through the same masks as what AVACOM sends to its AI: passwords, keys and tokens, private keys, user names and passwords in URLs, card numbers, IBANs and e-mail addresses become [REDACTED], [EMAIL] and the like, and IP addresses become [IP] when the tenant masks them (Settings › AI). If the tenant’s AI settings cannot be read, IP addresses are masked too. Host, service and user names stay as they are. Error messages are masked the same way. Nothing unmasked leaves through the MCP server.

Variable Default What
AVACOM_MCP_CALLS_PER_MINUTE 60 Tool calls per API key (or person) a minute. They are counted in the audit trail, so the limit holds however many server processes there are. Above it the server answers 429 with Retry-After: 60
AVACOM_MCP_ALLOWED_ORIGINS (none) Comma-separated browser origins allowed to call, for example https://assistant.bank.local. Requests without an Origin header are not affected
AVACOM_MCP_ALLOW_NOAUTH false Turn the server on although AVACOM runs without sign-in (AUTH_TYPE=NOAUTH): only on a test install

A request body may be at most 64 KB (a larger Content-Length is refused before the key is even checked), and a batch at most 20 messages. initialize, ping and tools/list are not counted: they read nothing.

Every tool call is recorded before its answer is returned, failed and refused calls included, in the mcpcall table: the time, the caller (the person’s e-mail, or for a key the e-mail of who created it), the key’s name, the role, where the request came from (the address the server saw, and the first X-Forwarded-For address behind a proxy) and its user agent, the tool, the arguments (masked and clipped, their names too), the incident, the outcome (ok, error, refused, rate_limited), the size of the answer in characters and how long it took. The key itself is never recorded. If the call cannot be recorded, it is not answered.

Calls refused by the rate limit share one row per key a minute, with tool (rate limited); its arguments count the requests and calls refused and name their tools. Requests refused before a tool runs (a wrong key, a method the server does not offer) are not in the table; the server’s access log has them.

There is no page for the trail yet. To read it, query the database, for example:

SELECT called_at, caller, api_key_name, client, tool, outcome, result_chars, incident_id
FROM mcpcall WHERE tenant_id = 'avacom' ORDER BY called_at DESC LIMIT 50;

The server’s log also has one line per call (MCP tool call), without the arguments.