Skip to content

Nexus v1.5.1

Choose a tag to compare

@github-actions github-actions released this 02 Dec 10:35
· 10 commits to main since this release

Nexus v1.5.1

Nexus is a local execution layer for AI. It lets web AI assistants, local LLMs and MCP agents run real work on your own machine (terminals, files, Git, browsers, ComfyUI, Blender, Unity) with an action ledger, checkpoint rollback and user-controlled security. See the README for what it does and how to get started.

This release follows v1.4.8 and includes the work prepared as 1.5.0, which was never tagged on its own. It closes the token gap described in the v1.4.8 correction note, hardens secret storage and Unity permission checks, and removes the deprecated Laya integration. Everyone on 1.4.8 or older should upgrade.

How to connect

  • ChatGPT: through the MCP tunnel built into Nexus, added in ChatGPT as a custom MCP server. Requests through the tunnel always carry your lb_ Local MCP Access Token.
  • Web AI sites (DeepSeek, Gemini, AI Studio, Kimi, Qwen, Z.ai, Duck.ai): through the WebAgent browser extension.
  • Local agents and models (Claude Code, Codex, opencode, pi, local open-source models): connect to Nexus on your machine as an MCP server.

Security fixes

  • Tunnel requests always need a token. Requests relayed through a tunnel arrive from 127.0.0.1, and some of them could be treated as local and skip the token check. Any request with an X-Forwarded-* header (including X-Forwarded-Client-Cert) now counts as forwarded and needs a valid lb_ token, on both the Core Server and the bridge. Without one it gets a 401 MISSING_TOKEN response with reason FORWARDED_REQUEST. Token scopes apply to these calls: for example, a token without the execute scope cannot run nexus_execute_action.
  • Master key sealed with Windows DPAPI. On Windows the secret-storage master key is now stored as master.key.dpapi, encrypted with DPAPI for your Windows user. An existing plaintext master.key is migrated on first start: the key is sealed, read back and checked, and only then is the plaintext file removed. If migration fails, the existing key is kept and nothing is lost. On macOS and Linux the key stays a 0600 file in your home directory, as before.
  • No fixed fallback key. If the secret directory cannot be written, Nexus used to fall back to a key derived from a constant. It now uses a random in-memory key and logs a warning; secrets saved in that session cannot be read after a restart.
  • Unity permission checks fail closed. Every Unity tool call now goes through one PermissionGateway. Before, some paths skipped it.
  • Internal errors are sanitized. JSON-RPC -32603 responses no longer include internal error text. The details are logged on your machine with an errorId you can match.
  • Circuit-breaker config is validated. POST /unity/circuit-breaker/config accepts only failureThreshold, requestTimeoutMs, cooldownMs and halfOpenMaxProbes, each a finite non-negative number. Anything else gets HTTP 400.

Behavior changes

  • Trusted external MCP servers no longer skip the L1 to L5 checks. Only Unrestricted Execution Mode does. If a trusted server's calls now ask for approval, that is this change.
  • Laya removed. The deprecated Laya integration is gone: localbridge_laya_status, localbridge_laya_assess, the layaRecommendation parameter of localbridge_skill_match, and its desktop UI. The canonical tool registry now has 330 tools (332 before).
  • Idempotent replay needs an explicit key. A call is returned from the ledger instead of being run again only when it carries an explicit idempotencyKey, or is a write in an explicit task. Plain reads always run again.
  • Optional fields in tool schemas. Fields with a default value are now optional in tool input schemas at every level, so clients no longer have to send them.

Other fixes

  • Worktree sessions: sessionId is kept through the action ledger, so session worktrees resolve and verify.
  • Unity: mode, circuit-breaker and endpoint routes are wired to the provider (the endpoint route is localhost only). Evidence and ledger lookups fall back to the Unity provider and forward evidenceId.
  • Local machine discovery waits up to 30 seconds instead of timing out on slower scans.
  • Agent plans: join has a bounded timeout.
  • The bundled server's version is set at build time instead of being read from package.json.
  • The desktop app detects Chinese and other browser locale variants correctly.
  • Built-in skill nexus.thesis-word-format: valid category, Purpose and Workflow sections, and it calls localbridge_command_run.
  • The build checks the bundled server's tool count against the registry instead of a fixed number.
  • Many tests updated for the current architecture; test scripts read tokens and the public MCP URL from environment variables instead of literals.
  • README: commercial licensing section (AGPL-3.0, with dual licensing available).

Known issues

These were seen in end-to-end scripts on Windows. The first three also fail on 1.5.0, so they are not new in this release.

  • run-phase2-public-mcp-gamedev-e2e.mjs: actionId is not returned at the top level of a Unity creation result.
  • run-phase3h-comprehensive-e2e.mjs H-05: the Unity circuit breaker does not move to OPEN in this test scenario.
  • run-phase3h-comprehensive-e2e.mjs H-08: an unknown Unity tool is rejected with an "unknown tool" error instead of PERMISSION_DENIED from the PermissionGateway. The call is still refused.
  • run-phase3h-comprehensive-e2e.mjs H-09: passes on a fresh server, and fails when run after other end-to-end scripts on the same server (depends on run order).
  • run-phase4-generic-mcp-e2e.mjs: P4-GMCP-12 (error code after a provider disconnects), P4-GMCP-14 (a newly added tool is not picked up by a catalog refresh) and P4-GMCP-31 (a test lookup by search_term returns empty).

How this release was verified

On Windows, on the release branch:

  • pnpm run typecheck: passes.
  • Targeted vitest for the changed areas, including Unity routes and permissions, ingress auth, tunnel proxy, the HTTP guard and version checks: pass.
  • cargo check, the desktop build and tauri build succeed; the local installer reports 1.5.1.
  • End-to-end scripts with a local server and the Unity editor running: run-phase3h-e2e.mjs 7/7, run-generic-mcp-client-e2e.mjs 7/7, run-nexus-gamedev-mcp-e2e.mjs 37/37, run-phase4-generic-mcp-e2e.mjs 37/40, run-phase2-public-mcp-gamedev-e2e.mjs 31 passed, 1 failed, 1 skipped (the public MCP URL was not set), run-phase3h-comprehensive-e2e.mjs 9/12. The failures are listed under Known issues.
  • A full vitest run on an earlier commit of this release: 1,749 tests, 1,748 passed, 1 timed out and passes when run alone. It was not repeated on the final commit.
  • On an earlier 1.5.0 build installed on Windows: ChatGPT through the tunnel discovered tools, listed projects and ran actions with the token attached; WebAgent with DeepSeek ran a tool that opened a Command Prompt; existing secrets were migrated to DPAPI.
  • Against a development build: a request with X-Forwarded-Client-Cert and no token got a 401 with reason FORWARDED_REQUEST.

The macOS and Linux packages are built by CI from the same tag. They were not tested end to end for this release.