Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

os-prism

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

os-prism

PRISM OS-009 reference MCP server — 6 loop-phase machines (compose, interact, observe, reflect, diagnose, config) that benchmark any PULSE-conforming memory system. One of four MCP servers in the [&] three-protocol stack (box-and-box, graphonomous, os-pri

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
11
266.67%
Maintainers
1
Weekly downloads
 
Created
Source

os-prism

OpenSentience OS-009 PRISM reference MCP server.

One of four MCP servers in the [&] three-protocol stack:

PackageRoleInstall
box-and-box[&] Protocol validator / composernpx -y box-and-box --db ~/.box-and-box/specs.db
graphonomousMemory loop (5 machines)npx -y graphonomous --db ~/.graphonomous/knowledge.db
os-prismDiagnostic loop (this, 6 machines)npx -y os-prism --db ~/.os-prism/benchmarks.db
os-pulsePULSE manifest registrynpx -y os-pulse --db ~/.os-pulse/manifests.db

What os-prism does

  • Exposes the 6 PRISM loop-phase machines over stdio: compose, interact, observe, reflect, diagnose, config.
  • Each machine accepts an action parameter and forwards the call to the Elixir PRISM engine via a simple JSON-RPC protocol on stdin/stdout.
  • Persists a lightweight projection of registered systems, recent runs, and tool-call history in an embedded SQLite database for fast MCP resource responses.
  • Designed to benchmark any PULSE-conforming memory system (Bring Your Own Reasoning / Bring Your Own Loop).

v0.1.0 limitation: Elixir engine not bundled

The Elixir PRISM engine carries the IRT/Rasch calibration, three-layer judging pipeline, and scenario evolution logic. Bundling it as a cross-platform escript is deferred to v0.2.0. In v0.1.0:

  • The TypeScript MCP wrapper installs and runs normally.
  • All 6 machines are registered and discoverable.
  • Tool calls return a structured engine-unavailable response unless you set PRISM_ENGINE_PATH (or --engine-path) to an executable that speaks line-delimited JSON-RPC on stdin/stdout.

See docs/NPM_PACKAGE.md for the full engine wire protocol.

MCP tools (6 machines)

MachineActions
composescenarios, validate, list, get, retire, byor_register, byor_discover
interactrun, run_sequence, run_matrix, status, transcript, cancel, byor_evaluate, byor_compare
observejudge_transcript, judge_dimension, meta_judge, meta_judge_batch, override
reflectanalyze_gaps, evolve, advance_cycle, calibrate_irt, cycle_history, byor_recommend, byor_infer_profile
diagnosereport, failure_patterns, retest, verify, regressions, suggest_fixes, leaderboard, leaderboard_history, compare_systems, dimension_leaders, fit_recommendation, compare_fit, task_profiles
configset_weights, register_system, list_systems, get_config, create_profile

Total: 45 actions.

MCP resources

URIReturns
prism://runtime/healthEngine availability + counts.
prism://systems/registeredRegistered memory systems.
prism://runs/recentRecent benchmark runs.

Install

npx -y os-prism --db ~/.os-prism/benchmarks.db

Or in .mcp.json:

{
  "mcpServers": {
    "prism": {
      "command": "npx",
      "args": [
        "-y",
        "os-prism",
        "--db",
        "~/.os-prism/benchmarks.db"
      ],
      "env": {
        "PRISM_ENGINE_PATH": "/path/to/prism_engine"
      }
    }
  }
}

Flags

FlagDefault
--db <path>~/.os-prism/benchmarks.db
--transportstdio (only; HTTP planned)
--port4712 (ignored for stdio)
--engine-path$PRISM_ENGINE_PATH or unset
--log-levelinfo

Engine wire protocol

The wrapper spawns the engine as a child process and writes one JSON object per line on its stdin:

{"id": "req-...", "method": "compose.list", "params": {"kind": "anchor"}}

and reads one JSON object per line on its stdout:

{"id": "req-...", "ok": true, "result": { ... }}

Any engine that implements this protocol and dispatches <machine>.<action> calls onto the PRISM core modules can be used.

Build from source

git clone https://github.com/c-u-l8er/AmpersandBoxDesign
cd AmpersandBoxDesign/PRISM/npm
npm install
npm run build
node bin/os-prism.js --help

Spec

  • docs/NPM_PACKAGE.md — full package specification
  • OS-009 PRISM Specification
  • ../lib/prism/mcp/machines/ — Elixir implementation of the 6 machines (the v0.1.0 wrapper delegates to these)

License

Apache-2.0

Keywords

mcp

FAQs

Package last updated on 10 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts