Skip to content

feat: node-hosted plugins — dynamic tools, MCP servers, and skills - #90431

Merged
steipete merged 3 commits into
mainfrom
feat/node-dynamic-plugin-tools
Jul 11, 2026
Merged

steipete merged 3 commits into
mainfrom
feat/node-dynamic-plugin-tools

Conversation

@steipete

@steipete steipete commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Nodes today are peripherals: they expose a fixed RPC command surface, and every node-side integration needs either a wrapper JS plugin on the gateway (#8287's Tesla case) or nothing at all. There is no way for a node to bring its own MCP servers or skills to the agent.

This PR makes nodes first-class plugin hosts, declaratively:

  • Dynamic node-hosted plugin tools (original scope): plugins on a node host register commands with agentTool metadata; the node publishes descriptors via the new node.pluginTools.update method and the gateway materializes them as agent tools executing over node.invoke.
  • Node-hosted MCP servers (no code required): configure nodeHost.mcp.servers (standard McpServerConfig shape) in the node machine's openclaw.json; the headless node host runs the MCP clients, publishes discovered tools (pluginId node-mcp), and calls round-trip via the built-in mcp.tools.call.v1 node command.
  • Node-hosted skills (no code required): skills in the node's ~/.openclaw/skills are published via the new node.skills.update method and merge natively into the gateway skills snapshot while the node is connected, with node-locator notes teaching agents to run them via exec host=node.

Why This Change Was Made

Maintainer product decisions baked in:

  • Trust the paired node. Node-published descriptors are accepted without gateway-side plugin registration. Off-switches exist but default on: gateway.nodes.pluginTools.enabled, gateway.nodes.skills.enabled (plus node-side nodeHost.skills.enabled).
  • No re-pairing for plugin changes. Pairing approves command families (mcp.tools.call.v1, skills publication ride the node role). Installing/removing MCP servers or skills republishes descriptors only; a node host restart applies config changes. Genuinely new command families still require pairing approval.
  • Collisions lock + prefix. Colliding tool names get deterministic node-prefixed names (all collision-group members); node skills colliding with local skills get node-prefixed names; local skills keep theirs.
  • Policy boundary kept. Node-supplied pluginIds cannot satisfy pluginId-scoped tool allowlist entries unless the descriptor is backed by a gateway plugin registration (reserved node-mcp excepted); denylists always win. Node skills are only eligible when the session can actually exec host=node (exec security, node binding, and system.run availability are honored), and command dispatch is disabled for node-owned skill content.

Scope/limits (v1): headless node host + request/response tools only (no MCP streaming/notifications/sampling/OAuth), 128 descriptors + 1024-char descriptions per node, 64 skills / 64KB each / 512KB total per node, enforced on both sides.

User Impact

  • A node operator can attach any stdio or remote MCP server and any skill folder to a node with config/files only — no JS plugin, no gateway install, no re-pairing.
  • Agent tool and skill inventories update live as nodes connect/disconnect (tools.effective cache invalidation + skills snapshot version bumps).
  • Supersedes the design directions of Feature Request: Node-Registered Agent Tools #8287 (node-registered agent tools) and draft PR Add node-hosted skill context tools #103827 (node skills as list/read context tools) with native inventory integration.

Evidence

  • Live E2E (scripts/e2e/node-plugin-tools-pond.mjs): real gateway + two node hosts + real stdio MCP server + node skill fixture. Proves publication, MCP proof-token round-trip through the agent tool path, skills.status locator with node:// paths, and disappearance/return of all three surfaces across node disconnect/reconnect. Green locally and on Blacksmith Testbox (run IDs in comments).
  • pnpm check:changed green on Blacksmith Testbox through Crabbox (lease + Actions run IDs in comments).
  • Full pnpm build green including check-plugin-sdk-exports (protocol registry kept out of public plugin-sdk dts) and pnpm protocol:check (regenerated schema + Swift models).
  • Focused vitest suites across gateway protocol, node registry/catalog/policy, node-host MCP manager + invoke, skills runtime merge, config schema, and collision/allowlist policy (security fix has dedicated coverage).
  • Fresh autoreview (Codex gpt-5.5, branch vs origin/main): the one accepted finding (pluginId allowlist bypass) is fixed in-branch; final run clean.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling plugin: file-transfer size: XL maintainer Maintainer-authored PR labels Jun 4, 2026
@clawsweeper

clawsweeper Bot commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head a6aa007d37c084797fd4a48880cd651223a1175c, but the PR head is now cb9f109a0d397d05456598132300c130f4bcebd8. Its old verdict and PR readiness labels are no longer current.

Next step
Run or wait for a fresh ClawSweeper review on the current PR head.

Review history (2 earlier review cycles)
  • reviewed 2026-06-21T14:40:27.504Z sha bfd9fca :: found issues before merge. :: [P1] Preserve Swift ConnectParams source compatibility | [P2] Remove or wire the unused node plugin tools option
  • reviewed 2026-06-30T16:09:59.570Z sha bfd9fca :: found issues before merge. :: [P1] Preserve Swift ConnectParams source compatibility | [P2] Remove or wire the unused node plugin tools option

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f59bcb83ca

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/gateway-client/src/client.ts Outdated
scopes?: string[];
caps?: string[];
commands?: string[];
nodePluginTools?: NodePluginToolDescriptor[];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Serialize advertised node plugin tools on connect

When a node client passes the new nodePluginTools option to GatewayClient, the option is never copied in assembleConnectParams (the connect payload only includes caps, commands, permissions, and pathEnv), so the gateway registers the node with an empty tool catalog until some separate node.pluginTools.update call happens. This breaks the newly exposed package-level connect option for any node client that relies on advertising tools during hello/reconnect rather than the OpenClaw node-host's post-hello update path; wire opts.nodePluginTools into the ConnectParams payload or remove the option from the public client surface.

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 4, 2026
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Jun 4, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jun 4, 2026
@steipete

steipete commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

Follow-up pushed in fa86de16c2452e982419a5e548a76b7d52ad9b06.

What changed after review:

  • tools.effective cache key now includes the connected node plugin tool snapshot version, so node tool online/offline/reconnect changes invalidate cached effective tools.
  • Node plugin tool descriptors stay registry-backed and command-surface gated; dangerous descriptors are preserved only once explicitly approved/allowlisted rather than being exposed by default.
  • Node hosts do not send nodePluginTools in the initial connect frame, preserving mixed-version gateway compatibility; tools still publish via node.pluginTools.update after hello-ok.
  • Added scripts/e2e/node-plugin-tools-pond.mjs for gateway/node/verify/local proof roles. It writes token configs as private files, avoids token argv exposure, and only auto-approves pond-shaped pending node requests.

Verification:

  • pnpm test src/gateway/client.test.ts src/node-host/runner.test.ts src/gateway/node-connect-reconcile.test.ts src/gateway/node-command-policy.test.ts src/gateway/node-registry.test.ts src/gateway/server-methods/tools-effective.test.ts passed locally: 2 Vitest shards, 17 gateway files / 411 gateway tests plus runner unit shard.
  • node scripts/e2e/node-plugin-tools-pond.mjs local --skipBuild --port 19902 passed: two node-hosted MCP tools appeared, both invoked, one disappeared while a node was offline, both reappeared and invoked after reconnect.
  • Testbox pnpm check:changed passed on tbx_01kta6f3f6sqcqgwxrjwt8gz1p, Actions run 26978812928.
  • Fresh autoreview passed clean: no accepted/actionable findings; verdict patch is correct.

Crabbox pond status:

  • AWS pond peer discovery worked for pond node-tools-aws-1780607218; gateway lease cbx_95094f9fa891 exposed 18789, and crabbox pond connect node-tools-aws-1780607218 --provider aws created local forward 127.0.0.1:51820 -> oc-node-tools-aws-1780607218:18789.
  • The AWS gateway over that pond accepted and auto-approved a split-host node connection for pond.echo (gateway log showed node pairing auto-approved and node.list showed approved pond.echo).
  • Full remote pond invoke proof did not complete before the gateway lease expired / tunnel dropped. Direct remote-node-to-public-gateway was correctly blocked by OpenClaw plaintext-remote-WS policy, so the remaining proof gap is a durable SSH/wss/Tailscale route for the remote node side, not the node plugin tool implementation itself.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 4, 2026
@steipete

steipete commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

Additional CI fix pushed in ba07dd152f4: refreshed generated Swift gateway protocol models for the new nodePluginTools protocol types.

Additional verification after that commit:

  • pnpm test:bundled && pnpm protocol:check passed locally.
  • Final Testbox pnpm check:changed passed on tbx_01kta8t41jzb8brdxxs9tc5njh, Actions run 26980872294.
  • Autoreview clean after final push.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e5c70a96b0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/gateway/client.ts Outdated
@@ -133,6 +137,7 @@ export type GatewayClientOptions = {
scopes?: string[];
caps?: string[];
commands?: string[];
nodePluginTools?: NodePluginToolDescriptor[];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove the unused node plugin tools option

When a node client sets this newly exposed GatewayClient option, the wrapper only forwards it through the constructor spread, but the underlying package client never reads it while assembling the connect payload, and the new connect test asserts nodePluginTools is omitted from initial frames. That makes this public option a no-op for callers expecting connect-time advertisement; either remove it from this type or wire option users into the post-hello node.pluginTools.update path. Fresh evidence: the current diff still adds the option here while the base package client has no matching serialized field.

Useful? React with 👍 / 👎.

@steipete
steipete force-pushed the feat/node-dynamic-plugin-tools branch from e5c70a9 to be6e4bb Compare June 4, 2026 22:08
@openclaw-barnacle openclaw-barnacle Bot added the commands Command implementations label Jun 4, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b8197c3408

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -67,6 +68,7 @@ public struct ConnectParams: Codable, Sendable {
client: [String: AnyCodable],
caps: [String]?,
commands: [String]?,
nodeplugintools: [NodePluginToolDescriptor]?,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve Swift ConnectParams source compatibility

When existing Swift clients construct ConnectParams through this public initializer, the new optional nodePluginTools field is still introduced as a non-defaulted initializer argument, so every existing call site outside this repo now has to add nodeplugintools: nil just to compile. Keep the wire field optional but give this new initializer parameter a default of nil or add a compatibility overload so older OpenClawKit consumers are not source-broken by an additive protocol field.

Useful? React with 👍 / 👎.

@steipete
steipete force-pushed the feat/node-dynamic-plugin-tools branch from b8197c3 to bfd9fca Compare June 4, 2026 22:46
@steipete

steipete commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

Verification for the rebased head bfd9fcac18453ca015a19f9797f4e66a7b72ca69:

  • GitHub PR rollup: 135 passing checks, no pending checks, no failing checks; PR is mergeable/clean.
  • Testbox through Crabbox changed gate: tbx_01ktacn5dpp4qbqp4mh4x9jwvj, Actions run 26983844938, OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 corepack pnpm check:changed, exit 0.
  • Focused final Vitest on the pushed head: node scripts/run-vitest.mjs src/gateway/node-registry.test.ts src/gateway/node-connect-reconcile.test.ts src/gateway/node-command-policy.test.ts src/gateway/server-methods/tools-effective.test.ts src/node-host/runner.test.ts src/tasks/task-flow-registry.store.test.ts; 3 shards passed, including 14 gateway files / 250 gateway tests, node-host runner tests, and task-flow store tests.
  • Focused lint for the CI lint blocker: node scripts/run-oxlint.mjs src/tasks/task-flow-registry.store.test.ts, exit 0.
  • Autoreview: clean for the final rebased task-flow lint cleanup commit, no accepted/actionable findings.
  • Real multi-computer pond proof: AWS Crabbox gateway lease cbx_83967533d714 in pond oc-node-tools-1780612217-31184, local Mac node-hosts connected through the Crabbox pond SSH mesh (127.0.0.1:51820 -> AWS gateway :18789). Verifier saw two connected node-hosted pond_echo MCP tools and invoked both through gateway tools.invoke; outputs came back from local nodes pond-a and pond-b. Remote gateway logs showed two node pair approvals, tools.effective, two node.invoke, and two tools.invoke successes. Pond lease released after proof.

Known proof note: the AWS gateway run exits 255 because I released the lease after the successful verifier run; the proof completed before cleanup and the lease was released.

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. label Jun 20, 2026
@steipete
steipete force-pushed the feat/node-dynamic-plugin-tools branch from 4fc74d2 to 23cb1c4 Compare July 11, 2026 16:43
@steipete

Copy link
Copy Markdown
Contributor Author

Verification for head 23cb1c498d0 (branch rebuilt on origin/main @ 57af2bbff09):

Scope on this head (supersedes the original PR scope; title/body updated): dynamic node-hosted plugin tools (original #90431 substrate) + declarative node-hosted MCP servers (nodeHost.mcp.servers → mcp.tools.call.v1) + node-hosted skills (node.skills.update → native skills-snapshot merge), with trusted paired-node descriptors, family-level pairing (no re-pairing on server/skill changes), node-prefixed collision names, and gateway/node off-switches.

Local proof (this head):

  • pnpm build green including check-plugin-sdk-exports (public plugin-sdk dts 4,529,409/5,050,000 bytes; ProtocolSchemas registry no longer retained) and pnpm protocol:check.
  • Focused Vitest: gateway protocol, node registry/catalog/policy/snapshot, node-host MCP manager + mcp.tools.call.v1 invoke, runner lifecycle, skills runtime merge, method scopes — 5 shards green.
  • Live E2E node scripts/e2e/node-plugin-tools-pond.mjs: real gateway + two node hosts + real stdio MCP server + node skill; proves publication, MCP proof-token round-trip, skills.status locator, and disappearance/return of all three surfaces across node disconnect/reconnect.

Remote proof (Blacksmith Testbox through Crabbox):

  • tbx_01kx8zran9t1yd8qnt2749h1j9 (violet-prawn): full pnpm build + pond E2E ("all node-hosted surface checks passed") + pnpm check:changed, exit 0 (phases: build 95s, pond 25.6s, changed 582.8s).
  • Earlier changed-gate run on tbx_01kx8vkmvmdeq7zrk9659n66y1 (harbor-prawn), exit 0.

Review: fresh autoreview (Codex gpt-5.5, branch vs origin/main) ran three rounds; two accepted security findings were fixed in-branch (node-supplied pluginId no longer satisfies pluginId-scoped tool allowlists unless gateway-registered; reserved node-mcp id requires the core MCP descriptor shape, both with regression tests); final run clean: "no accepted/actionable findings".

Known proof gaps: the remote Testbox runs validated the pre-squash commit stack; this squashed head is content-identical (same tree diff vs main modulo the two-file merge resolution in packages/gateway-protocol/src/index.ts export ordering and the regenerated config baseline) and hosted CI on this head provides the final gate. OAuth MCP servers, MCP streaming/notifications, and mobile-node publication are documented v1 non-goals.

@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jul 11, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a6aa007d37

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/node-host/runner.ts

async function publishNodeSkills(client: GatewayClient, skills: unknown[]): Promise<void> {
try {
await client.request("node.skills.update", { skills });

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep node catalog publishes under the WS frame cap

When a node has valid hosted skills near the new 512 KiB total limit, this sends the entire catalog in one node.skills.update frame; the sibling node.pluginTools.update path does the same for MCP descriptor catalogs that src/node-host/mcp.ts:28-29 allows up to 10 MiB. The gateway WebSocket is still created with maxPayload: MAX_PREAUTH_PAYLOAD_BYTES (64 KiB) in src/gateway/server-runtime-state.ts:249-252 (and ws enforces that per message), so these valid catalogs close the node connection before the update handler runs and the agent never sees the tools/skills. Chunk or lower the published catalogs, or raise the authenticated frame limit before publishing them.

Useful? React with 👍 / 👎.

Comment thread src/node-host/invoke.ts
const OUTPUT_CAP = 200_000;
const MCP_TEXT_CONTENT_MAX_BYTES = 1024 * 1024;
const MCP_TEXT_TRUNCATION_MARKER = "\n[truncated: MCP text content exceeded 1 MB]";
const MCP_INVOKE_PAYLOAD_MAX_BYTES = 20 * 1024 * 1024;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Cap MCP invoke results to the gateway frame limit

When an MCP tool returns more than 64 KiB but less than this new 20 MiB cap, boundMcpToolResultPayload preserves it and sendMcpPayloadResult sends it through node.invoke.result on the same gateway WebSocket. Because the current gateway server max payload is 64 KiB (src/gateway/server-runtime-state.ts:249-252), the oversized result frame is rejected before the invoke-result handler runs, so the agent sees a timeout/disconnect instead of a truncated result. Bound this to the actual server frame budget or raise the authenticated frame limit.

Useful? React with 👍 / 👎.

skills.status started passing eligibility for the node-skill merge, which
flipped loadWorkspaceSkillEntries into filtered mode and dropped disabled
skills from status reports (QA plugin-lifecycle-hot-reload timeout). Status
now merges node skills explicitly around an unfiltered load. Also: regen
docs_map for new node docs sections; add the intentional node-host MCP
onclose suppression to the lint-suppression allowlist.
@steipete
steipete merged commit 49b5b86 into main Jul 11, 2026
100 checks passed
@steipete
steipete deleted the feat/node-dynamic-plugin-tools branch July 11, 2026 17:16
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cb9f109a0d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

!isProviderSafeToolName(name) ||
!description ||
!command ||
!allowedCommands.has(command)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Block reserved shell commands in node tool descriptors

When a paired node publishes a descriptor whose command is system.run or system.run.prepare, this check accepts it because those commands are in the node's allowed command set. createNodePluginTools then exposes that descriptor as a model tool that forwards arbitrary model params via node.invoke (src/agents/node-plugin-tools.ts:233-247), bypassing the existing generic nodes-tool guard that reserves those commands for the exec path (src/agents/tools/nodes-tool-commands.ts:20,124-127) and its per-run command shaping. Reject these reserved commands for node-published plugin tools unless they go through the exec-specific flow.

Useful? React with 👍 / 👎.

resolvedVerboseLevel: VerboseLevel | undefined;
resolvedReasoningLevel: ReasoningLevel;
resolvedElevatedLevel: ElevatedLevel;
execOverrides?: ExecPolicyOverrides;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Pass exec overrides to normal inline action handling

When a regular message combines an inline /exec host=node ... directive with a node-hosted skill slash command, resolveReplyDirectives computes execOverrides, but the ordinary get-reply.ts caller of handleInlineActions never passes this new option (the native fast path does at src/auto-reply/reply/get-reply-native-slash-fast-path.ts:348). That leaves execOverrides undefined here, so skill commands are reused or reloaded under the previous session policy and node-hosted skills made eligible by the same /exec directive are treated as missing; wire directiveResult.result.execOverrides through the normal caller too.

Useful? React with 👍 / 👎.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 12, 2026
…penclaw#90431)

* feat: node-hosted plugins — dynamic tools, MCP servers, and skills

Nodes become declarative plugin hosts:
- node.pluginTools.update: node hosts publish plugin-registered agent tool
  descriptors; gateway materializes them as agent tools executing via
  node.invoke under the node command allowlist, with tools.effective
  invalidation and node online/offline removal.
- Trusted paired-node descriptors: no gateway-side plugin registration
  required; gateway.nodes.pluginTools.enabled off-switch (default on);
  description/count caps; deterministic node-prefixed collision names.
- Declarative node-hosted MCP: nodeHost.mcp.servers (McpServerConfig shape)
  starts MCP clients on the node host, publishes tools as pluginId node-mcp,
  executes via built-in mcp.tools.call.v1 with per-layer timeouts, failure
  isolation, and orphan-safe shutdown. No re-pairing when servers change.
- Node-hosted skills: node.skills.update publishes ~/.openclaw/skills
  content (64 skills/64KB/512KB caps both sides); gateway merges them into
  the skills snapshot while connected and exec host=node is available, with
  node:// locators, node-prefixed collisions, disabled command dispatch,
  and gateway.nodes.skills.enabled + nodeHost.skills.enabled switches.
- Security: node-supplied pluginIds cannot satisfy pluginId-scoped tool
  allowlists unless gateway-registered; reserved node-mcp id requires the
  core MCP descriptor shape; protocol registry kept out of public
  plugin-sdk dts.
- E2E: pond harness proves publication, MCP round-trip, skills locator, and
  disconnect/reconnect for all three surfaces.

* style: format node-plugin-tools test

* fix(skills): keep status loader unfiltered when eligibility is passed

skills.status started passing eligibility for the node-skill merge, which
flipped loadWorkspaceSkillEntries into filtered mode and dropped disabled
skills from status reports (QA plugin-lifecycle-hot-reload timeout). Status
now merges node skills explicitly around an unfiltered load. Also: regen
docs_map for new node docs sections; add the intentional node-host MCP
onclose suppression to the lint-suppression allowlist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui commands Command implementations docker Docker and sandbox tooling docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. plugin: file-transfer scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant