Skip to main content
Glama
CI-1T Prediction Stability Engine

CI-1T Prediction Stability Engine

CI-1T MCP Server

Version: 1.7.0
Last Updated: February 27, 2026
License: Proprietary

MCP (Model Context Protocol) server for the CI-1T prediction stability engine. Lets AI agents — Claude Desktop, Cursor, Windsurf, VS Code Copilot, and any MCP-compatible client — evaluate model stability, manage fleet sessions, and control API keys directly.

One credential. One env var. That's it.

Tools (20) + Resources (1)

Tool

Description

Auth

evaluate

Evaluate prediction stability (floats or Q0.16)

API key

fleet_evaluate

Fleet-wide multi-node evaluation (floats or Q0.16)

API key

probe

Probe any LLM for instability (3x same prompt). BYOM mode: bring your own model via OpenAI-compatible API

API key or BYOM

health

Check CI-1T engine status

API key

fleet_session_create

Create a persistent fleet session

API key

fleet_session_round

Submit a scoring round

API key

fleet_session_state

Get session state (read-only)

API key

fleet_session_list

List active fleet sessions

API key

fleet_session_delete

Delete a fleet session

API key

list_api_keys

List user's API keys

API key

create_api_key

Generate and register a new API key

API key

delete_api_key

Delete an API key by ID

API key

get_invoices

Get billing history (Stripe)

API key

onboarding

Welcome guide + setup instructions

None

interpret_scores

Statistical breakdown of scores

None

convert_scores

Convert between floats and Q0.16

None

generate_config

Integration boilerplate for any framework

None

compare_windows

Compare baseline vs recent episodes for drift detection

None

alert_check

Check episodes against custom thresholds, return alerts

None

visualize

Interactive HTML visualization of evaluate results

None

Resource

URI

Description

tools_guide

ci1t://tools-guide

Full usage guide: response schemas, chaining patterns, fleet workflow, thresholds, example pipelines

Onboarding

New users get guided setup automatically. If no API key is configured:

  • Startup log prints a hint: "Create a free account at collapseindex.org — 1,000 free credits on signup"

  • onboarding tool returns a full welcome guide with account status, setup steps, config examples, available tools, and pricing

  • Auth-guarded tools return a friendly error with specific setup instructions instead of a raw 401

  • Utility tools (interpret_scores, convert_scores, generate_config) always work — no auth, no credits

Every new account gets 1,000 free credits (no credit card required), enough for 1,000 evaluation episodes.

Setup

Environment Variables

Variable

Required

Description

CI1T_API_KEY

Yes

Your ci_... API key — single credential for all tools

CI1T_BASE_URL

No

API base URL (default: https://collapseindex.org)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "ci1t": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "collapseindex/ci1t-mcp"],
      "env": {
        "CI1T_API_KEY": "ci_your_key_here"
      }
    }
  }
}

Cursor / Windsurf

Add to .cursor/mcp.json or equivalent:

{
  "mcpServers": {
    "ci1t": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "collapseindex/ci1t-mcp"],
      "env": {
        "CI1T_API_KEY": "ci_your_key_here"
      }
    }
  }
}

VS Code (GitHub Copilot)

Add to .vscode/mcp.json:

{
  "servers": {
    "ci1t": {
      "type": "stdio",
      "command": "docker",
      "args": ["run", "-i", "--rm", "collapseindex/ci1t-mcp"],
      "env": {
        "CI1T_API_KEY": "ci_your_key_here"
      }
    }
  }
}

Run from source (no Docker)

git clone https://github.com/collapseindex/ci1t-mcp.git
cd ci1t-mcp
npm install
npm run build

# Set env var and run
CI1T_API_KEY=ci_xxx node dist/index.js

Build Docker Image

docker build -t collapseindex/ci1t-mcp .

Example Usage

Once connected, an AI agent can:

"Evaluate these prediction scores: 45000, 32000, 51000, 48000, 29000, 55000"

The agent calls evaluate with scores: [45000, 32000, 51000, 48000, 29000, 55000] and gets back stability metrics per episode, including credits used and remaining.

"Create a fleet session with 4 nodes named GPT-4, Claude, Gemini, Llama"

"List my API keys"

"Probe this prompt for stability: What is the capital of France?"

"Probe my local Ollama llama3 model with: What is the meaning of life?"

The agent calls probe in BYOM mode — sends the prompt 3x to http://localhost:11434/v1 and scores the responses locally. No CI-1T credits used.

