Grades are a hygiene check, not a security guarantee.

MCP, MCP server

Midnight Mcp

⚠️ Deprecated — use Kapa + Midnight Expert midnight-mcp is being wound down. Midnight has standardised on two official tools: - Kapa MCP (docs Q&A / search): claude mcp add --transport http midnight https://midnight.mcp.kapa.ai - Midnight Expert (han

Compatibility: Not stated.

Grade D

Two or more Medium findings, or a High finding. Only try it in a sandbox.

Graded by PlugVetRubric v2

Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.

Rescanned at commit 7ea89837a435, unchanged since the check below.

INSTALL_REMOTE_SCRIPT

Why this grade

  • INSTALL_REMOTE_SCRIPT High

    Fetches a script from the network and runs it (a pipe to a shell, or an install hook with a URL).

    api/src/stub.ts, line 106 <li><strong>Midnight Expert</strong> (hands-on dev): <code>curl -fsSL https://midnightntwrk.expert/install.sh | bash</code></li>

Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.

If you think this grade is wrong, email [email protected] with the entry link and your evidence. We aim to acknowledge within two working days and decide within seven. If we confirm an error, we aim to correct it within 24 hours of confirming it. These are aims, not guarantees.

Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.

What was checked

Plain notes from the hygiene checks.

  • Permissions

    Pass

    No shell or command execution found, and no extra permission was declared.

  • Install and update

    Serious

    install fetches a script from the network.

    INSTALL_REMOTE_SCRIPT

    README.md, line 8

    > - **Midnight Expert** (hands-on dev, Claude Code plugins): `curl -fsSL https://midnightntwrk.expert/install.sh | bash`

    api/src/stub.ts, line 106

    <li><strong>Midnight Expert</strong> (hands-on dev): <code>curl -fsSL https://midnightntwrk.expert/install.sh | bash</code></li>

    src/tools/deprecation/index.ts, line 43

    install: "curl -fsSL https://midnightntwrk.expert/install.sh | bash",

    Show more

    src/tools/health/handlers.ts, line 142

    "curl -fsSL https://midnightntwrk.expert/install.sh | bash",

  • Network

    Concern

    can reach a host that is not written as a fixed address. can reach api.openai.com. The description does not name that host.

    NETWORK_NO_FIXED_HOST NETWORK_UNNAMED_HOST

    api/scripts/services/cache.ts, line 23

    const response = await fetch(url, {

    api/scripts/services/cache.ts, line 43

    await fetch(url, {

    api/scripts/services/github.ts, line 32

    const response = await fetch(tarballUrl, {

    Show more

    api/scripts/services/vectorize.ts, line 52

    const response = await fetch(url, {

    api/scripts/services/vectorize.ts, line 81

    const response = await fetch(url, {

    api/src/services/embeddings.ts, line 17

    const response = await fetch("https://api.openai.com/v1/embeddings", {

    src/services/compiler.ts, line 132

    const response = await fetch(`${url}/health`, {

    src/services/compiler.ts, line 224

    const response = await fetch(`${url}/compile`, {

  • Secrets

    Concern

    reads a credential or environment file.

    SECRETS_ENV_READ SECRETS_PATH_DOTENV

    api/scripts/index-repos.ts, line 20

    // Load .env from parent directory (project root)

    api/scripts/index-repos.ts, line 21

    config({ path: resolve(__dirname, "../../.env") });

    api/scripts/index-repos.ts, line 37

    const CLOUDFLARE_API_TOKEN = process.env.CLOUDFLARE_API_TOKEN;

    Show more

    api/scripts/index-repos.ts, line 38

    const OPENAI_API_KEY = process.env.OPENAI_API_KEY;

    api/scripts/index-repos.ts, line 39

    const GITHUB_TOKEN = process.env.GITHUB_TOKEN;

    api/scripts/services/cache.ts, line 8

    const CLOUDFLARE_API_TOKEN = process.env.CLOUDFLARE_API_TOKEN!;

    api/scripts/services/embeddings.ts, line 7

    const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });

    api/scripts/services/github.ts, line 13

    process.env.MIDNIGHT_GITHUB_TOKEN || process.env.GITHUB_TOKEN;

    api/scripts/services/vectorize.ts, line 6

    const CLOUDFLARE_API_TOKEN = process.env.CLOUDFLARE_API_TOKEN!;

    src/bin.ts, line 10

    // Load .env from the current working directory

    src/bin.ts, line 11

    config({ path: resolve(process.cwd(), ".env") });

    src/bin.ts, line 65

    process.env.GITHUB_TOKEN = argv["github-token"];

    .gitignore, line 2

    dist/

    .gitignore, line 3

    .env

    CONTRIBUTING.md, line 19

    cp .env.example .env

    SECURITY.md, line 29

    - The `.env` file is gitignored by default

  • Agent instructions

    Pass

    No instruction to ignore earlier instructions or to hide a step.

  • Obfuscation

    Note

    a file was over the read cap and was not fully read.

    OBFUSCATION_FILE_OVER_READ_CAP

    package-lock.json, line 1

    {

  • Licence

    Pass

    A licence file is present (LICENSE).

  • Maintainer activity

    Pass

    The latest commit is within the last 365 days.

Note

Hygiene check of commit 7ea89837a435. install fetches a script from the network. can reach a host that is not written as a fixed address. can reach api.openai.com. The description does not name that host. reads a credential or environment file. a file was over the read cap and was not fully read.

Date and source

Date checked:

View source

github.com

Commit graded: 7ea89837a43510f71627886288a92dce77fcb0fc

This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.

Read how this letter is chosen