Skip to main content
Glama
README.md
# traceflow.nl

[![Traceflow MCP connector](https://glama.ai/mcp/connectors/nl.traceflow/traceflow/badges/score.svg)](https://glama.ai/mcp/connectors/nl.traceflow/traceflow)

**The Zero-UI Runtime & Protocol Swiss Army Knife for Coding Agents.** *(Listed on [Glama Connectors](https://glama.ai/mcp/connectors/nl.traceflow/traceflow) & [Glama Servers](https://glama.ai/mcp/servers/MichelGP/traceflow))*

`traceflow.nl` has no HTML dashboard, no CSS, no JavaScript, no user accounts, and no database. Human browsers visiting `/` receive `HTTP 406 Not Acceptable`; coding agents connect via zero-key Streamable HTTP MCP (`https://traceflow.nl/mcp`) or `curl` (`https://traceflow.nl/llms.txt`) to verify webhooks, inject HTTP/SSE chaos, trigger race barriers, diagnose OTLP traces, and vote on missing runtime tools.

## Install in Any Coding Agent (Zero API Key)

### 1. Universal Agent Skill (`Claude Code`, `Cursor`, `Codex`, `Windsurf`, `Antigravity`)

```bash
npx skills add MichelGP/traceflow
```

### 2. Direct Streamable HTTP MCP Config

```json
{
  "mcpServers": {
    "traceflow": { "url": "https://traceflow.nl/mcp" }
  }
}
```
*(In Antigravity `mcp_config.json`, use `"serverUrl": "https://traceflow.nl/mcp"`, or install this repository directly as a plugin.)*

### 3. Publish to the Official MCP Registry (`registry.modelcontextprotocol.io`)

```bash
brew install mcp-publisher
mcp-publisher validate
mcp-publisher login dns
mcp-publisher publish
```

## Built-In Capabilities

1. **Ephemeral Dual-Token RAM Cells** (`POST /v1/cells`): Separate `write_token` and `read_token`, 30-minute hard TTL, automatic credential scrubbing (`Bearer`, `sk-...`, JWTs, API keys) with `SECRET_LEAK_SCRUBBED` alerts.
2. **Blocking `/wait` & Race `/barrier`**: Single-turn long-poll (`GET /v1/cells/{id}/wait?expect=1&timeout=20`) with zero `sleep` loops, plus microsecond-synchronized multi-agent race release (`POST /v1/cells/{id}/barrier`).
3. **Dual OTLP (`protobuf` + `json` + `gzip`), Webhooks & CSP Sink**: Standard `OTEL_EXPORTER_OTLP_ENDPOINT` ingest alongside raw webhooks (`/hook/*`) and browser CSP violation reports (`/csp`).
4. **Token-Budgeted Causal Anomaly Digest (`?max_tokens=350`)**: Automatically flags N+1 query storms, floating async spans outliving HTTP responses, synchronized lock-contention herds, sequential waterfalls, orphan `traceparent` breaks, unparameterized SQL literals, and metric cardinality explosions.
5. **Programmable HTTP & SSE Chaos + Backoff Grader** (`/in/{write_token}/chaos/{key}`): Scriptable `seq=429,503,200`, `retry_after`, `delay_ms`, mid-stream SSE drops (`Last-Event-ID` resume verification), and redirect credential-leak traps.
6. **Socket, TLS & Connection-Pool Leak Inspector**: Detects fresh TCP/TLS handshakes per request vs HTTP/2 keep-alive reuse and measures container clock skew (`/v1/whoami`).
7. **Raw-Byte Webhook HMAC & JSON Precision/Drift Profiler**: Verifies Stripe and `X-Hub-Signature-256` HMACs on exact wire bytes, echoes Slack `challenge` handshakes, and catches `int64 > 2^53 - 1` JS precision loss, double-encoded JSON, mixed key casing, and schema drift.
8. **GenAI Loop, Prompt-Cache Prefix Hash Diff & MCP Schema Auditor**: Pinpoints KV prompt-cache invalidation offsets via SHA-256 chunk hashes (never storing raw prompts) and audits MCP `tools/list` token bloat (`POST /v1/analyze/mcp-tools`).
9. **Cold-Start-Aware `/diff` & PR Proof Receipts**: Compares checkpoints (`POST /marks`, `GET /diff`) and emits a deterministic 4-line Proof Receipt for commits and PRs.
10. **Zero-Key Streamable HTTP MCP (`/mcp`), Agent Tool Wishlist (`/v1/wishlist`) & Self-OTLP Export**: Agents propose and upvote missing tools (`traceflow_wishlist`), while `traceflowd` streams live usage metrics and wishlist proposal spans straight to your own OpenTelemetry Collector.

## Self-Hosting (`Docker Compose`)

```bash
docker compose up -d --build
```

`traceflowd` runs as a static `CGO_ENABLED=0` Go binary inside a `read_only: true` distroless container on a kernel-enforced `internal: true` bridge network behind Caddy (`TLS 1.2/1.3` + `HTTP/3`). Self-observability OTLP export is disabled by default and can be enabled via `TRACEFLOW_SELF_OTLP_ENDPOINT` and `OTEL_COLLECTOR_HOST` in `.env`.