# Sunaiva Gate — Agent Rule Enforcement (npm · @sunaiva/gate)

MCP enforcement layer that intercepts AI agent actions and blocks rule violations before execution.

- Trust score: 58/100 (low)
- Change this week: +40
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-03

## Components

- remote · `mcp.sunaivacore.io`: 69/100, [markdown](https://verifymcp.io/servers/io-sunaivacore-gate/mcp.md), [page](https://verifymcp.io/servers/io-sunaivacore-gate/mcp)
- npm · `@sunaiva/gate`: 58/100 (this document), [markdown](https://verifymcp.io/servers/io-sunaivacore-gate/sunaiva-gate.md), [page](https://verifymcp.io/servers/io-sunaivacore-gate/sunaiva-gate)

## Channel facts

- Registry: `npm`
- Package: `@sunaiva/gate`
- Version: `2.0.4`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-03.

- **Supply Chain Security**: 87/100
  - No malware found by supply-chain analysis.
  - Only part of the dependency tree could be resolved (95 of 99), so this covers what we could see, not the whole tree.
  - No install/post-install scripts declared.
  - Only part of the dependency tree could be resolved (95 of 99), so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 6/100
  - Repository check failed: no source repository is declared.
  - Provenance check failed: no build-provenance attestation is published.
  - License check failed: the license (BUSL-1.1) isn't a recognized OSI-approved license.
  - Actively maintained (last published 8 days ago).
  - Security-disclosure policy not yet verified: we couldn't inspect the source repository.
- **Schema Quality & AI Usability**: 66/100
  - AI-judged instruction clarity (good).
  - Tool/resource definitions use about 819 tokens (~51/item across 16 items; 16 tools + 0 resources), lean.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 23/100
  - Stability observed for 7 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 94/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 81% of tool parameters carry a description.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### Claude

```bash
claude mcp add io-sunaivacore-gate -- npx -y @sunaiva/gate
```

### Codex

```bash
codex mcp add io-sunaivacore-gate -- npx -y @sunaiva/gate
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "io-sunaivacore-gate": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@sunaiva/gate"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add io-sunaivacore-gate --command npx --arg -y --arg @sunaiva/gate
```

### Hermes

```yaml
mcp_servers:
  io-sunaivacore-gate:
    command: "npx"
    args: ["-y", "@sunaiva/gate"]
```

### Other

```json
{
  "mcpServers": {
    "io-sunaivacore-gate": {
      "command": "npx",
      "args": [
        "-y",
        "@sunaiva/gate"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-02 (score 58, +38)

- [security regression] Provenance: unverified → fail
- [security improvement] Install scripts: unverified → pass
- [security improvement] Known CVEs: unverified → partial
- [security improvement] Malware scan: unverified → pass
- [security] Stability: Stability not yet verified: we do not have a sandbox capture of the MCP schema this version of the package serves yet.
- [functional regression] License: unverified → fail
- [functional regression] Capabilities: pass → unverified
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] Stability: unverified → 0.20
- [functional improvement] Dependency health: unverified → partial
- [functional improvement] Schema quality: unverified → good
- [functional] Licence: BUSL-1.1

### 2026-08-01 (score 20, +5)

- [security] Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window).
- [functional improvement] MCP protocol: unverified → pass

### 2026-07-31 (score 15, −24)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-28 (score 39, +21)

- [functional improvement] Tool coverage: unverified → 100
- [functional] First check of Schema quality: pass
- [functional] First check of Schema quality: fail
- [functional] First check of Tool coverage: 81
- [functional] First check of Schema quality: unverified

### 2026-07-27 (score 18)

First indexed and scored.

## MCP tools (16)

### `validate_action` (~48 tokens)

Check if a proposed action passes all active validation rules. Returns allowed/blocked with rule violations.

Input parameters:

- `action` (string, required): The action to validate
- `context` (string): Optional additional context

### `log_bypass` (~48 tokens)

Record an intentional rule bypass with justification. Cannot bypass constitutional rules.

Input parameters:

- `reason` (string, required): Justification for the bypass
- `rule_id` (string, required): ID of the rule to bypass

### `get_rules` (~41 tokens)

List active validation rules, optionally filtered by category or preset.

Input parameters:

- `category` (string): Filter by category
- `preset` (string): Filter by preset name

### `update_rules` (~42 tokens)

Enable or disable validation rules. Constitutional rules cannot be disabled.

Input parameters:

- `disable` (array): Rule IDs to disable
- `enable` (array): Rule IDs to enable

### `get_audit_log` (~52 tokens)

View recent gate decisions — blocks, warnings, passes, and bypasses.

Input parameters:

- `limit` (number): Max entries to return (default 50)
- `rule_id` (string): Filter by rule ID

### `ship_confidence_check` (~116 tokens)

Ship Confidence Gate (Rule 42). Verifies dual-tier authorization for publish-class actions: HMAC-signed Verdict (paid) OR approval token (free). Returns allow/block with self-stamped evidence.

Input parameters:

- `artifact_id` (string, required): The artifact being shipped (e.g. '@sunaiva/gate@1.1.0')
- `command_preview` (string): First 300 chars of the command that triggered the check (optional)
- `label` (string): Human-readable label of the publish action (optional)

### `audit_verify` (~44 tokens)

Verify the forward-linked cryptographic hash chain of the Gate audit log (Patent Claim 19). Reports chain integrity, tamper evidence, and ed25519 signature validity per entry.

### `set_rule_mode` (~70 tokens)

Set enforcement mode (shadow/advisory/enforce) for a specific rule. Requires API key (Pro+).

Input parameters:

- `agent_id` (string): Optional: scope override to a specific agent ID
- `mode` (string, required): Enforcement mode
- `rule_id` (string, required): Rule ID to configure

### `get_rule_modes` (~27 tokens)

List all enforcement-mode overrides configured for the authenticated customer. Requires API key (Pro+).

### `reset_rule_mode` (~46 tokens)

Remove a mode override for a rule, reverting it to its default enforcement mode. Requires API key (Pro+).

Input parameters:

- `rule_id` (string, required): Rule ID whose override to remove

### `add_custom_rule` (~89 tokens)

Create a custom detection rule in the backend. Requires API key (Pro+).

Input parameters:

- `description` (string): Optional description
- `detection_pattern` (string): Compiled regex detection pattern
- `name` (string, required): Rule name
- `pattern` (string): Detection pattern (regex or keyword)
- `severity` (string, required): Severity on match
- `tier` (string): Optional tier restriction

### `update_custom_rule` (~76 tokens)

Update an existing custom rule. Requires API key (Pro+).

Input parameters:

- `description` (string)
- `detection_pattern` (string)
- `id` (string, required): Rule ID to update
- `name` (string)
- `pattern` (string)
- `severity` (string)
- `tier` (string)

### `delete_custom_rule` (~32 tokens)

Delete a custom rule. Requires API key (Pro+).

Input parameters:

- `id` (string, required): Rule ID to delete

### `list_custom_rules` (~25 tokens)

List all custom rules for the authenticated customer. Requires API key (Pro+).

### `list_presets` (~22 tokens)

List available rule preset bundles. Requires API key (Dev+).

### `apply_preset` (~41 tokens)

Apply a preset bundle, activating all its included rules. Requires API key (Pro+).

Input parameters:

- `preset_id` (string, required): ID of the preset to apply

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/io-sunaivacore-gate/sunaiva-gate#diagnostics

## Score history

- 2026-08-03: 58
- 2026-08-02: 58
- 2026-08-01: 20
- 2026-07-31: 15
- 2026-07-30: 39
- 2026-07-28: 39
- 2026-07-27: 18

## Links

- npm package: https://www.npmjs.com/package/@sunaiva/gate
- Socket report: https://socket.dev/npm/package/@sunaiva/gate
- Website: https://sunaivacore.io/products/gate
- Changelog RSS feed: https://verifymcp.io/servers/io-sunaivacore-gate/sunaiva-gate/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/io-sunaivacore-gate/sunaiva-gate/changelog.json
- HTML version of this page: https://verifymcp.io/servers/io-sunaivacore-gate/sunaiva-gate
