# io.github.machinegrade/validate (npm · @machinegrade/validate)

Deterministic validation for AI-generated artifacts: JSON Schema, OpenAPI response, SQL syntax.

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

## Components

- remote · `api.machinegrade.dev`: 61/100, [markdown](https://verifymcp.io/servers/machinegrade-validate/api.md), [page](https://verifymcp.io/servers/machinegrade-validate/api)
- npm · `@machinegrade/validate`: 64/100 (this document), [markdown](https://verifymcp.io/servers/machinegrade-validate/machinegrade-validate.md), [page](https://verifymcp.io/servers/machinegrade-validate/machinegrade-validate)

## Channel facts

- Registry: `npm`
- Package: `@machinegrade/validate`
- Version: `0.1.2`
- 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**: 78/100
  - No malware found by supply-chain analysis.
  - CVE check failed: a known medium-severity CVE affects @hono/node-server 1.19.17, a direct dependency. A fixed version is available.
  - No install/post-install scripts declared.
  - Only part of the dependency tree could be resolved (99 of 103), so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 45/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 7 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 66/100
  - AI-judged instruction clarity (good).
  - Tool/resource definitions use about 129 tokens (~129/item across 1 items; 1 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**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% 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 machinegrade-validate -- npx -y @machinegrade/validate
```

### Codex

```bash
codex mcp add machinegrade-validate -- npx -y @machinegrade/validate
```

### opencode

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

### OpenClaw

```bash
openclaw mcp add machinegrade-validate --command npx --arg -y --arg @machinegrade/validate
```

### Hermes

```yaml
mcp_servers:
  machinegrade-validate:
    command: "npx"
    args: ["-y", "@machinegrade/validate"]
```

### Other

```json
{
  "mcpServers": {
    "machinegrade-validate": {
      "command": "npx",
      "args": [
        "-y",
        "@machinegrade/validate"
      ]
    }
  }
}
```

## 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-03 (score 64, +3)

- [functional improvement] Stability: unverified → 0.23

### 2026-08-02 (score 61, +56)

- [security regression] GHSA-frvp-7c67-39w9 affects this package: medium
- [security regression] Known CVEs: unverified → fail
- [security regression] Provenance: unverified → fail
- [security improvement] Install scripts: unverified → pass
- [security improvement] Malware scan: unverified → pass
- [security] Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window).
- [functional improvement] License: unverified → pass
- [functional improvement] Dependency health: unverified → partial
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] MCP protocol: unverified → pass
- [functional improvement] Schema quality: unverified → good
- [functional improvement] Tool coverage: unverified → 100
- [functional] Licence: MIT

### 2026-08-01 (score 5, −23)

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

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

First indexed and scored.

## MCP tools (1)

### `validate` (~129 tokens)

Validate an artifact against a contract (json_schema | openapi_response | sql) via the machinegrade validate API.

Input parameters:

- `artifact` (object|array|string|number|boolean|null, required): The artifact to validate, as a JSON value — not a JSON-encoded string. json_schema/openapi_response: the object/array/value itself. sql: the SQL statement as a string.
- `contract` (object): Validator-specific contract. json_schema: { schema }. openapi_response: { spec, path, method, status }. sql: { dialect }.
- `type` (string, required): Which validator to run.

## Diagnostics

Captured diagnostic sections: Provenance, Vulnerabilities, Dependencies. The full working is on the page: https://verifymcp.io/servers/machinegrade-validate/machinegrade-validate#diagnostics

## Score history

- 2026-08-03: 64
- 2026-08-02: 61
- 2026-08-01: 5
- 2026-07-31: 28
- 2026-07-30: 28
- 2026-07-28: 28
- 2026-07-27: 28

## Links

- npm package: https://www.npmjs.com/package/@machinegrade/validate
- Socket report: https://socket.dev/npm/package/@machinegrade/validate
- Repository: https://github.com/machinegrade/validate
- Website: https://api.machinegrade.dev/
- Changelog RSS feed: https://verifymcp.io/servers/machinegrade-validate/machinegrade-validate/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/machinegrade-validate/machinegrade-validate/changelog.json
- HTML version of this page: https://verifymcp.io/servers/machinegrade-validate/machinegrade-validate
