Skip to main content
Glama

telos-mcp

Model Context Protocol server for TELOS AI Labs governance.

Exposes TELOS governance primitives -- action scoring, unsigned integrity-hash receipt verification, synthetic Purpose Anchor inspection, audit-chain queries, and counterfactual replay -- as MCP tools, resources, and prompts. Any MCP-compatible client (Claude Desktop, Claude Code, Cursor, Cline, etc.) can call them as native tools.

0.1.x status: stub engine. The TELOS governance engine is private and is not part of this package. This release ships the full protocol surface backed by a stub engine, so clients can exercise every tool, resource, and prompt end-to-end. Scores, audit entries and replay results are synthetic, and those results say so (stub: true); wiki pages are a plain Markdown placeholder that says it is one. Receipts are unsigned integrity-hash receipts (signature: null, signing_status: "unsigned_integrity_hash") built with telos-receipt: a key-free SHA-256 over the receipt payload, not a digital signature. They check offline with telos-verify, which defines signed receipts as separate contract versions.


What this server exposes

Tools (LLM-callable)

Tool

Purpose

telos_score(action_name, action_params, agent_id)

Return synthetic scores for a proposed action, derived from the action name, parameters and agent ID (stub; no Purpose Anchor is consulted). The receipt carries a synthetic PA identifier (pa::<agent_id>::v1) and the result carries stub: true. Returns a synthetic verdict (EXECUTE / CLARIFY / ESCALATE) plus per-dimension scores across purpose, scope, boundary, tool, chain, plus an unsigned integrity-hash receipt envelope.

telos_verify_native_receipts(receipts_base64, expected_sha256, start_previous)

Compare supplied native-v2 receipt bytes, native hashes and predecessor links. No signature, score or content validation.

telos_verify(receipt_json)

Accept a JSON string or object and verify an unsigned integrity-hash receipt offline (key-free; not a signature check). Returns {match, recomputed_integrity_hash, signing_status, reason, ...}.

telos_get_pa(agent_id)

Return a fixed synthetic Purpose Anchor (stub; the result carries stub: true): purpose, hard boundaries, declared scope, allowed tools, centroid dimensions.

telos_audit(start_iso, end_iso)

Return audit-chain entries within a time window (capped at 100). Stub: synthetic entries flagged stub: true.

telos_replay(receipt_id, alt_config_path)

Request a counterfactual replay against an alternate config. Stub: nothing is queued; returns a job_id with status: "stub_not_queued".

Resources (LLM-readable)

URI template

Returns

telos://wiki/{path}

Placeholder page for any single-segment name, e.g. telos://wiki/example-page (stub; no wiki content is served).

telos://centroids/{dimension}

Fixture centroid metadata (synthetic counts and checksum, compiled_from: "stub-corpus"; no compiled centroids are served) for one of purpose, scope, boundary, tool, chain.

telos://audit/{date}

The audit-chain segment for a given YYYY-MM-DD (UTC). Stub: synthetic entries flagged stub: true.

Prompts (user-invokable templates)

Prompt

Purpose

governance_review(action)

A synthetic walkthrough: the model calls telos_score and reports the stub verdict and scores, without inferring any rule (the stub evaluates none).

audit_walkthrough(start_date, end_date)

Walk through the audit chain in a date window.


Related MCP server: Project Telos

Install

pip install telos-mcp

The governance engine is private and is not distributed, so there is no engine extra to install; the stub is the only engine in this package.

The package installs a telos-mcp console script that starts the server over stdio. You can also invoke it via python -m telos_mcp.server.

Requires Python 3.10+.


Client configuration

Each client below assumes telos-mcp is installed in a Python environment on PATH. If you prefer not to install globally, use uvx telos-mcp or substitute the absolute path to the telos-mcp script in the snippets.

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows). Add the telos-governance entry under mcpServers:

{
  "mcpServers": {
    "telos-governance": {
      "command": "telos-mcp",
      "args": []
    }
  }
}

Restart Claude Desktop. The six telos_* tools should appear in the MCP tool tray.

Claude Code

Use the claude mcp add CLI:

claude mcp add telos-governance -- telos-mcp

Add --scope user to make it available in every project, or --scope project to share it through the repository. The project scope writes a .mcp.json file at the project root, which you can also create by hand:

{
  "mcpServers": {
    "telos-governance": {
      "command": "telos-mcp",
      "args": []
    }
  }
}

Cursor

Edit ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project):

{
  "mcpServers": {
    "telos-governance": {
      "command": "telos-mcp",
      "args": []
    }
  }
}

Cline (VS Code extension)

Open Cline -> MCP Servers -> Edit Configuration. Add:

{
  "mcpServers": {
    "telos-governance": {
      "command": "telos-mcp",
      "args": [],
      "transportType": "stdio"
    }
  }
}

Verifying the install

From any client, ask:

Use the telos_get_pa tool with agent_id="test" and show the Purpose Anchor.

You should see a stub PA back containing "stub": true and the five canonical centroid dimensions.


Development

git clone https://github.com/TELOS-Labs-AI/telos-mcp
cd telos-mcp
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"

# Run the server over stdio (what MCP clients spawn):
python -m telos_mcp.server

# Non-interactive startup smoke check (closes stdin; exits successfully):
python -m telos_mcp.server < /dev/null

# Run protocol and governance contract tests:
python -m pytest tests

# Install and test the declared minimum MCP SDK in a disposable environment:
python tools/check_mcp_floor.py

