CI-1T Prediction Stability Engine
Generates integration boilerplate for incorporating CI-1T stability guardrails and evaluation logic into FastAPI applications.
Supports probing local Ollama models for prediction stability by sending prompts and scoring responses locally.
Allows stability testing of OpenAI and OpenAI-compatible models through the probe tool's BYOM mode.
Retrieves billing and invoice history for the user's account directly from Stripe.
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 prediction stability (floats or Q0.16) | API key |
| Fleet-wide multi-node evaluation (floats or Q0.16) | API key |
| Probe any LLM for instability (3x same prompt). BYOM mode: bring your own model via OpenAI-compatible API | API key or BYOM |
| Check CI-1T engine status | API key |
| Create a persistent fleet session | API key |
| Submit a scoring round | API key |
| Get session state (read-only) | API key |
| List active fleet sessions | API key |
| Delete a fleet session | API key |
| List user's API keys | API key |
| Generate and register a new API key | API key |
| Delete an API key by ID | API key |
| Get billing history (Stripe) | API key |
| Welcome guide + setup instructions | None |
| Statistical breakdown of scores | None |
| Convert between floats and Q0.16 | None |
| Integration boilerplate for any framework | None |
| Compare baseline vs recent episodes for drift detection | None |
| Check episodes against custom thresholds, return alerts | None |
| Interactive HTML visualization of evaluate results | None |
Resource | URI | Description |
|
| 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"
onboardingtool returns a full welcome guide with account status, setup steps, config examples, available tools, and pricingAuth-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 |
| Yes | Your |
| No | API base URL (default: |
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.jsBuild 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.orgChangelog
v1.7.0 (2026-02-27)
BYOM Probe:
probetool now supports Bring Your Own Model modeProvide
base_url+model(+ optionalmodel_api_key) to probe any OpenAI-compatible endpoint directlyWorks 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 ofMath.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 floatsSEC-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_windowsseverity messageSEC-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_guideMCP resource (ci1t://tools-guide): comprehensive usage guide with response schemas, chaining patterns, fleet session workflow, classification thresholds, and example pipelinesAgents can now read the resource for full context beyond individual tool descriptions
20 tools + 1 resource
v1.5.0 (2026-02-27)
compare_windowstool: compare baseline vs recent episodes — drift delta, trend direction, degradation detectionalert_checktool: check episodes against custom thresholds (CI, EMA, AL, ghost, fault) with severity levelsBoth tools are local computation — no API call, no auth, no credits
20 tools total
v1.4.0 (2026-02-27)
visualizetool: generates self-contained interactive HTML with Canvas 2D bar chartsFixed 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 neededRemoved
CI1T_TOKENenv var entirelyBackend 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)
onboardingtool: welcome guide with account status, setup steps, config examples, pricing, and available toolsAuth 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)evaluateandfleet_evaluatenow auto-detect floats (0–1) vs Q0.16 (0–65535) — no manual conversion neededDashboard 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 toolsalert_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
Scored across 20 tools
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.
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.
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.
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
Related MCP Connectors
Research-backed lint + generation for agent context files (CLAUDE.md, AGENTS.md) + prompt enhancer.
Lints + auto-fixes how AI coding agents discover any new product. 24 rules, 6 tools, score 0-100.
Small tools for agent builders: AI-writing tells, tools/list token cost, CLAUDE.md lint, and more.
Build, test, monitor & improve AI with Future AGI via Claude, Cursor, Windsurf & more.