intended

v0.1.1
io.github.intended-so/intended Checked 15 hours ago Published 2 months ago

Intended's authority layer as MCP tools: ALLOW/ESCALATE/DENY decisions with signed tokens.

Intended as an MCP server — exposes Intended's authority layer to any MCP client (Claude Code, Claude Desktop, Cursor, Codex CLI, and hosted clients) as tools + a policy resource. Every decision is made server-side by the Intended API — this package never decides locally; there is exactly one decision path. Configure your MCP client (e.g. .mcp.json): INTENDED_API_URL defaults to https://api.intended.so.

Summary extracted from the README.

@intended-inc/mcp-server

Intended as an MCP server — exposes Intended's authority layer to any MCP client (Claude Code, Claude Desktop, Cursor, Codex CLI, and hosted clients) as tools + a policy resource. Every decision is made server-side by the Intended API — this package never decides locally; there is exactly one decision path.

Status: Beta. See the Intended capability-truth matrix for the authoritative status of each surface. This README makes no runtime-authorization claim beyond what the matrix marks real.

Tools

Tool What it does What it does NOT do
submit_intent Submits a proposed action; returns the compiled intent, Open Intent classification, and decision (ALLOW / ESCALATE / DENY). On ALLOW, returns the signed single-use authority token. Fail-closed. Does not execute the action. Does not decide locally.
verify_token Verifies an authority token offline against the tenant's cached public key; returns validity, kid, expiry, single-use status. Does not consume/spend the token.
get_receipt Returns the offline-verifiable decision receipt for an intent id. —
list_policies Read-only. Lists the tenant's installed policy packs. Does not modify policy.
explain_decision Read-only. Returns the recorded intent, decision, and rationale for an intent id. —

Resource: intended://policy/packs — the tenant's installed policy packs.

Install & run (local, stdio)

npm i -g @intended-inc/mcp-server   # once published

Configure your MCP client (e.g. .mcp.json):

{
  "mcpServers": {
    "intended": {
      "command": "intended-mcp-server",
      "env": {
        "INTENDED_API_KEY": "intended_live_…",
        "INTENDED_TENANT_ID": "your-tenant"
      }
    }
  }
}

INTENDED_API_URL defaults to https://api.intended.so.

Hosted (streamable-HTTP)

import { startStreamableHttpServer } from "@intended-inc/mcp-server";
startStreamableHttpServer({ apiKey, tenantId }, { port: 8790, path: "/mcp" });

Stateless (a fresh server per request). Single-tenant: it uses the configured API key. Multi-tenant request→tenant resolution is left to the deployment.

Guarantees

  • Fail-closed: an unreachable authority service or unrecognized verdict is a DENY.
  • No secrets in tool outputs: the API key is never returned. The authority token returned by submit_intent on ALLOW is a single-use token meant to be attached to the action, not a standing secret.
  • One decision path: all decisions go through the Intended API's /v1/agent-intent (→ /intent) pipeline; the authority-decision OTel span is emitted server-side.

Apache-2.0.