"Interpret these scores: 0.12, 0.45, 0.88, 0.03, 0.67"

The agent calls interpret_scores locally (no API call, no credits) and returns mean, std, min/max, and normalized values. For full stability classification, use evaluate.

"Convert these probabilities to Q0.16: 0.5, 0.95, 0.01"

"Generate a FastAPI integration for CI-1T with guardrail pattern"

CI-1T Quick Reference

Metric

Description

CI (Collapse Index)

Primary stability metric (Q0.16: 0–65535). Lower = more stable

AL (Authority Level)

Engine trust level for the model (0–4)

Ghost

Model appears stable but may be silently wrong

Warn / Fault

Threshold and hard-failure flags

Classification labels (Stable / Drift / Flip / Collapse) are determined by the engine. Use the evaluate tool to get exact classifications — thresholds are configurable via the API.

Architecture

┌──────────────────────┐     stdio      ┌───────────────────────┐
│   Claude Desktop /   │◄──────────────►│   ci1t-mcp server     │
│   Cursor / VS Code   │               │   (Node.js / Docker)  │
└──────────────────────┘               └──────────┬────────────┘
                                                   │ HTTPS
                                                   │ X-API-Key
                                    ┌──────────────┼──────────────┐
                                    │              │              │
                               ┌────▼───┐   ┌─────▼────┐  ┌─────▼─────┐
                               │Evaluate│   │Fleet API │  │Dashboard  │
                               │  API   │   │Sessions  │  │API Keys   │
                               │        │   │          │  │Billing    │
                               └────────┘   └──────────┘  └───────────┘
                               collapseindex.org

Changelog

v1.7.0 (2026-02-27)

  • BYOM Probe: probe tool now supports Bring Your Own Model mode

  • Provide base_url + model (+ optional model_api_key) to probe any OpenAI-compatible endpoint directly

  • Works with local models (Ollama, LM Studio, vLLM) and remote APIs (OpenAI, Anthropic, Together, etc.)

  • BYOM mode runs entirely locally — no CI-1T auth needed, no credits consumed

  • Default mode unchanged (routes through CI-1T backend, costs 1 credit)

  • Local similarity scoring: Jaccard, length ratio, and character fingerprint cosine similarity

  • 20 tools + 1 resource

v1.6.1 (2026-02-27)

  • SEC-01 (Critical): API key generation now uses crypto.randomBytes() instead of Math.random()

  • SEC-02 (High): Visualization title is HTML-escaped to prevent XSS

  • SEC-03 (Medium): toQ16() decimal heuristic prevents integer arrays [0, 1] from being misclassified as floats

  • SEC-04 (Medium): Score arrays capped at 10,000 per stream, 16 nodes max on fleet tools

  • SEC-05 (Medium): Source maps disabled in production build

  • SEC-06 (Low): Fixed template literal bug in compare_windows severity message

  • SEC-07 (Low): Visualization temp files auto-cleaned after 1 hour

  • SEC-08 (Low): Header version comment updated