The stdio server waits for an MCP client when stdin is open. The startup smoke check above tests clean startup and EOF shutdown; the test suite also performs a real client initialization handshake. The development extra supplies the test and lint tools; interactive Inspector tooling is not included.


Roadmap

  • 0.1.x (this release) -- protocol surface complete, stub engine, registry-submission-ready manifest.

  • Later -- streaming audit subscriptions, per-tenant PA selection, optional HTTP transport. No release date or engine dependency is promised here.


License

Apache-2.0. See LICENSE.

Native receipt verification scope

Version 0.1.2 adds telos_verify_native_receipts through telos-receipt[native]>=0.1.1,<0.2. Supply base64-encoded native-v2 JSONL bytes, their SHA-256 pin and a predecessor hash (each hash is 64 lowercase hex characters). The tool runs offline and bypasses engine dispatch; it does not read receipt files or discover local data. Inputs are capped at 1 MiB, 32 rows and 64 KiB per row.

PASS means the supplied bytes match the pin and their canonical input, verdict, receipt and predecessor comparisons succeeded. Tampering returns FAIL; malformed inputs or missing native dependencies return UNAVAILABLE, never PASS. MCP rejects null or non-object/non-string values at its typed boundary.

Receipts are unsigned unless a signature is checked. These verification tools do not check signatures or validate scores or content. They do not establish identity, custody, trusted genesis or complete workflow coverage. signature_verified is always false; native proofs are reported as PROOF_PRESENT_UNVERIFIED. Stub scoring remains synthetic. See the dependency's NOTICE for native verifier MIT attribution.

Available Tools

5 tools
telos_auditA

Return audit chain entries within a time window.

Capped at 100 entries to keep MCP payloads bounded. For deeper queries, use the telos://audit/{date} resource per-day.

Args: start_iso: ISO-8601 window start (e.g. "2026-04-25T00:00:00Z"). end_iso: ISO-8601 window end (must be later than start).

Returns: Dict with keys: entries (list, max 100), count, capped (bool), window {start, end}.

Inputs: end_iso (required), start_iso (required). Returns: object

telos_get_paA

Return the active Purpose Anchor for an agent.

The PA is the governance contract: purpose statement, hard boundaries, declared scope, allowed tool list, and the centroid dimensions used to score the agent's actions.

Args: agent_id: Stable identifier of the agent whose PA to load.

Returns: Dict with keys: agent_id, pa_id, purpose, boundaries, scope, allowed_tools, centroid_dimensions, compiled_at, stub.

Inputs: agent_id (required). Returns: object

telos_replayA

Queue a CCRS counterfactual replay against an alternate config.

CCRS Mode C re-runs the lifecycle that produced receipt_id under a different governance configuration (alt thresholds, alt centroids, alt PA) and reports verdict deltas. Returns immediately with a job id; poll the result via telos://replay/{job_id} once available.

Args: receipt_id: ID of the receipt to replay against. alt_config_path: Path to the alternate config (YAML) to apply.

Returns: Dict with keys: job_id, receipt_id, alt_config_path, status, queued_at, estimated_runtime_seconds, result_uri, stub.

Inputs: receipt_id (required), alt_config_path (required). Returns: object

telos_scoreA

Score a proposed agent action against the active Purpose Anchor.

Returns a verdict (EXECUTE / CLARIFY / ESCALATE) plus a 6-dimension score breakdown across purpose, scope, boundary, tool, chain, and codebase_fidelity. Each call also mints an unsigned integrity-hash receipt (shared telos-receipt envelope) that telos_verify -- and the telos-trust-surface -- can verify with no translation.

Args: action_name: Name of the action being proposed (e.g. "write_file"). action_params: Parameter dict the agent intends to pass to the action. agent_id: Stable identifier of the agent proposing the action.

Returns: Dict with keys: verdict, composite_score, scores, agent_id, action_name, receipt, stub, engine.

Inputs: agent_id (required), action_name (required), action_params (required). Returns: object

telos_verifyA

Verify an unsigned integrity-hash receipt offline.

Recomputes the receipt's integrity hash over its canonical payload using the shared telos-receipt contract -- the same verifier the trust surface runs -- so the answer matches end-to-end. Key-free; not a signature check.

Args: receipt_json: The receipt to verify, either as a JSON string or as a JSON object (clients may pass either; both are accepted).

Returns: Dict with keys: match (bool), stated_integrity_hash, recomputed_integrity_hash, covered_fields, signing_status, note, reason.

Inputs: receipt_json (required). Returns: object

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 5 tools

    Disambiguation5/5

    Each tool targets a distinct operation: scoring, verification, fetching purpose anchors, auditing, and replay. There is no overlap, and the descriptions clearly differentiate their purposes.

    Naming Consistency5/5

    All tool names follow the 'telos_<verb>' pattern (e.g., telos_score, telos_verify, telos_get_pa, telos_audit, telos_replay). The naming is uniform and predictable, with no mixing of styles.

    Tool Count5/5

    With 5 tools, the server is well-scoped for its governance/audit domain. Each tool serves a necessary function, and the count is neither too few nor too many.

    Completeness4/5

    The tool set covers the core workflows: scoring, verification, fetching governance config, auditing, and replay. A potential gap is the absence of a tool to create or update Purpose Anchors, but the set appears complete for the stated monitoring/analysis purpose.

    Related MCP Connectors

    Related MCP Servers