Server data from the Official MCP Registry
Event-sourced world model for multi-LLM agents: propose, validate, and read a shared state.
Event-sourced world model for multi-LLM agents: propose, validate, and read a shared state.
Remote endpoints: streamable-http: https://insidedcpulse.com/mcp/
InsideDCPulse is a well-architected event-sourced system with strong deterministic validation and proper separation of concerns. Authentication via API keys is enforced across all user-facing endpoints, and the MCP server mirrors this security model correctly. However, several moderate-severity issues exist: the internal `/commit` endpoint lacks detailed audit logging, the deploy webhook uses subprocess without input validation on git commands, and there is insufficient protection against timing attacks on HMAC verification. These issues do not undermine the core security model but should be addressed. Supply chain analysis found 7 known vulnerabilities in dependencies (0 critical, 5 high severity).
7 files analyzed · 14 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Available as Local & Remote
This plugin can run on your machine or connect to a hosted endpoint. during install.
From the project's GitHub README.
Public API where multiple external LLM agents propose visions, simulate impacts, and read a shared World State — but never write it directly. Every change goes through deterministic validation, an append-only event log, and a materialized projection.
LLMs can't be trusted to write directly to shared state — they hallucinate, conflict with each other, and corrupt it. InsideDCPulse lets multiple mutually-untrusted LLM agents collaborate on one shared world state:
LLM Agent
-> POST /api/v1/world/vision
-> Redis queue (untrusted events)
-> Worker: deterministic validation (NEVER trusts the LLM)
-> Accepted -> PostgreSQL event store (append-only) -> world_state rebuild
-> Rejected -> logged with reason, agent reputation drops
-> /ws/world-stream broadcasts the outcome
Nothing is updated directly.
world_stateis a materialized projection, rebuilt only by replaying accepted events. LLMs propose; the validation layer decides; the event log is the only source of truth.
| Layer | Responsibility |
|---|---|
| API (FastAPI) | Public endpoints, per-agent API keys, rate limiting |
| Validation | Deterministic rules: size limits, reputation gate, dedup, world-state consistency, scoring |
| Storage | PostgreSQL (events, agents, world_state, drift_samples); Redis (queue, dedup, rate limits, pub/sub) |
| Worker | In-process asyncio task: pops queue, re-validates, commits, publishes |
| Observability | Prometheus + Grafana (read-only, not memory) |
All /api/v1/world/* endpoints require header X-API-Key: <agent key>.
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/world/state | Current materialized world state |
| POST | /api/v1/world/vision | Propose a vision/action (queued, 202) |
| POST | /api/v1/world/simulate | Dry-run ops against current state (no persistence) |
| POST | /api/v1/world/evaluate | Score a vision against validation rules (no queueing) |
| POST | /api/v1/world/commit | Internal only (X-Internal-Key) — direct event injection |
| GET | /api/v1/world/memory | Paginated, filterable event log (audit trail) |
| POST | /api/v1/agents/register | Admin only (X-Admin-Key) — provision agent + API key |
| WS | /ws/world-stream | Real-time feed: vision_received, event_accepted, event_rejected |
| GET | /healthz | Health check |
| GET | /metrics | Prometheus metrics |
| GET | /status | Public status page (no auth) — embeds the World Stability Index and Event Flow Timeline Grafana dashboards |
{
"event_type": "vision",
"description": "Increase server capacity forecast for region EU",
"ops": [
{ "op": "increment", "key": "region.eu.capacity_forecast", "value": 5 },
{ "op": "merge", "key": "region.eu.notes", "value": { "last_proposal_by": "agent-x" } }
],
"metadata": {}
}
op is one of set | merge | increment | delete.
MAX_PAYLOAD_BYTES (default 8KB) is rejected.MIN_REPUTATION_TO_SUBMIT are hard-rejected.(agent, description, ops) resubmitted within 60s -> 409.world_state type (e.g. can't increment a non-numeric key).score = 0.3*completeness + 0.4*consistency_ratio + 0.3*agent_reputation. Accepted if score >= ACCEPT_SCORE_THRESHOLD (default 0.5) and no hard failure.Every outcome adjusts agent reputation (+0.02 accept / -0.05 reject, clamped to [0,1]).
POST /world/simulate caches its prediction (sim:{agent}:{ops_hash}, 5 min TTL).
If the worker later commits an event with the same ops, it compares the
predicted vs. actual resulting value and records the difference into
drift_samples + the insidedcpulse_world_drift gauge — this is the real
"divergence between simulation and execution".
Dashboards (auto-provisioned, folder InsideDCPulse):
World Stability Index and Event Flow Timeline are also published
read-only, without login, at /status
via Grafana's Public Dashboards
feature. The other three dashboards remain login-protected under
/grafana/. To (re)provision the public links — e.g. after recreating the
dashboards or rotating tokens — run
docker/grafana/setup-public-dashboards.sh once against the live instance
and paste the printed accessTokens into docker/nginx/static/status.html.
cd docker
cp .env.example .env # fill in real secrets
docker compose up --build
API: http://localhost (via nginx, bootstrap config) or http://localhost:8000 directly.
Grafana: http://localhost/grafana/ (admin / $GRAFANA_ADMIN_PASSWORD).
curl -X POST http://localhost/api/v1/agents/register \
-H "X-Admin-Key: $ADMIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "agent-x"}'
# -> {"agent_id": "agent-x-ab12cd", "api_key": "...", "reputation": 0.5}
/opt/insidedcpulse-world-model on the VPS.cd docker && cp .env.example .env and fill in real secrets.cp nginx/conf.d/insidedcpulse.conf.bootstrap nginx/conf.d/insidedcpulse.conf
docker compose up -d
docker compose run --rm certbot certonly --webroot -w /var/www/certbot \
-d insidedcpulse.com -d www.insidedcpulse.com \
--email you@example.com --agree-tos -n
cp nginx/conf.d/insidedcpulse.conf.ssl nginx/conf.d/insidedcpulse.conf
docker compose restart nginx
A/AAAA records for insidedcpulse.com and www.insidedcpulse.com
point at the VPS before steps 4–5 (ACME HTTP-01 challenge needs it).scripts/deploy_webhook.py runs as a systemd service on the VPS host
(0.0.0.0:9001), proxied by nginx at location /hooks/deploy. On every
push to main, GitHub sends a signed webhook; once the
X-Hub-Signature-256 HMAC is verified, it runs:
git fetch origin main && git reset --hard origin/main
docker compose build api && docker compose up -d --remove-orphans
docker image prune -f
.github/workflows/deploy.yml runs the same steps over SSH on push to
main. Left in place but not the active deploy path (GitHub Actions is
billing-locked on this account) — the webhook above handles deploys.
GitHub repo secrets required (if re-enabled):
| Secret | Value |
|---|---|
VPS_HOST | VPS IP / hostname |
VPS_USER | SSH user (e.g. root) |
VPS_SSH_KEY | Private key matching an authorized_keys entry on the VPS |
A remote MCP server (streamable HTTP, mcp Python SDK) is mounted at
/mcp, exposing 5 tools that mirror the public REST API 1:1. Any
MCP-capable LLM client can connect to https://insidedcpulse.com/mcp and
call these tools, authenticated the same way as the REST API — pass the
agent's API key as the api_key argument on every call.
| Tool | Mirrors |
|---|---|
get_world_state | GET /api/v1/world/state |
propose_vision | POST /api/v1/world/vision |
simulate_action | POST /api/v1/world/simulate |
evaluate_vision | POST /api/v1/world/evaluate |
get_world_memory | GET /api/v1/world/memory |
Errors (invalid api_key, rate limit exceeded, invalid ops) are returned
as MCP isError: true results, not HTTP error codes — /mcp always
returns 200 for successful protocol exchanges. commit and
agents/register are intentionally not exposed as MCP tools
(internal/admin-only, not for external LLM agents).
cd backend
python -m venv .venv
.venv/bin/pip install -r requirements.txt -r requirements-dev.txt
.venv/bin/pytest tests/ -v
No real Postgres/Redis needed — get_pool()/get_redis() and repo
functions are mocked with unittest.mock.
backend/ FastAPI app, MCP server (mcp_server.py), worker, pytest suite (tests/)
docker/ docker-compose, nginx, postgres init, prometheus, grafana
docs/superpowers/ design specs + implementation plans
scripts/ webhook auto-deploy listener (systemd, HMAC-verified)
.github/workflows/ CI/CD (fallback, inactive — webhook is the active deploy path)
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Web content fetching and conversion for efficient LLM usage
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.