AgentStack
MCP verified MIT Self-run

VSMCP

mcp-jmanhype-vsmcp · by jmanhype

Viable System Model Cybernetic Platform - Elixir implementation with AMQP, MCP, and CRDT support

No reviews yet
0 installs
8 views
0.0% view→install

Install

$ agentstack add mcp-jmanhype-vsmcp

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README — it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-jmanhype-vsmcp)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming — see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps — measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of VSMCP? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

VSMCP

Elixir implementation of Stafford Beer's Viable System Model (VSM) with MCP integration, AMQP messaging, and CRDT-based distributed state.

Status

Early-stage (v0.1.0). Core supervision tree runs. No hex.pm release exists despite badge placeholders in the previous README. The CI badge pointed to a viable-systems org that does not match this repo's owner. Test coverage is unknown.

What It Does

Maps Beer's 5 VSM subsystems onto an OTP application:

| VSM System | Role | Elixir Module | |---|---|---| | System 1 (Operations) | Autonomous work units, MCP tool execution | Vsmcp.Systems.System1 | | System 2 (Coordination) | Conflict resolution, anti-oscillation | Vsmcp.Systems.System2 | | System 3 (Control) | Resource allocation, audit channel (3*) | Vsmcp.Systems.System3 | | System 4 (Intelligence) | Environment scanning, MCP server discovery | Vsmcp.Systems.System4 | | System 5 (Policy) | Identity, governance, goal alignment | Vsmcp.Systems.System5 |

Additional subsystems:

| Component | Purpose | |---|---| | AMQP Nervous System | RabbitMQ message routing between VSM layers | | CRDT Store | Conflict-free replicated data types (OR-Set, G-Counter, LWW-Register, HLC) | | MCP Server/Client | Model Context Protocol for dynamic tool discovery | | Consciousness Interface | Meta-cognitive reflection layer | | Variety Calculator | Ashby's Law of Requisite Variety metrics |

Tech Stack

| Layer | Technology | |---|---| | Language | Elixir 1.17+ / OTP 26+ | | Messaging | RabbitMQ 3.13+ (AMQP) | | State | CRDT (custom), optional PostgreSQL 14+ | | Protocol | MCP (TCP, WebSocket, stdio transports) | | Deployment | Docker, Kubernetes (manifests in k8s/) | | Telemetry | OpenTelemetry-compatible, Prometheus on port 9568 |

Project Layout

lib/vsmcp/
  systems/          # System 1-5 implementations
  amqp/             # Connection pool, channel manager, consumers, producers
  crdt/             # OR-Set, G-Counter, LWW-Register, HLC, storage
  mcp/              # Server, client, protocol, capability/tool registries
  consciousness/    # Meta-cognitive interface
  core/             # Variety calculator
config/             # dev.exs, runtime.exs, test.exs
k8s/                # Kubernetes base + production overlay
examples/           # Demo scripts (AMQP, Hermes MCP, Telegram VSM)

Setup

git clone https://github.com/jmanhype/VSMCP.git
cd VSMCP
mix deps.get && mix compile
mix test
iex -S mix

Docker:

docker build -t vsmcp .
docker run -p 4010:4010 vsmcp

Kubernetes:

kubectl apply -f k8s/base/

Configuration

Key environment variables:

| Variable | Default | Purpose | |---|---|---| | VSMCP_MCP_PORT | 4010 | MCP server port | | VSMCP_MCP_TRANSPORT | tcp | tcp, websocket, or stdio | | VSMCP_AMQP_URL | amqp://localhost:5672 | RabbitMQ connection | | VSMCP_AMQP_POOL_SIZE | 10 | Connection pool size | | VSMCP_METRICS_PORT | 9568 | Prometheus metrics | | VSMCP_LOG_LEVEL | info | debug, info, warn, error |

See config/config.exs for full tuning parameters (variety check intervals, recursion depth, prefetch counts, timeouts).

Limitations

  • No published hex package. The old README badges were aspirational.
  • Telegram bot integration exists in examples/ but the polling system had known issues (see TELEGRAM_POLLING_INVESTIGATION_REPORT.md).
  • The "consciousness interface" is a structural placeholder, not an AI cognition system.
  • CRDT implementation is custom and not benchmarked against established libraries like Delta-CRDT.
  • No integration tests for the full AMQP nervous system path.

License

See LICENSE.md.

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.