mcpField
P
P31 Governed Agent CLI

P31 Governed Agent CLI

Remote
github.com/p31labsAI & Agents0Updated 4d ago
Repository

About P31 Governed Agent CLI

P31 Governed Agent CLI is a sovereign agent CLI for neurodivergent families, with interactive and autonomous modes. It includes a themed TUI, multiple LLM providers, and 133 MCP tools across 10 categories.

Key features

  1. 01Interactive TUI and chat modes
  2. 02Autonomous agent mode
  3. 03133 MCP tools in 10 categories
  4. 04Three LLM provider options
  5. 05Themed, adaptive interface
  6. 06SQLite session storage

Use cases

  1. 01Run an agent from an interactive terminal
  2. 02Use MCP tools for cognitive support
  3. 03Select a theme for the terminal interface
  4. 04Store agent sessions in SQLite

MCP support

It can run as an MCP server over stdio or HTTP, exposing 133 tools across 10 categories, including cognitive support, session state, and design resources.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://mcp.p31ca.org/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Packages
npm@p31ca/cli3.1.6
mcpbp31-mcp-governed-agent-cli-3.1.3.mcpb3.1.6

Tools

Details

From the project README

P31 Sovereign CLI

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

Install

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

Or from source:

git clone https://github.com/p31labs/p31-cli.git
cd p31-cli
npm install
npm run build
npm link

Quick Start

p31                    # Interactive TUI
p31 chat              # One-shot chat
p31 agent             # Autonomous agent mode
p31 mcp               # MCP stdio server (133 tools)
p31 mcp:http          # MCP HTTP server
p31 tui               # Ink TUI with themes
p31 phos              # PHOS forge commands
p31 spoons            # Spoon level management
p31 session           # Session management
p31 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

// 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.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.