Skip to main content
Glama

One MCP server. Two tools (~650 tokens). Unlimited capabilities.
Orchestrate your workspace, all 7 local flagship engines, and any external MCP server in a single sandboxed turn — with zero dependencies and $0 LLM overhead.


🔥 Why NexusMCP Changes MCP

Pillar

Engine Module

Problem Solved

Deterministic Guarantee

P1 — Code Mode (search + execute)

engine/sandbox.cjs + engine/discovery.cjs

60k–250k token schema bloat & 10-turn ping-pong loops

Fixed 2 tools (~650 tokens) forever; fuzzy Levenshtein discovery; node:vm null-prototype sandbox with codeGeneration: { strings: false, wasm: false } blocking Function/eval escapes.

P2 — Native 7-Suite Orchestrator

engine/capabilities.cjs

Switching across 7 separate CLIs manually

Chains IronWall, SynapseGraph, ZeroBurn, OptixZero, ForgeCore, TrueVoice, and RankPulse inside nx.suite.* with Promise.all() in 1 turn.

P3 — Upstream MCP Multiplexer

engine/upstream-bridge.cjs

Connecting 10 MCP servers explodes context & auth surfaces

Lazily proxies any external stdio or Streamable HTTP MCP server, indexes all their tools into nexus_search, and calls them via nx.mcp.call() with UUID wrapping & read-only enforcement.

P4 — Dual-Era Hardened Transports

engine/mcp-server.cjs

Stray console.log() crashes stdio; stateful HTTP leaks sessions

FilteredStdio protects stdout framing + buffers pre-handshake logs + suppresses Cline noise; Stateless HTTP /mcp speaks 2025 initialize & 2026-07-28 server/discover, enforces Origin 403 & 4 MiB cap.

P5 — 4-Layer MCP Security

engine/security.cjs

Prompt injection, path traversal, SSRF & leaky hidden:true

Per-call randomUUID() untrusted-data sandwich, 3-layer --read-only, monotonic --lockdown, Windows+POSIX path guard (no ADS :, no CON/NUL, realpath), SSRF & blocked-command guards.

P6 — MCP DevTools & CI Gates

engine/devtools.cjs

Shipping broken MCP servers without schema/annotation checks

audit-server (catches console.log, missing readOnlyHint, schema bloat %), diff-interface CI regression gate, 1-second scaffold & universal client-config.


Related MCP server: Coding Tools MCP

🏗️ Architecture & Live Preview


⚡ Quick Start & Super-Gateway

IMPORTANT

Zero npm install. Zero SDK bloat. Pure Node.js 18+ stdlib.
Works simultaneously as a Live MCP Server, a Global CLI (nexus-mcp / nxm), and an AI Agent Skill across 16 platforms.

# 1. Install skill across ALL 16 AI coding agent platforms:
node scripts/nexus-install.cjs --all

# 2. Verify runtime + auto-detected 7-Suite local engines:
node scripts/cli.cjs doctor

# 3. Run the live Code-Mode MCP Server (stdio or Stateless Streamable HTTP /mcp):
node scripts/cli.cjs serve --transport stdio --mode codemode --root .
node scripts/cli.cjs serve --transport http --port 3840 --read-only --root .

# 4. Run as a Universal Upstream MCP Multiplexer (collapses N external MCP servers into 2 tools!):
node scripts/cli.cjs serve --transport stdio --upstream ./upstreams.json --root .

# 5. Print drop-in MCP config for Antigravity, Claude Code, Cursor, Windsurf, Codex, Cline & VS Code:
node scripts/cli.cjs client-config --root .

🔗 7-Suite & Upstream Multiplexer

Inside a single nexus_execute call, agents can combine workspace files, git state, all 7 local flagship engines, and external upstream MCP servers in parallel:

// One single round-trip (~650 tokens schema overhead total!):
const [triage, guard, seo, prose] = await Promise.all([
  nx.suite.forgecore('triage', ['--json']),
  nx.suite.forgecore('guard', ['--json']),
  nx.suite.rankpulse('audit', ['./dist', '--json']),
  nx.suite.truevoice('score', ['./README.md', '--json']),
]);
const upstreamServers = nx.mcp.servers();
return {
  tier: triage.json?.tierLabel,
  guardOk: guard.ok,
  seoScore: seo.json?.combinedScore,
  humanityScore: prose.json?.humanityScore,
  upstreamServers,
};
{
  "upstreams": {
    "github": {
      "transport": "stdio",
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "readOnly": true
    },
    "context7": {
      "transport": "http",
      "url": "https://mcp.context7.com/mcp",
      "headers": { "Authorization": "Bearer ${CONTEXT7_API_KEY}" }
    }
  }
}

🛡️ 4-Layer Production Security

Layer

Enforcement Mechanism

What It Blocks

1. Sandbox Isolate

vm.createContext(Object.create(null), { codeGeneration: { strings: false, wasm: false } })

Blocks process, require, env, eval(), and this.constructor.constructor('return process')() escapes.

2. UUID Data Boundary

<untrusted-data-${crypto.randomUUID()}> + Instruction Sandwich

Prevents prompt injection inside fetched web pages, files, logs, and upstream MCP responses from breaking out of static tags.

3. 3-Layer Read-Only & Monotonic Lockdown

Hidden in tools/list + blocked in tools/call + disabled in nx.* + X-MCP-Lockdown can only turn ON

