Skip to content

MCP (AI clients)

Alphyn exposes the telemetry it collects, security logs, crash logs, HTTP traces and device profiles, over the Model Context Protocol. Point an MCP client at the endpoint and ask in plain language: which apps saw the most critical events this week, what a flagged device did before it was killed, whether a detection module an app clearly needs is switched off. The server is read-only. Nothing can be created, changed or deleted through it.

There is nothing to enable. The endpoint is already listening, and any app API key you already hold authenticates it. In the dashboard, the Alerting & SIEM page carries an MCP (AI clients) card whose Configure action generates the snippets below with a real key embedded.

  • Read-only. The tools query logs and statistics. No tool writes, changes a ruleset, unflags a device or touches configuration.
  • Secrets are masked before they leave the server. In HTTP traces, every value holding a PIN, password, bearer token, signature, nonce or attestation chain is replaced with the literal [REDACTED]. The field name is kept, so you can still see which fields a request carried.
  • Access is bound to the key, not to a person. Revoke the key from the app’s API Keys tab and the client loses access immediately. Nothing is stored server-side for a connection, so there is nothing else to remove.
  • Rate limited per client address: 10 requests a second, 100 a minute, 1000 an hour. An agent paging through raw records can reach that. The statistics tools cover a whole window in one call.
  • On-prem installations run the server inside your own cluster. Nothing leaves it except what your AI client reads.
On-premhttps://<your dashboard API host>/api/mcp, the host your dashboard’s browser bundle already calls
Alphyn Cloud (demos and proofs of concept)https://alphyn-dashboard-api.byterialab.com/api/mcp
TransportStreamable HTTP (MCP 2025-06-18). Stateless: every request stands alone, there is no session id.
AuthenticationAuthorization: Bearer <api-key>, or x-api-key: <api-key> for a client that cannot set an Authorization header

The key is any of your apps’ API keys. In the dashboard, open Applications, pick the app and open its API Keys tab.

Replace <your-api-key> with the key. Every example registers the server under the name alphyn, so a support conversation can name one thing.

Terminal window
claude mcp add --transport http alphyn https://alphyn-dashboard-api.byterialab.com/api/mcp \
--header "Authorization: Bearer <your-api-key>"

Claude Desktop reads a stdio-only configuration, so the remote server goes through the mcp-remote bridge, which needs Node.js installed. Add this to claude_desktop_config.json and restart Claude Desktop:

{
"mcpServers": {
"alphyn": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://alphyn-dashboard-api.byterialab.com/api/mcp",
"--header",
"Authorization:${AUTH_HEADER}"
],
"env": {
"AUTH_HEADER": "Bearer <your-api-key>"
}
}
}
}

The header value lives in env on purpose. Claude Desktop on Windows splits arguments on spaces, so a header written as one argument with spaces in it never reaches the server. mcp-remote expands ${AUTH_HEADER} itself.

Merge this into ~/.cursor/mcp.json, restart Cursor, then check the server under Settings, MCP:

{
"mcpServers": {
"alphyn": {
"url": "https://alphyn-dashboard-api.byterialab.com/api/mcp",
"headers": {
"Authorization": "Bearer <your-api-key>"
}
}
}
}

Merge this into .vscode/mcp.json and reload the window. The input variable asks for the key once and keeps it out of the file, so the file is safe to commit. The dashboard’s generated snippet writes the key into the file directly instead; keep that variant out of version control.

{
"inputs": [
{
"type": "promptString",
"id": "alphyn-api-key",
"description": "Alphyn app API key",
"password": true
}
],
"servers": {
"alphyn": {
"type": "http",
"url": "https://alphyn-dashboard-api.byterialab.com/api/mcp",
"headers": {
"Authorization": "Bearer ${input:alphyn-api-key}"
}
}
}
}

Endpoint as above, transport Streamable HTTP, header Authorization: Bearer <your-api-key> or x-api-key: <your-api-key>. A client that opens a GET stream for server notifications gets 405 Method not allowed: the server is stateless and pushes nothing, which every current client tolerates.

initialize needs no prior session, so a single request proves the key, the transport and the route at once:

Terminal window
curl -sS https://alphyn-dashboard-api.byterialab.com/api/mcp \
-H "Authorization: Bearer <your-api-key>" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'

A 200 whose body carries a serverInfo block named alphyn-dashboard means everything is in place. The body arrives as a server-sent event, an event: message line followed by a data: line holding the JSON, which is the Streamable HTTP response format.

The model picks the tools on its own; you never name one. There are 12 tools in 6 groups.

GroupToolAnswers
Applicationslist_appsEvery application the account owns, with the numeric applicationId the other tools take.
Applicationsdescribe_detection_modulesThe detection modules and which are switched on for an app.
Security logslist_security_logsSecurity events newest first, cursor-paged, each with its device posture flags and individual detections.
Security logsget_security_statsCounters for a whole window: totals, unique devices, severity and event-type breakdowns, risk distribution, worst devices.
Crash logslist_crash_logsTerminations newest first, with the crash reason, the enforcement action and the module that triggered it.
Crash logsget_crash_statsCrash totals and unique devices, with the emulated, rooted and malware breakdown.
HTTP traceslist_http_requestsTraced requests newest first, with headers and body. Secrets arrive redacted.
HTTP tracesget_http_statsTraffic volume over time, unique devices and IPs, top endpoints, and the network posture facet.
Devicesget_device_profileOne device’s security events, crashes and HTTP traffic in a single call, with its last activity across all three.
Fraud Protectionlist_fraud_transactionsTransaction-authorization attempts newest first, page-numbered, each with its result code, derived severity and the device risk snapshot at the time.
Fraud Protectionget_fraud_transactionOne attempt in full: the signed context, the device’s current flag, its enrollment tier and its recent attempts.
Fraud Protectionget_fraud_statsApproved, rejected and critical counts with result, action, app and country breakdowns, for one app or the whole account in one call.

The authoritative description of every tool and every input field is what the server returns to tools/list, and the server returns an orientation primer at initialize. This page does not restate them, so it cannot drift from the running server.

A good session runs in this order: list_apps for the ids; the statistics tools for the shape of the problem, since one call covers a whole window that the list tools would need hundreds of pages to reproduce; the list tools only once you know what you are looking for, narrowed by device, URI, severity or time; and describe_detection_modules before concluding an app is clean.

  • Which of my apps saw the most critical security events in the last 7 days, and what caused them?
  • Show me the devices that reported both root and runtime manipulation this month.
  • Device abc123 was flagged. Walk me through everything it did before it was killed.
  • Are any of my apps missing a detection module that its threat profile clearly needs?
  • Compare this week to last week: did emulator detections go up on my Android app?
  • Silence is not safety. A detection module that is switched off reports nothing, which looks exactly like an app with no threats. The server tells the client to check the module catalogue before calling an app clean. The honest answer for a disabled module is “not monitored”, not “not detected”.
  • Two risk levels, both right. A security log carries the risk level the device reported and the detections the same scan produced, and the two can disagree. Every row therefore also carries effective, the higher of the stored level and every detection severity, which is what the dashboard shows. The severity filter and the statistics tools work on the stored level, because only an indexed field can be queried, so the same event can be counted LOW by get_security_stats and read MEDIUM in a list row. A good answer says which one a number came from.
  • Empty means empty. No result means nothing matched, never that access was denied. An id belonging to another account is refused with an explicit not-found error rather than an empty list.
  • [REDACTED] is the server’s mask, not a value the device sent. It should never be reported as suspicious in its own right.
  • Lists are cursor-paged, newest first. meta.total counts the whole window, not the page, and meta.nextCursor fetches the next one. Time windows are optional everywhere; omitted, the most recent records come back.
ResponseMeaningWhat to do
401The key is missing, wrong or revoked, or its app was deleted.Copy the key again from the app’s API Keys tab.
402The subscription lapsed. Alphyn Cloud only; an on-prem installation is never blocked here.MCP comes back as soon as billing is current.
406The request did not accept both application/json and text/event-stream.Send Accept: application/json, text/event-stream, as every client above does.
405 on GET or DELETEExpected. The server is stateless and keeps no session to stream to or to close.Nothing. POST requests are unaffected.
429Rate limited: 10 a second, 100 a minute, 1000 an hour per client address.Ask for statistics over a window instead of paging through every record.