mcp-nervous-system 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,9 +2,30 @@
2
2
 
3
3
  **LLM Behavioral Enforcement Framework**
4
4
 
5
+ ## Quick Start (2 minutes)
6
+
7
+ ```bash
8
+ npx mcp-nervous-system
9
+ # Server starts on port 3475
10
+ ```
11
+
12
+ Add to Claude Code:
13
+ ```bash
14
+ claude mcp add nervous-system npx mcp-nervous-system
15
+ ```
16
+
17
+ Add to Cursor / Windsurf / Cline - use the hosted endpoint (no install):
18
+ ```
19
+ https://api.100levelup.com/mcp-ns/
20
+ ```
21
+
22
+ That's it. You now have 32 governance tools: preflight checks, audit trails, drift detection, security scans, and a kill switch.
23
+
24
+ ---
25
+
5
26
  7 mechanically enforced rules that prevent the most common failure modes when LLMs have access to real infrastructure: context loss, silent failures, file damage, goal drift, and overreach.
6
27
 
7
- Built by [Arthur Palyan](https://www.levelsofself.com) at Palyan Family AI System. 30 tools including configuration drift detection, emergency kill switch, usage monitoring, and bot compliance auditing. Battle-tested on a 13-agent AI family running 29 processes 24/7 on a $24/month VPS (upgraded to 7.8GB RAM). SAM.gov registered (CAGE 19R10). 26 partners across 10 countries. 99+ violations caught, 0 bypassed.
28
+ Built by [Arthur Palyan](https://www.levelsofself.com) at Palyan Family AI System. 30 tools including configuration drift detection, emergency kill switch, usage monitoring, and bot compliance auditing. Battle-tested on a 13-agent AI family running 28 processes 24/7 on a $300/month infrastructure (7.8GB RAM, 154GB SSD). SAM.gov registered (CAGE 19R10). 35 partners across 10 countries. 99+ violations caught, 0 bypassed.
8
29
 
9
30
  ## The Problem
10
31
 
@@ -0,0 +1,218 @@
1
+ # The Nervous System
2
+
3
+ **LLM Behavioral Enforcement Framework**
4
+
5
+ 7 mechanically enforced rules that prevent the most common failure modes when LLMs have access to real infrastructure: context loss, silent failures, file damage, goal drift, and overreach.
6
+
7
+ Built by [Arthur Palyan](https://www.levelsofself.com) at Palyan Family AI System. 30 tools including configuration drift detection, emergency kill switch, usage monitoring, and bot compliance auditing. Battle-tested on a 13-agent AI family running 29 processes 24/7 on a $24/month VPS (upgraded to 7.8GB RAM). SAM.gov registered (CAGE 19R10). 26 partners across 10 countries. 99+ violations caught, 0 bypassed.
8
+
9
+ ## The Problem
10
+
11
+ When you give an LLM access to your file system, bash, and production infrastructure, it will eventually:
12
+
13
+ - Edit a file it shouldn't touch
14
+ - Lose context between sessions and start over
15
+ - Drift from the original objective during long tasks
16
+ - Fail silently when a session times out
17
+ - Make logic changes without asking
18
+ - Disappear into debug loops
19
+
20
+ The Nervous System solves all of these with rules enforced by external mechanisms the LLM cannot override.
21
+
22
+ ## Install
23
+
24
+ ### Claude Desktop
25
+
26
+ Add to your `claude_desktop_config.json`:
27
+
28
+ ```json
29
+ {
30
+ "mcpServers": {
31
+ "nervous-system": {
32
+ "command": "npx",
33
+ "args": ["-y", "mcp-nervous-system"]
34
+ }
35
+ }
36
+ }
37
+ ```
38
+
39
+ ### Claude Code
40
+
41
+ ```bash
42
+ claude mcp add nervous-system npx mcp-nervous-system
43
+ ```
44
+
45
+ ### Direct
46
+
47
+ ```bash
48
+ npx mcp-nervous-system
49
+ ```
50
+
51
+ Server starts on port 3475 with SSE, HTTP, and health endpoints.
52
+
53
+ ### Hosted (No Install)
54
+
55
+ The server is live and ready to use:
56
+
57
+ ```
58
+ URL: https://api.100levelup.com/mcp-ns/
59
+ Protocol: MCP 2024-11-05 (Streamable HTTP + SSE)
60
+ Authentication: None required
61
+ ```
62
+
63
+ ## NEW in v1.9.3
64
+
65
+ **Platform Integration Guides** - Working examples for governing multi-agent systems on the 3 biggest platforms plus any MCP client. Each guide gets you to governed agents in under 10 minutes.
66
+
67
+ - [Ruflo (claude-flow)](./integrations/ruflo/) - Queen-Worker hive mind governance with preflight checks, drift audits, and violation logging to swarm_state
68
+ - [Hivemind](./integrations/hivemind/) - Team chat agent governance with tool interception, heartbeat drift audits, and session handoffs
69
+ - [Anthropic Agent Teams](./integrations/agent-teams/) - Parallel agent governance via CLAUDE.md propagation with shared untouchable lists and unified audit trails
70
+ - [Generic MCP](./integrations/generic-mcp/) - 5-minute setup for any MCP client (Claude Desktop, Claude Code, Cursor, Windsurf, Cline)
71
+
72
+ ## v1.9.3
73
+
74
+ **Tamara Reference Implementation + Case Study** (2 new resources)
75
+ Production reference implementation of an autonomous AI operations manager built on the Nervous System. Includes full architecture documentation, build-your-own guide, and case study with real metrics from managing 13 agents across 5 platforms.
76
+
77
+ ## v1.9.3
78
+
79
+ **drift_audit** (free tier)
80
+ Configuration drift detection across 5 scopes: roles, versions, files, processes, and website. Scans source-of-truth files (family-roles.json, package.json, UNTOUCHABLE_FILES.txt) against all downstream references - HTML pages, JSON configs, markdown docs, and running PM2 processes. Change one file, drift_audit tells you everywhere else that needs updating. The closed loop that keeps your entire system consistent.
81
+
82
+ **Positioning: Auto mode decides what Claude CAN do. The Nervous System governs HOW it behaves while doing it.**
83
+
84
+ ## The 7 Rules
85
+
86
+ | # | Rule | What It Prevents |
87
+ |---|------|-----------------|
88
+ | 1 | **Dispatch Don't Do** | Debug loops, rabbit holes. Tasks > 2 messages get dispatched. |
89
+ | 2 | **Untouchable** | File damage. Protected files mechanically blocked from editing. |
90
+ | 3 | **Write Progress** | Silent failures. Progress noted before each action. |
91
+ | 4 | **Step Back Every 4** | Goal drift. Forced reflection every 4 messages. |
92
+ | 5 | **Delegate and Return** | Invisible work. Background tasks reported immediately. |
93
+ | 6 | **Ask Before Touching** | Unauthorized changes. Logic changes need human approval. |
94
+ | 7 | **Hand Off** | Context loss. Written handoffs every 3-4 exchanges. |
95
+
96
+ ## MCP Tools (21)
97
+
98
+ | Tool | Description |
99
+ |------|------------|
100
+ | `get_framework` | Complete framework: all rules, permission protocol, enforcement patterns |
101
+ | `guardrail_rules` | The 7 core rules with triggers, enforcement, and failure modes |
102
+ | `preflight_check` | File protection system: shell script blocks edits to protected files |
103
+ | `session_handoff` | Context preservation: templates for handoff documents |
104
+ | `worklog` | Progress documentation pattern |
105
+ | `violation_logging` | Audit trail: timestamp, type, context for every violation |
106
+ | `step_back_check` | Forced reflection system |
107
+ | `get_nervous_system_info` | System overview and operational stats |
108
+ | `emergency_kill_switch` | Emergency shutdown of all PM2 processes. Requires kill switch secret. Logs to tamper-evident audit trail |
109
+ | `verify_audit_chain` | Walks the SHA-256 hash-chained audit log and verifies every entry. Returns chain integrity status |
110
+ | `dispatch_to_llm` | Spawns a background LLM agent to handle a task. Checks RAM, enforces max 2 concurrent dispatches |
111
+ | `drift_audit` | Configuration drift detection across roles, versions, files, processes, and website. Finds stale values everywhere. |
112
+
113
+ ## Kill Switch
114
+
115
+ The `emergency_kill_switch` tool provides an emergency shutdown capability. Send a POST request to `/kill` with the kill switch secret to immediately stop all PM2 processes. Every activation is logged to the tamper-evident audit trail with SHA-256 hash chaining, so kill switch events cannot be hidden or altered after the fact.
116
+
117
+ - Requires authentication (kill switch secret)
118
+ - Logs to hash-chained audit trail
119
+ - Returns confirmation with affected process count
120
+
121
+ ## Tamper-Evident Audit Trail
122
+
123
+ Every guardrail violation, kill switch activation, and dispatch event is recorded in a SHA-256 hash-chained audit log. Each entry includes the hash of the previous entry, making it cryptographically impossible to alter or delete past records without breaking the chain.
124
+
125
+ - Use `verify_audit_chain` to walk the entire chain and verify integrity
126
+ - Returns: valid/invalid status, entry count, and break point if tampered
127
+ - 99+ violations caught, 0 bypassed, 0 chain breaks
128
+
129
+ ## Dispatch to LLM
130
+
131
+ The `dispatch_to_llm` tool enables a brain + agents architecture. Instead of one LLM session doing everything, complex tasks get dispatched to background agents that run independently under the same 7 rules.
132
+
133
+ - Checks available RAM (requires 500MB+)
134
+ - Enforces max 2 concurrent dispatches
135
+ - Returns PID and log file path for monitoring
136
+ - Every dispatched agent runs under the same nervous system guardrails
137
+
138
+ ## EU AI Act Compliance
139
+
140
+ The Nervous System provides practical compliance tools for the EU AI Act. See the full compliance page at:
141
+
142
+ https://api.100levelup.com/family/eu-ai-act.html
143
+
144
+ ## Production Reference: Tamara
145
+
146
+ Tamara is an autonomous AI operations manager built on the Nervous System framework. She manages 13 AI agents across 5 platforms, serving 175+ countries accessible from a $12/month VPS - without dedicated DevOps staff.
147
+
148
+ Tamara is the proof that the Nervous System works in production. She runs 60-minute autonomous check cycles, detects configuration drift, dispatches remediation agents, and reports to the human operator only when judgment is needed.
149
+
150
+ - **Case Study**: Use the `nervous-system://case-study` resource for full production metrics
151
+ - **Reference Implementation**: Use the `nervous-system://tamara-reference` resource for architecture details and build-your-own guide
152
+ - **Enterprise Support**: For organizations deploying AI agent fleets at scale, implementation consulting is available at wa.me/18184399770
153
+ - **Blog**: [Meet Tamara](https://api.100levelup.com/family/blog/meet-tamara.md) | [Why AI Agent Management Is the Next Infrastructure Layer](https://api.100levelup.com/family/blog/ai-agent-management.md)
154
+
155
+ ## Resources (7)
156
+
157
+ - `nervous-system://framework` - The complete framework
158
+ - `nervous-system://quick-start` - Quick start guide
159
+ - `nervous-system://rules` - The 7 core rules
160
+ - `nervous-system://templates` - Templates for handoffs, worklogs, preflight
161
+ - `nervous-system://drift-audit` - Configuration drift detection
162
+ - `nervous-system://tamara-reference` - Tamara autonomous ops manager reference implementation
163
+ - `nervous-system://case-study` - Palyan Family AI System production case study
164
+
165
+ ## Production Stats
166
+
167
+ From the live Palyan Family AI System deployment (Feb 28 - Mar 5, 2026):
168
+
169
+ - **58+** violations caught
170
+ - **29** edits blocked by preflight
171
+ - **100** files protected
172
+ - **0** rules bypassed
173
+ - **27** processes monitored
174
+ - **5** days continuous operation
175
+
176
+ ## Live Demo
177
+
178
+ Try it yourself (no login required):
179
+
180
+ - **[Interactive Demo](https://api.100levelup.com/family/arthur.html?guest=1)** - Talk to a governed LLM and try to break the rules
181
+ - **[Audit Dashboard](https://api.100levelup.com/family/audit.html)** - See real violation history with timeline
182
+ - **[System Status](https://api.100levelup.com/family/status.html)** - Live health checks
183
+ - **[API Documentation](https://api.100levelup.com/family/api-docs.html)** - Full tool and resource reference
184
+ - **[Case Study](https://api.100levelup.com/family/case-study.html)** - Production deployment data
185
+ - **[Plain English Rules](https://api.100levelup.com/family/rules-plain.html)** - For non-technical stakeholders
186
+ - **[Incident Response](https://api.100levelup.com/family/incident-response.html)** - Detection, containment, resolution
187
+ - **[EU AI Act Compliance](https://api.100levelup.com/family/eu-ai-act.html)** - Practical EU AI Act compliance tools
188
+
189
+ ## Integrations
190
+
191
+ Works with the major multi-agent platforms and any MCP client:
192
+
193
+ | Platform | Integration | Setup Time |
194
+ |----------|------------|------------|
195
+ | **[Ruflo (claude-flow)](./integrations/ruflo/)** | Plugin hooks into Queen-Worker pipeline | 10 min |
196
+ | **[Hivemind](./integrations/hivemind/)** | MCP connector with tool interception | 10 min |
197
+ | **[Anthropic Agent Teams](./integrations/agent-teams/)** | CLAUDE.md governance propagation | 10 min |
198
+ | **[Any MCP Client](./integrations/generic-mcp/)** | 3 lines of config | 5 min |
199
+
200
+ Each integration includes working code, example configs, and a step-by-step README.
201
+
202
+ ## Agent Skills
203
+
204
+ The Nervous System is also available as an Agent Skill following the open [Agent Skills standard](https://agentskills.io). Install the governance skill to teach any AI agent (Claude, Codex, Cursor, Copilot, VS Code) how to enforce behavioral guardrails in multi-agent systems.
205
+
206
+ See `skills/multi-agent-governance/SKILL.md` for the full skill definition.
207
+
208
+ ## Philosophy
209
+
210
+ > "LLMs can't reliably self-enforce promises. Guardrails work via preflight.sh, violation logs, and catching drift. Build enforcement systems, don't make promises."
211
+
212
+ If a guardrail can be violated by the thing it guards, it is not a guardrail. It is a suggestion.
213
+
214
+ Every rule in the Nervous System is enforced by an external mechanism: a shell script, a timer, a separate monitoring process. The LLM cannot override, circumvent, or ignore them.
215
+
216
+ ## License
217
+
218
+ MIT