node9

v2.26.2
io.github.node9-ai/node9 Checked 57 minutes ago Published 2 months ago

Access control for AI agents and MCP servers: allow, hold for approval, or block each tool call

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

node9_status

Show the current node9 protection status: mode, daemon state, pause state, active shields, and whether agent hooks are wired. Use this to understand what protection is active before doing risky work.

node9_config_get

Read the current node9 configuration: security mode, approver channels, timeouts, DLP settings, and the number of active smart rules. Returns the merged config (env > cloud > project > global > defaults).

node9_shield_list

List all available node9 shields and which ones are currently active. Shields are pre-packaged rule sets for specific services (postgres, aws, github, filesystem).

node9_shield_enable

Enable a node9 shield for a specific service. Shields only add protection — they cannot be used to weaken or bypass node9. Use node9_shield_list to see available shield names.

ParameterTypeDescription
service *stringShield name to enable (e.g. "postgres", "aws", "github", "filesystem").

node9_shield_disable

Disable a node9 shield. WEAKENING action — refused over MCP by default (a human must run "node9 shield disable <name>" from the CLI). Use node9_shield_list to see active shields.

ParameterTypeDescription
service *stringShield name to disable (e.g. "postgres", "aws", "github", "filesystem").

node9_approver_list

List all node9 approver channels and their current enabled/disabled state. Approvers are the channels through which node9 asks a human to approve risky tool calls. Channels: native (OS popup), browser (web UI), cloud (team policy server), terminal (stdin).

node9_approver_set

Enable or disable a specific node9 approver channel in the global config (~/.node9/config.json). Use this to turn individual channels on or off without touching other settings. Channels: native, browser, cloud, terminal. WEAKENING action — refused over MCP by default (a human must run it from the CLI). WARNING: disabling all approvers means node9 cannot prompt for human approval — use with care.

ParameterTypeDescription
channel *stringApprover channel to configure.
enabled *booleantrue to enable the channel, false to disable it.

node9_audit_get

Read recent entries from the node9 audit log (~/.node9/audit.log). Each entry shows timestamp, outcome, tool name, the command, and the rule that fired. Outcomes use the same words as the dashboard: Auto-allowed, Approved, Ran, Blocked, Denied (a human refused), Timed out (nobody answered), Would block (shadow mode let it through), Finding, Info. Use this to review what AI actions were taken, especially refused ones.

ParameterTypeDescription
filterstringFilter by outcome. "deny" covers every refusal (rule block, human denial, timeout); "observe" is shadow-mode would-blocks; "block" is an alias for "deny". Omit or use "all" for every entry.
limitnumberNumber of recent entries to return (default: 20, max: 100).

node9_policy_get

Show all active smart rules in detail — name, tool, verdict, conditions, and reason. Includes default rules, shield rules, and any custom project rules. Use this to understand exactly what is being blocked or reviewed.

node9_scan

Scan all AI agent history (Claude + Gemini) and report what node9 would have blocked or flagged. Shows blocked operations, reviewed commands, credential leaks, and agent spend. Use this to audit past activity and find security gaps before they become incidents.

ParameterTypeDescription
drill_downbooleanShow full commands and session IDs for every finding (default: false for a clean summary).

node9_report

Show an activity and security report: tool call counts, blocks, DLP findings, agent cost, and daily trends for a chosen period. Covers all AI agents (Claude, Gemini, etc.).

ParameterTypeDescription
no_testsbooleanExclude test runner calls (npm test, vitest, pytest…) from stats.
periodstringTime period for the report (default: 7d).

node9_session

List recent AI agent sessions with per-session summaries: tool calls, cost, modified files, and any blocked operations. Pass a session_id to see the full tool trace for that session.

ParameterTypeDescription
detailstringSession ID to show the full tool trace for. Omit to list all recent sessions.

node9_posture

Run the node9 security posture scorecard for the agent on this host — grades how exposed the machine is to a compromised agent across isolation, egress, secrets-on-disk, supply chain, and privilege, with the #1 risk and a concrete fix for each finding. Read-only.

ParameterTypeDescription
agentstringOptional label / policy scope for the agent being graded.

node9_explain

Preview exactly how node9 would evaluate a tool call BEFORE running it — the full allow / review / block waterfall and step-by-step policy trace. Use this to self-check a command (e.g. "git push --force") and see whether it would be allowed, sent for human review, or blocked, and why. Read-only — nothing executes.

ParameterTypeDescription
argsstringTool arguments as JSON, or a plain shell command string (e.g. "git push --force").
toolstringTool name to evaluate. Defaults to "bash" for plain shell commands.

node9_rule_add

Add a new protective smart rule to the global node9 config (~/.node9/config.json). Rules can block or send dangerous commands for human review based on regex conditions. IMPORTANT: only "block" and "review" verdicts are permitted — "allow" rules are never accepted because they would weaken node9 security. Rules can only be added, never removed.

ParameterTypeDescription
field *stringField to inspect — "command" for bash, "sql" for database tools.
name *stringUnique rule name (e.g. "block-drop-prod-db").
pattern *stringRegex pattern to match against the field.
reason *stringHuman-readable explanation shown when the rule triggers.
tool *stringTool to match — "bash", "*", or a specific tool name.
verdict *stringAction to take when the rule matches. Only "block" or "review" are allowed.

node9_egress_status

Show egress (outbound network) control: whether it is enabled, the mode (off / review / block), and your allow + deny host lists. Common dev/LLM hosts (github, npm, pypi, anthropic, …) are always allowed by a built-in list. Also reports the SSRF floor: the addresses blocked before any policy is consulted (cloud metadata, link-local, multicast), the carriers it covers, whether the strict tier (loopback, private ranges, CGNAT) is on, and the exemptions in force. Read-only.

node9_egress_protect

Turn on egress control (or strengthen it). mode="review" prompts on unknown hosts; mode="block" hard-blocks them. Monotonic — it only ever ADDS protection and never reduces it (a request for review will not downgrade an existing block). Only adds protection, so it is always allowed over MCP.

ParameterTypeDescription
modestringEnforcement to apply. "review" = prompt, "block" = deny. Defaults to review.

node9_egress_deny

Add a host to the egress deny list (deny always wins over allow). Only adds protection, so it is always allowed over MCP. Host is an FQDN or wildcard glob (e.g. evil.com or *.evil.com).

ParameterTypeDescription
host *stringHost to deny (FQDN or *.glob).