Prevents hidden write tools from being invoked directly or weakened via request headers.

4. Path, SSRF & HTTP Guards

realpathSync parent walk + Windows ADS/device check + IP blocklist + Origin 403 + 4 MiB cap

Blocks ../, dangling symlinks, file:ads, CON/NUL, 169.254.169.254, 127.0.0.1, DNS rebinding & rm -rf /.


🛠️ MCP DevTools & CI Gates

# Audit any MCP server source or tools.json for stdout corruption, missing readOnlyHint & schema bloat:
node scripts/cli.cjs audit-server ./my-mcp-server/

# CI interface regression gate (exits 1 on removed tools, new required params, or removed params):
node scripts/cli.cjs diff-interface ./v1-tools.json ./v2-tools.json

# Scaffold a brand-new 0-dependency, hardened MCP server (with runnable test.cjs) in 1 second:
node scripts/cli.cjs scaffold my-gateway --mode codemode --out ./my-gateway

📊 Verified 18/18 E2E Scorecard

All 18 E2E suites run real stdio child processes, a real live Streamable HTTP /mcp server, a real live upstream stdio MCP server multiplexed through UpstreamBridge, real node:vm escape attacks, and real installed nx.suite.* engines via node tests/e2e-test.cjs:

#

Verified E2E Suite

Proven Invariant

Status

1

SKILL.md Budget & Playbooks

<5,500 chars (<650 tokens), trigger-only frontmatter, all 4 playbooks present

PASS

2

Code Mode Schema Budget

tools/list exposes ONLY 2 tools (nexus_search, nexus_execute) under <700 tokens

PASS

3

Dual-Era MCP Handshake

Both 2025 initialize + notifications/initialized AND 2026-07-28 server/discover pass

PASS

4

Fuzzy Discovery + aliasArgs

Typo "forgcor" resolves suite_forgecore; aliases q/userQuery/file_path normalize silently

PASS

5

Multi-Step nexus_execute

Chains nx.fs.list + nx.fs.read + nx.fs.grep in 1 round-trip cleanly

PASS

6

Sandbox Escape Hardening

process, require, eval(), and constructor.constructor('return process')() ALL blocked

PASS

7

3-Layer Read-Only & Lockdown

--read-only hides + blocks direct fs_write + blocks Code Mode nx.fs.write; --lockdown monotonic

PASS

8

Windows + POSIX Path Guard

Blocks ../, \0, NTFS ADS :, CON/NUL/COM1, trailing dot & /root-evil prefix collision

PASS

9

Random UUID Untrusted Boundary

Two consecutive calls emit two distinct UUIDs inside <untrusted-data-${uuid}>

PASS

10

SSRF & Shell Command Guard

Blocks 127.0.0.1, 169.254.169.254, 192.168.1.1, rm -rf /, --no-verify, nested sh -c

PASS

11

Surgical Edit & Output Compressor

Refuses ambiguous multi-match; compresses >12 KB payloads while preserving ERROR: lines

PASS

12

Live stdio + FilteredStdio

Spawns real serve --transport stdio, validates pure JSON-RPC framing & -32700 parse recovery

PASS

13

Live Streamable HTTP /mcp

Proves /health 200, /sse 410, evil Origin 403, server/discover 200 & X-MCP-Readonly block

PASS

14

Live Upstream MCP Multiplexer

Spawns real mock upstream MCP over stdio, indexes into nexus_search, proxies nx.mcp.call() with UUID wrap & read-only block

PASS

15

Live 7-Suite Integration

Invokes real nx.suite.truevoice & nx.suite.rankpulse inside Code Mode in 1 turn

PASS

16

DevTools audit-server

Catches stray console.log, eval, static <data>, 0.0.0.0, missing readOnlyHint & schema bloat %

PASS

17

DevTools diff-interface

Catches TOOL_REMOVED, REQUIRED_PARAM_ADDED, PARAM_REMOVED & READONLY_WEAKENED

PASS

18

DevTools scaffold + Smoke

Generates new 0-dep MCP server and passes its own generated node test.cjs + client-config + doctor

PASS


🌐 Supported Platforms (16)

node scripts/nexus-install.cjs --all installs natively across 16 AI platforms:

Google Antigravity · Gemini CLI · Claude Code · OpenAI Codex · Cursor · Windsurf · Cline · Roo Code · GitHub Copilot · OpenCode · Kiro · Continue · Trae · Goose · Augment · Amp


📜 License

Released under the MIT License.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Remote execution layer for agentic systems exposing 64 production tools via MCP for file, network, system, text, git, crypto, and monitoring operations.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Gives any MCP-compatible AI chat or agent a safe, model-neutral coding runtime with file read/search, structured multi-file patches, command execution, interactive sessions, and git operations, all confined to a single workspace and gated by permission modes.
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to create isolated Docker runtimes, execute commands, manage workspace files, drive a headed browser, and retrieve artifacts through eight semantic MCP tools, with progressive capability discovery and explicit sandbox lifecycle.
      Apache 2.0
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables web AI clients and local IDEs to securely operate a local machine through an OAuth-gated MCP endpoint, with governed tools for files, shell, search, Git, SQLite, browser automation, DevTools, background tasks, localhost services, clipboard, notifications, ports, Postman, and AIObox windows.
      MIT