Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Realm Mcp

БесплатноНе проверен

MCP server for Realm — exposes 7 tools for AI agent connections over stdio or HTTP.

GitHubEmbed

Описание

MCP server for Realm — exposes 7 tools for AI agent connections over stdio or HTTP.

README

The agent calls Realm. Every other tool calls the agent.

Most AI workflow platforms orchestrate LLMs as services: the platform decides when to call the model, what to send, and what to do with the result. Realm inverts this. The agent calls execute_step via MCP. Realm's state machine responds with the current step's task and schema. The agent executes. It cannot skip steps, produce malformed output, or proceed past a human gate — not because of instructions it might ignore, but because the state cannot change until valid output is submitted.

If your skill file has grown a list of "Do NOT" rules, each one is a scar from a failure the agent invented. Realm replaces those rules with structure: wrong behaviour becomes impossible rather than prohibited.

You define workflows in YAML. The engine enforces step order, validates every agent output against a JSON schema, captures tamper-evident evidence at each step, and pauses at human gates until a person approves. The result is not just a log of what ran — it is a cryptographically verifiable record that every step ran correctly. For developers building AI workflows for clients, that record is the deliverable.

Packages

Package npm Description
@sensigo/realm npm Core engine — state guard, execution loop, evidence capture
@sensigo/realm-cli npm realm CLI — 19 commands for building, operating, and serving workflows
@sensigo/realm-mcp npm realm-mcp MCP server — 10 tools for AI agent connections
@sensigo/realm-testing npm Testing utilities — fixtures, assertions, in-memory store

Installation

CLI (global)

npm install -g @sensigo/realm-cli

MCP server (global, for AI agent connections)

npm install -g @sensigo/realm-mcp

Programmatic use

npm install @sensigo/realm

Testing utilities

npm install --save-dev @sensigo/realm-testing

Quick Start

1. Scaffold a workflow

realm workflow init my-workflow

This creates my-workflow/ with workflow.yaml, schema.json, .env.example, and a README.md.

2. Edit my-workflow/workflow.yaml

id: my-workflow
name: 'My Workflow'
version: 1

steps:
  gather_input:
    description: 'Agent collects the required information'
    execution: agent
    depends_on: []
    input_schema:
      type: object
      required: [summary]
      properties:
        summary:
          type: string

  finalize:
    description: 'Human reviews and approves the submitted summary'
    execution: auto
    depends_on: [gather_input]
    trust: human_confirmed

3. Validate, register, and run

realm workflow validate ./my-workflow   # check the YAML
realm workflow register ./my-workflow   # register with the local store
realm workflow run ./my-workflow        # run interactively (development mode)

realm workflow run drives the workflow step by step, prompting you for simulated agent output and pausing at human gates.

Connect an AI Agent via MCP

Start the MCP server (built into the CLI — no extra install needed):

realm mcp

Claude Desktop — claude_desktop_config.json

{
  "mcpServers": {
    "realm": {
      "command": "realm",
      "args": ["mcp"]
    }
  }
}

Cursor — ~/.cursor/mcp.json

{
  "mcpServers": {
    "realm": {
      "command": "realm",
      "args": ["mcp"]
    }
  }
}

Hosted agent platforms (OpenClaw, Claude.ai, custom backends) that cannot spawn a local subprocess use realm serve instead:

REALM_SERVE_TOKEN=<secret> realm serve --port 3001

This starts an HTTP MCP server protected by Bearer token authentication. Use --dev to skip auth during local development.

Once connected the agent has access to 10 tools: list_workflows, get_workflow_protocol, start_run, start_run_batch, execute_step, submit_human_response, get_run_state, abandon_run, create_workflow, and list_runs.

The agent calls list_workflows to discover registered workflows, then get_workflow_protocol for the matched workflow to receive explicit step-by-step instructions. It cannot execute a step out of order or submit output that fails schema validation.

When no registered workflow matches the task, the agent calls create_workflow with a steps array to register a dynamic workflow and immediately start a run — no YAML file or realm workflow register required. The run proceeds identically to a YAML workflow from that point.

Multiple workflows: register as many as you need with realm workflow register. The agent discovers them all via list_workflows and picks the right one by ID. Add a skill.md alongside each workflow for workflow-specific agent behaviour.

Project extensions

Workflows can declare their own custom adapters, step handlers, and processors — no wrapper servers, no per-command wiring:

# workflow.yaml
extensions: ./registry.js # relative module path(s); the default export declares { adapters, handlers, processors }

Every step-executing entry point (run, agent, listen, serve, mcp, test, validate) resolves the declaration identically, with fail-fast loading and an enforced trust boundary. See docs/reference/project-extensions.md.

CLI Reference

Command Description
realm workflow init <name> Scaffold a new workflow project directory
realm workflow validate <path> Validate a workflow YAML without registering it
realm workflow register <path> Register a workflow in the local store
realm workflow watch <path> Watch a workflow YAML and re-register on every change
realm workflow run <path> Run a workflow interactively (development mode)
realm agent Run a workflow autonomously with an LLM — no MCP client or IDE required
realm workflow test <path> Run fixture-based tests against a workflow
realm run list List all runs; filter by --workflow <id> or --status <phase>
realm run resume <run-id> Resume a paused run
realm run respond <run-id> Submit a response to a human gate
realm run inspect <run-id> Print the full evidence chain for a run
realm run replay <run-id> Re-evaluate preconditions with modified step outputs
realm run diff <run-a> <run-b> Compare evidence chains of two runs side by side
realm run cleanup Mark idle non-terminal runs as abandoned
realm workflow migrate Back-fill provenance fields on local workflow definitions from earlier versions
realm mcp Start the MCP server over stdio (for local AI agents)
realm serve Start the MCP server over HTTP with Bearer token auth (for hosted platforms)
realm listen Start a webhook server that routes inbound webhooks to workflows (per trigger: block)

Run realm <command> --help for full options on any command.

The GitHub-only realm webhook command was removed in favour of realm listen (a workflow trigger: block with auth.mode: github replaces it). Running realm webhook now prints a migration message and exits non-zero.

Documentation

Development

Prerequisites: Node.js 22+, npm 10+

npm install          # install all workspace dependencies
npm run build        # compile all packages
npm run test         # run all tests
npm run lint         # lint all packages

License

Apache 2.0

from github.com/sensigo-hq/realm

Установить Realm Mcp в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install realm-mcp

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add realm-mcp -- npx -y @sensigo/realm-mcp

FAQ

Realm Mcp MCP бесплатный?

Да, Realm Mcp MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Realm Mcp?

Нет, Realm Mcp работает без API-ключей и переменных окружения.

Realm Mcp — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Realm Mcp в Claude Desktop, Claude Code или Cursor?

Открой Realm Mcp на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Realm Mcp with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai