Skip to main content
Glama
tibet-phantom-mcp

tibet-phantom-mcp

by Humotica

tibet-phantom-mcp

MCP server for Phantom Resume — cross-device AI session portability with TIBET provenance.

Start an AI session on your laptop, seal it, walk to any other device, resume exactly where you left off. Every action is cryptographically signed via TIBET tokens.

Part of the TIBET ecosystem by HumoticaOS.

Install

pip install tibet-phantom-mcp

Related MCP server: TokenMizer

Setup

You need a running Phantom server. Set the PHANTOM_URL environment variable to point to your server.

Claude Code / Claude Desktop Config

Add to your MCP settings:

{
  "mcpServers": {
    "phantom": {
      "command": "tibet-phantom-mcp",
      "env": {
        "PHANTOM_URL": "https://your-phantom-server.example.com"
      }
    }
  }
}

Available Tools

Tool

Description

phantom_status

Server health check — uptime, sessions, backends

phantom_sessions

List all sealed/active sessions

phantom_backends

Available compute backends (GPU, Gemini, Claude, Ollama)

phantom_seal

Seal a session for cross-device resume

phantom_fork

Inject an intervention into a session (multi-AI handoff)

phantom_audit

Full forensic audit trail (Open Blackbox)

phantom_fork_history

History of all forks/interventions

How It Works

Device A                    Phantom Server              Device B
────────                    ──────────────              ────────
Start session ──────────►   Stores context
Work with AI                TIBET tokens
/exit ──────────────────►   Session sealed
                                                        curl .../resume | sh
                            ◄───────────────────────── Resume request
                            L4 integrity verify ──────► Session restored
                            TIBET chain intact           AI picks up where
                                                         you left off

Multi-AI Fork

Any actor (human or AI) can fork into a session:

# Claude corrects something Gemini said
phantom_fork(
    session_id="phantom-1234-abc",
    intervention="That's not quite right — TIBET uses hash chains, not blockchain.",
    actor="jis:agent:root_ai",
    intent="correct_misconception"
)

Open Blackbox (Audit)

# See exactly what happened inside a session
phantom_audit(session_id="phantom-1234-abc")
# → chronological events, all actors, backends, forks, TIBET provenance

Environment Variables

Variable

Default

Description

PHANTOM_URL

http://localhost:8000

Phantom server URL

PHANTOM_TIMEOUT

30

HTTP timeout in seconds

License

MIT — HumoticaOS

Available Tools

7 tools
phantom_auditA

Full forensic audit of a session (Open Blackbox).

Chronological events: who did what, when, why. All actors, backends, forks. Complete transparency into what happened inside an AI session.

Args: session_id: Session to audit

Inputs: session_id (required).

phantom_backendsA

List available compute backends — local GPU, Vertex AI, Ollama, with models and latency.

Inputs: no named parameters.

phantom_forkA

Fork into a session — inject an intervention (multi-AI handoff).

Any actor can inject a signed message into a sealed session. The fork becomes part of the conversation with TIBET provenance.

Use cases: correct AI mistakes, add context, human approval, cross-AI collaboration.

Args: session_id: Target phantom session ID intervention: Message to inject actor: JIS identity (e.g., "jis:agent:root_ai", "jis:human:jasper") intent: Why (e.g., "correct_misconception", "add_context", "approve")

Returns: Fork ID and TIBET token with ERIN/ERAAN/EROMHEEN/ERACHTER provenance

Inputs: session_id (required), intervention (required), actor, intent.

phantom_fork_historyA

History of all forks/interventions in a session.

Every external intervention chronologically with TIBET provenance per fork.

Args: session_id: Session to get fork history for

Inputs: session_id (required).

phantom_sealA

Seal a session for cross-device resume.

Creates a sealed Phantom session with full context. Resume on any device: curl -s $PHANTOM_URL/phantom/resume | sh

Args: task: What you're working on description: Session description backend: Compute backend (p520-local, vertex-gemini, vertex-claude) model: AI model to use conversation: Message history [{"role": "user", "content": "..."}] todos: Todo items [{"content": "task", "status": "pending"}] files: Files to carry over {"name": "content"} packages: Pip packages needed target_identity: JIS identity for the session ttl_minutes: Session time-to-live

Returns: Session ID and TIBET seal token

Inputs: task (required), description, backend, model, +6 more.

phantom_sessionsA

List all Phantom sessions (sealed and active) with IDs, descriptions, and timestamps.

Inputs: no named parameters.

phantom_statusA

Check Phantom server status — uptime, sessions, backends.

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: audit, list backends, fork, fork history, seal, list sessions, and status. No two tools overlap in functionality.

    Naming Consistency5/5

    All tool names follow the consistent pattern 'phantom_<noun>' or 'phantom_<noun_noun>' in snake_case, making them predictable and easy to distinguish.

    Tool Count5/5

    7 tools is well-scoped for a session management server covering creation, listing, forking, auditing, and status checks. Not too many or too few.

    Completeness4/5

    Core session lifecycle is covered: create (seal), list, fork, audit, and status. Missing a dedicated 'get_session' tool, but audit provides full details. Minor gap.

    Related MCP Connectors

    Related MCP Servers