P31 Governed Agent CLI

org.p31caPublished by p31ca.orgOfficial publisherv3.1.6Updated Nov 7, 2026

Capability-routed CLI/MCP: signed provenance exports, WCAG-validated themes, sovereign deploy modes.

VerifiedStreamable HTTPWeb executableDeveloper ToolsMedia & DesignAI & ML

Overview

AI-generated overview

MCP server for the P31 sovereign agent CLI, exposing 133 tools across session, cognitive-support, verification, ontology and design categories.

What you can do
  • Run agent, chat and interactive terminal modes of the P31 CLI
  • Manage CLI session state and cross-app sync
  • Work with cognitive-support, spoon-level and LOVE ledger tools
  • Check verified facts, three-gate verification and building ontology
  • Apply design tokens, components and WCAG-validated themes
When to use it
Worth considering if you want an assistant to drive the P31 sovereign agent stack — its sessions, verification gates, ontology and design system — rather than a general-purpose toolset. Most useful to people already using the P31 CLI or its OpenCode plugins.
Requirements
Runs as a remote endpoint or as a local process; the local package needs Node.js 22 or newer. OAuth authentication is required. Optional environment variables include LOVE_LEDGER_URL, LEDGER_BRIDGE_URL, P31_USER_ID and OPENCODE_CONFIG. The documented install uses a shell install script or a source build.
Before you install
The documented install pipes a remote script into a shell, which runs unreviewed code; prefer the package or source build. The server is OAuth-protected and can reach ledger endpoints named by LOVE_LEDGER_URL and LEDGER_BRIDGE_URL, so check where session and ledger data is sent. Agent mode can act autonomously, and the tool list is not published, so review the 133 tools before granting access.

Installation

In SourceWeft

  1. Open P31 Governed Agent CLI in the dashboard and add it to a workspace.
  2. Connect the required credentials. They are stored privately and never shown on public pages.
  3. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/org.p31ca%2Fgoverned-agent-cli/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config. The client completes OAuth sign-in on first connect.

{
  "mcpServers": {
    "p31-governed-agent-cli": {
      "type": "http",
      "url": "https://mcp.p31ca.org/mcp"
    }
  }
}

README

P31 Sovereign CLI

Sovereign AI agent for neurodivergent families. OpenCode face, P31 guts.

Install

bash
curl -fsSL https://cli.p31ca.org/install | bash

Or from source:

bash
git clone https://github.com/p31labs/p31-cli.gitcd p31-clinpm installnpm run buildnpm link

Quick Start

bash
p31                    # Interactive TUIp31 chat              # One-shot chatp31 agent             # Autonomous agent modep31 mcp               # MCP stdio server (133 tools)p31 mcp:http          # MCP HTTP serverp31 tui               # Ink TUI with themesp31 phos              # PHOS forge commandsp31 spoons            # Spoon level managementp31 session           # Session managementp31 sync              # Cross-app sync

Architecture

  • TypeScript (ESM, Node.js >= 22)
  • MCP Protocol — 133 tools across 10 categories
  • OpenCode Plugins — 6 sovereign plugins
  • 3 LLM Providers — Anthropic, Google Gemini, OpenRouter
  • SQLite Sessions — Per-session-tree sharding
  • Ink TUI — 3 themes, spoon-aware adaptive UI
  • React Web UI — xterm.js terminal viewer

MCP Servers

CategoryToolsDescription
oasis11CLI session state
love4LOVE ledger
cognitive47Neurodivergent support
spaceship4DUNA / dome
ground-truth14Verified facts
marge12Design compliance
soulsafe153-gate verification
bob10Building ontology
component5Component registry
design11Design tokens
Total133

Configuration

jsonc
// opencode.json{  "mcp": {    "phos-forge": { "type": "local", "command": ["node", "/path/to/mcp-server.mjs"] },    "p31-crypto": { "type": "remote", "url": "https://p31-crypto-mcp.trimtab-signal.workers.dev/mcp" }  },  "plugin": ["spoon-monitor", "sovereign-id", "care-attest", "pqc-tools", "mesh-visualize", "honest-label"]}

Design System

  • Tokens: tokens/tokens.yml
  • Components: tokens/components.yml
  • Themes: p31ca, phosphorus31, crisis
  • Accessibility: Atkinson Hyperlegible, 48px touch targets, WCAG AAA

Environment Variables

VariableDescription
LOVE_LEDGER_URLLOVE ledger endpoint
LEDGER_BRIDGE_URLLedger bridge endpoint
P31_USER_IDDefault user ID
OPENCODE_CONFIGCustom OpenCode config path

License

MIT — P31 Labs, Inc.

Source: README.md at commit e7162f6

Tools

0
This server asks you to sign in, so SourceWeft could not read its tools without an account and has not indexed them. What a connected account sees can depend on that account and its permissions.

Version history

1
  1. v3.1.6LatestNov 7, 2026

Score

85% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

Other P31ca integrations