# io.github.mlawsonking/code-guard-mcp (npm · @mlawsonking/code-guard-mcp)

Security scan for AI-generated code: injection, SSRF, secrets, weak crypto, unsafe deserialization.

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

## Components

- npm · `@mlawsonking/code-guard-mcp`: 69/100 (this document), [markdown](https://verifymcp.io/servers/mlawsonking-code-guard-mcp/mlawsonking-code-guard-mcp.md), [page](https://verifymcp.io/servers/mlawsonking-code-guard-mcp/mlawsonking-code-guard-mcp)

## Channel facts

- Registry: `npm`
- Package: `@mlawsonking/code-guard-mcp`
- Version: `1.2.0`
- 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-05.

- **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**: 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 4 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 71/100
  - AI-judged instruction clarity (good).
  - Tool/resource definitions use about 264 tokens (~88/item across 3 items; 3 tools + 0 resources), lean.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 30/100
  - Stability observed for 9 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 mlawsonking-code-guard-mcp -- npx -y @mlawsonking/code-guard-mcp
```

### Codex

```bash
codex mcp add mlawsonking-code-guard-mcp -- npx -y @mlawsonking/code-guard-mcp
```

### opencode

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

### OpenClaw

```bash
openclaw mcp add mlawsonking-code-guard-mcp --command npx --arg -y --arg @mlawsonking/code-guard-mcp
```

### Hermes

```yaml
mcp_servers:
  mlawsonking-code-guard-mcp:
    command: "npx"
    args: ["-y", "@mlawsonking/code-guard-mcp"]
```

### Other

```json
{
  "mcpServers": {
    "mlawsonking-code-guard-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mlawsonking/code-guard-mcp"
      ]
    }
  }
}
```

## 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-05 (score 69, +2)

- [security improvement] CVE-2026-69207 no longer affects this package
- [security improvement] Known CVEs: fail → partial

### 2026-08-04 (score 67, −1)

- [security regression] CVE-2026-69207 affects this package: medium
- [security regression] Known CVEs: partial → fail

### 2026-08-03 (score 68, +1)

No change was recorded against any check on this day. Stability & Change Management went from 20 to 23. That category is still filling its 30-day observation window: 6 days of observed history at the previous scan, 7 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-08-02 (score 67, +46)

- [security regression] Provenance: unverified → fail
- [security improvement] Install scripts: unverified → pass
- [security improvement] Known CVEs: unverified → partial
- [security improvement] Malware scan: unverified → pass
- [functional regression] Tool coverage: 100 → unverified
- [functional improvement] License: unverified → pass
- [functional improvement] Stability: unverified → 0.20
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] MCP protocol: unverified → pass
- [functional improvement] Schema quality: unverified → good
- [functional improvement] Dependency health: unverified → partial
- [functional] Licence: MIT

### 2026-07-31 (score 21, −3)

- [security regression] Malware scan: pass → unverified
- [security] First check of Stability: unverified
- [functional improvement] Tool coverage: 75% → 100%
- [functional improvement] Tool coverage: unverified → 100
- [functional] First check of Capabilities: unverified
- [functional] Package version: 1.0.1 → 1.2.0
- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-30 (score 24, −21)

- [functional regression] Tool coverage: 100 → unverified
- [functional] First check of Schema quality: unverified

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

First indexed and scored.

## MCP tools (3)

### `scan_code` (~116 tokens)

Scan a code snippet for the vulnerability classes that show up most in generated code: injection, SSRF, hardcoded secrets, weak crypto, unsafe deserialization, disabled TLS, XSS. Regex rules matched line by line — no parser, no data flow, no taint tracking. JS/TS and Python only. Fully local. Runs fully locally: the input never leaves this machine.

Input parameters:

- `code` (string, required): The source to scan.
- `language` (string): python, javascript, typescript. Auto-detected if omitted.

### `scan_diff` (~86 tokens)

Scan only the added lines of a unified diff, reporting findings against the new file line numbers. Use this on a patch before committing so untouched code does not drown the result. Fully local. Runs fully locally: the input never leaves this machine.

Input parameters:

- `diff` (string, required): A unified diff.
- `language` (string): python, javascript, typescript. Auto-detected if omitted.

### `list_rules` (~62 tokens)

List the rule catalog so you can see the coverage and the gaps: rule id, category, severity, language. The grouped hardcoded-* entry stands in for the secret and PII ruleset. Fully local. Runs fully locally: the input never leaves this machine.

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/mlawsonking-code-guard-mcp/mlawsonking-code-guard-mcp#diagnostics

## Score history

- 2026-08-05: 69
- 2026-08-04: 67
- 2026-08-03: 68
- 2026-08-02: 67
- 2026-08-01: 21
- 2026-07-31: 21
- 2026-07-30: 24
- 2026-07-28: 45
- 2026-07-27: 45

## Links

- npm package: https://www.npmjs.com/package/@mlawsonking/code-guard-mcp
- Socket report: https://socket.dev/npm/package/@mlawsonking/code-guard-mcp
- Repository: https://github.com/mlawsonking/MCP
- Changelog RSS feed: https://verifymcp.io/servers/mlawsonking-code-guard-mcp/mlawsonking-code-guard-mcp/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/mlawsonking-code-guard-mcp/mlawsonking-code-guard-mcp/changelog.json
- HTML version of this page: https://verifymcp.io/servers/mlawsonking-code-guard-mcp/mlawsonking-code-guard-mcp