v1.6.0 (2026-02-27)

  • AI Discoverability: All 20 tool descriptions now include response schemas and chaining hints

  • tools_guide MCP resource (ci1t://tools-guide): comprehensive usage guide with response schemas, chaining patterns, fleet session workflow, classification thresholds, and example pipelines

  • Agents can now read the resource for full context beyond individual tool descriptions

  • 20 tools + 1 resource

v1.5.0 (2026-02-27)

  • compare_windows tool: compare baseline vs recent episodes — drift delta, trend direction, degradation detection

  • alert_check tool: check episodes against custom thresholds (CI, EMA, AL, ghost, fault) with severity levels

  • Both tools are local computation — no API call, no auth, no credits

  • 20 tools total

v1.4.0 (2026-02-27)

  • visualize tool: generates self-contained interactive HTML with Canvas 2D bar charts

  • Fixed sidebar layout matching CI-1T Lab dashboard style (KPIs, legend, stats in sidebar)

  • EMA Trend + Authority Level charts side-by-side

  • Adaptive bar sizing, hover tooltips, color-coded classifications

  • Links to collapseindex.org in sidebar

  • 18 tools total

v1.3.0 (2026-02-27)

  • Single credential: All tools now use CI1T_API_KEY — no Bearer token needed

  • Removed CI1T_TOKEN env var entirely

  • Backend auth unified: all API routes accept X-API-Key (resolves user via key hash)

  • Simpler config: one env var to set, one credential to manage

  • 17 tools total

v1.2.0 (2026-02-27)

  • onboarding tool: welcome guide with account status, setup steps, config examples, pricing, and available tools

  • Auth guards on all credentialed tools — returns a structured onboarding message instead of failing at the API level

  • Enhanced startup log: new-user hint when no credentials are configured

  • 17 tools total

v1.1.0 (2026-02-27)

  • 3 new utility tools: interpret_scores, convert_scores, generate_config (local, no auth, no credits)

  • evaluate and fleet_evaluate now auto-detect floats (0–1) vs Q0.16 (0–65535) — no manual conversion needed

  • Dashboard parity: all Ask AI tools now available via MCP

v1.0.0 (2026-02-25)

  • Complete rewrite from Python to TypeScript

  • 13 tools: evaluate, fleet_evaluate, probe, health, fleet session CRUD, API key CRUD, invoices

  • Docker image distribution

  • stdio transport for Claude Desktop, Cursor, VS Code

  • Dual auth: API key (X-API-Key) for evaluate, Bearer token for dashboard


© 2026 Collapse Index Labs™ — Alex Kwon
collapseindex.org · ask@collapseindex.org

Available Tools

20 tools
alert_checkA

Check episodes against configurable thresholds and return triggered alerts — no API call, no auth, no credits. Takes an episode array from evaluate or fleet responses. Response: { status: 'ok'|'warn'|'critical', total_alerts, critical, warnings, episodes_checked, thresholds, alerts: [{ episode, type, value, threshold, severity }] }. Alert types: ci_exceeded, ema_exceeded, authority_elevated, ghost_detected, fault.

Inputs: episodes (required), ci_threshold, ema_threshold, al_threshold, +2 more.

compare_windowsA

Compare two windows of episodes to detect drift or degradation — no API call, no auth, no credits. Takes baseline and recent episode arrays from evaluate or fleet_session_round responses. Response: { comparison: { baseline: stats, recent: stats }, delta: { ci_mean, ema_mean, al_mean, ghost_delta, warn_delta, fault_delta }, trend: 'improving'|'stable'|'degrading', degraded: bool, severity_factors: [...] }. Use after multiple evaluate calls to track model health over time.

Inputs: baseline (required), recent (required).

convert_scoresA

Convert between probability floats (0.0–1.0) and Q0.16 fixed-point integers (0–65535) — no API call, no auth, no credits. Response: { direction, count, converted: [{ input, q16|float }] }. Use to_q16 before evaluate, from_q16 to make CI outputs human-readable.

Inputs: scores (required), direction (required).

create_api_keyA

Create a new CI-1T API key. Response: { api_key, masked_key, scope, record }. IMPORTANT: Save the returned api_key — it cannot be retrieved again after creation.

Inputs: user_id (required), name (required), scope.

delete_api_keyA

Delete an API key by its PocketBase record ID (from list_api_keys). Response: { deleted: true }.

Inputs: id (required).

evaluateA

Evaluate prediction stability. Sends scores to the CI-1T engine and returns per-episode stability metrics. Accepts floats (0.0–1.0) or Q0.16 integers (0–65535) — auto-converts. Response: { episodes: [{ ci_out, ci_ema_out, al_out, warn, fault, ghost_confirmed, ghost_suspect_streak, ... }], credits_used, credits_remaining }. CI values are Q0.16 (0–65535; divide by 65535 for %). Classification: ≤0.15=Stable, ≤0.45=Drift, ≤0.70=Flip, >0.70=Collapse. Chain results → visualize (chart), alert_check (threshold alerts), compare_windows (drift detection), or interpret_scores (stats).

Inputs: scores (required), n.

fleet_evaluateA

Evaluate a fleet of model nodes for prediction stability. Each node provides a score stream. Returns per-node episodes and aggregate fleet stats. Accepts floats (0.0–1.0) or Q0.16 integers (0–65535) — auto-converts per node. Response: { nodes: [{ node_id, episodes: [{ ci_out, ci_ema_out, al_out, warn, fault, ghost_confirmed, ... }] }], fleet_summary, credits_used, credits_remaining }. Chain per-node episodes → visualize, alert_check, or compare_windows. For persistent multi-round fleet monitoring, use fleet_session_create instead.

Inputs: nodes (required), n.

fleet_session_createA

Create a new persistent fleet monitoring session. Returns a session ID for subsequent rounds. Max 16 nodes. Response: { session_id, node_count, node_names, created_at }. Workflow: fleet_session_create → fleet_session_round (repeat) → fleet_session_state (check) → fleet_session_delete (cleanup).

Inputs: node_count (required), node_names.

fleet_session_deleteA

Delete a fleet session by ID. Response: { deleted: true, session_id }. Call when monitoring is complete to free server resources.

Inputs: session_id (required).

fleet_session_listA

List all active fleet sessions. Response: { sessions: [{ session_id, node_count, round_count, created_at }] }.

Inputs: no named parameters.

fleet_session_roundA

Submit a scoring round to an existing fleet session. Each node's scores array is evaluated and the cumulative fleet snapshot is returned. Response: { round, nodes: [{ episodes: [...] }], fleet_summary }. Episodes in the response can be passed to visualize, alert_check, or compare_windows.

Inputs: session_id (required), scores (required).

fleet_session_stateA

Get the current state of a fleet session without submitting new scores. Response: { session_id, round_count, nodes: [{ node_id, node_name, episodes: [...] }], fleet_summary }. Use to inspect accumulated results between rounds.

Inputs: session_id (required).

generate_configA

Generate CI-1T integration boilerplate for a specific framework or language — no API call, no auth, no credits. Response: { framework, use_case, api_base, endpoints, score_format, auth, cost, instruction }. The instruction field tells you how to produce complete, production-ready integration code for the user's stack.

Inputs: framework (required), use_case.

get_invoicesA

Get billing history (Stripe invoices). Response: { invoices: [{ amount, credits, date, status }], has_more, cursor }. Pass cursor to paginate.

Inputs: cursor.

healthA

Check CI-1T engine health. Response: { status, version, latency_ms }. Call before evaluate/fleet operations to verify the engine is reachable.

Inputs: no named parameters.

interpret_scoresA

Analyze raw prediction scores with statistical breakdown — no API call, no auth, no credits. Response: { count, mean, std, min, max, breakdown: [{ index, raw, normalized }] }. Accepts floats (0.0–1.0) or Q0.16 integers (0–65535) — auto-detects. For full stability classification (Stable/Drift/Flip/Collapse), pass scores to the evaluate tool instead.

Inputs: scores (required).

list_api_keysA

List all API keys for the authenticated user. Response: { keys: [{ id, name, masked_key, scope, enabled, created }] }. Use the record id with delete_api_key to revoke.

Inputs: user_id (required).

onboardingA

Welcome guide for new users. Returns setup instructions, available tools, pricing, and links. No auth required. Call this when someone is new to CI-1T or asks how to get started.

Inputs: no named parameters.

probeA

Probe an LLM for prediction instability. Sends the same prompt 3 times and compares responses using the specified similarity method. Two modes: (1) Default — routes through CI-1T backend (costs 1 credit, uses Grok). (2) BYOM (Bring Your Own Model) — provide base_url + model_api_key + model to probe any OpenAI-compatible API directly (no credits, no CI-1T auth needed). Response: { scores: [u16, u16, u16], normalized: [f64, f64, f64], responses: [str, str, str], method, mode }. The returned scores array can be passed directly to evaluate for full stability classification.

Inputs: prompt (required), method, base_url, model_api_key, +1 more.

visualizeA

Generate an interactive HTML visualization of CI-1T evaluate results — no API call, no auth, no credits. Takes an episode array from evaluate or fleet responses. Returns a file path to a self-contained HTML chart with sidebar KPIs, color-coded CI bars, EMA trend, authority levels, and hover tooltips. Response: { visualization: filepath, episodes, title, instruction }. Open the file in a browser or VS Code Simple Browser.

Inputs: episodes (required), title.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 20 tools

    Disambiguation5/5

    Each tool has a clear, distinct purpose. Core evaluation (evaluate vs fleet_evaluate), analysis (alert_check, compare_windows, interpret_scores), fleet session lifecycle, API key management, and auxiliary tools (health, onboarding, probe) are all well-separated with no overlap.

    Naming Consistency5/5

    All tool names use snake_case and follow a consistent verb_noun pattern (e.g., alert_check, create_api_key). Fleet session tools share a common prefix (fleet_session_*), and even single-word names (evaluate, health) fit the pattern.

    Tool Count5/5

    20 tools is appropriate for a prediction stability engine covering evaluation, fleet monitoring, analysis, API management, billing, and onboarding. The scope is well-scoped with no bloat or deficiency.

    Completeness5/5

    The tool surface is comprehensive: one-shot and persistent evaluation, fleet management, alerts, drift detection, score conversion, API key lifecycle, billing, health checks, config generation, and a probe. No essential operations are missing for the stated purpose.

    Maintenance

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors