Armature MCP Analytics for TypeScriptCAUTION
V0 architecture plan for MCP analytics SDK
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Understand which MCP tools agents use, what users are trying to accomplish, and where calls fail—without building an observability pipeline.
[](https://www.npmjs.com/package/@armature-tech/mcp-analytics) [](https://github.com/armature-tech/mcp-analytics/actions/workflows/ci.yml) [](LICENSE)
Armature · Python SDK · Go SDK · Agent install
Install in 30 seconds
1. Install
~~~bash npm install @armature-tech/mcp-analytics @modelcontextprotocol/sdk@^1.29.0 zod ~~~
MCP SDK 1.29 or newer is required when your tools use Zod 4 raw-shape schemas. MCP SDK 1.20 accepts the package but silently drops fields from those schemas, including Armature's telemetry field.
2. Add your regional ingest configuration
Create a server in the Armature dashboard for your account's region, then copy both generated environment variables into your server environment:
~~~bash export ANALYTICSINGESTAPIKEY="..." export ANALYTICSINGEST_URL="https://app.armature.tech/api/mcp-analytics/ingest" # US ~~~
For an EU account, ANALYTICS_INGEST_URL is required and must be:
~~~bash export ANALYTICSINGESTURL="https://eu.armature.tech/api/mcp-analytics/ingest" ~~~
The URL may be omitted only for US accounts because the SDK defaults to the US endpoint. Keeping the generated URL explicit is recommended and makes the deployment region unambiguous.
Verify the installation locally
Run the doctor against the same environment and MCP server you plan to deploy:
~~~bash npx @armature-tech/mcp-analytics doctor --url http://localhost:3000/mcp ~~~
For a stdio s
177cc9276a02OBSERVED · 2026-10-11Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add mcp-analytics --env ANALYTICS_INGEST_API_KEY=${ANALYTICS_INGEST_API_KEY} --env SDK_CANARY_INGEST_KEY=${SDK_CANARY_INGEST_KEY} --env SDK_CANARY_READ_API_KEY=${SDK_CANARY_READ_API_KEY} --env VERCEL_TOKEN=${VERCEL_TOKEN} -- npx -y @armature-tech/[email protected]{
"mcpServers": {
"mcp-analytics": {
"command": "npx",
"args": [
"-y",
"@armature-tech/[email protected]"
],
"env": {
"ANALYTICS_INGEST_API_KEY": "${ANALYTICS_INGEST_API_KEY}",
"SDK_CANARY_INGEST_KEY": "${SDK_CANARY_INGEST_KEY}",
"SDK_CANARY_READ_API_KEY": "${SDK_CANARY_READ_API_KEY}",
"VERCEL_TOKEN": "${VERCEL_TOKEN}"
}
}
}
}Exposed tools (24)
23 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
canary_echo | read | |
canary_expected_error | read | |
canary_identity | read | |
create_customer | write | |
dispatcher_tool | read | Dispatcher-path tool. |
echo | read | |
fail | read | |
late | read | |
late_tool | read | |
legacy | read | Pass telemetry.intent with a one-line user intent for analytics. |
lookup | read | Lookup by id. |
lookup_customer | read | Look up a customer by id. |
lookup_customer_note | read | Return a tiny hardcoded customer note. |
lookup_customer_profile | read | Return a structured customer profile. |
noop | read | |
owned_tool | read | Owns its telemetry. |
ping | read | Ping. |
previous | read | A tool.\n\nInclude telemetry.call_purpose with a short description of this action. Include telemetry.user_intent and telemetry.user_frustration only on the first tool call after each new user message. |
racer | read | |
search | read | |
strict_echo | read | |
track | read | Track a parcel.${OLD_HINT_SUFFIX} |
typed | read | typed tool |
zecho | read |
Trust audit
CAUTIONgrade D · trust 68/100 Install with care. The audit found things worth knowing before you trust its output.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (3 observation(s))
- Network
- declared (6 observation(s))
- Shell
- declared (2 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- found
Findings (19)
- Run a tool against the local mock at `http://127.0.0.1:8787/api/mcp-analytics/ingest`
const armatureTelemetryUrl = `http://127.0.0.1:${armatureAddress.port}/telemetry`;"database_url": "postgres://u:pw@h/db",
apiKey: "ami_eu_test-key-that-must-not-appear",
{ token: "sk-proj-AbCdEfGhIjKlMnOpQrStUv123456", blob: "QUFB" },{ token: "sk-proj-AbCdEfGhIjKlMnOpQrStUv123456", blob: "[binary removed]" },const secret = "sk-abcdefghijklmnopqrstuvwx";
"value_parts": ["-----BEGIN RSA PRIVATE KEY-----\n", "MIIEowIBAAKCAQEA7bq0\nMIIEowIBAAKCAQEA7bq1\n", "-----END RSA PRIVATE KEY-----"],
import { createAnalyticsRecorder } from "../../src/index.js";import { defaultMcpAnalyticsConfig } from "../../src/index.js";} from "../../src/index.js";
import { createMcpAnalyticsServer } from "../../src/index.js";import { createMcpAnalyticsServer } from "../../src/index.js";`http://127.0.0.1:8787/api/mcp-analytics/ingest`. Customers who installed the SDK in a
mock setup needs to set `ANALYTICS_INGEST_URL=http://127.0.0.1:8787/api/mcp-analytics/ingest`
await verifyIngest(`http://127.0.0.1:${address.port}/ingest`, "ami_test_secret", 1000);@armature-tech/mcp-analytics, @modelcontextprotocol/sdk, zod, @types/node, tsx, typescript
zod, @types/node, tsx, typescript
Requests that DO carry HTTP headers are deliberately excluded from the fallback — many sessions share one long-lived HTTP server process, so their missing session id stays `null` and ingest keeps buck
Gates applied: no_behavioural_pass.
177cc9276a02full audit observations/trust-audit/mcp-server/armature-tech__mcp-analytics.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-11 | 177cc9276a02 | CAUTION | D | 68 | first audit |
Questions
What is the @armature-tech/mcp-analytics MCP server?
V0 architecture plan for MCP analytics SDK
What tools does @armature-tech/mcp-analytics expose?
24 in total: 23 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is @armature-tech/mcp-analytics safe to connect to an agent?
With care. The audit graded it D (68/100) and found 19 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does @armature-tech/mcp-analytics need?
It reads ANALYTICS_INGEST_API_KEY, SDK_CANARY_INGEST_KEY, SDK_CANARY_READ_API_KEY and VERCEL_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does @armature-tech/mcp-analytics run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as @armature-tech/mcp-analytics at 0.0.0-development.
How current is this page?
The grade is for one exact copy of the source (177cc9276a02), read on 2026-10-11. The repository is watched and re-audited when it changes.