mcp

v0.1.1
@simpleaudit/mcp Checked 2 days ago Published 27 days ago

Local MCP server for pushing evidence files into SimpleAudit at full size and speed.

@simpleaudit/mcp A small local MCP server that pushes evidence files into the SimpleAudit compliance vault. It exposes one tool, upload_evidence, which takes the path to a local file. The server reads the bytes itself and POSTs them to SimpleAudit, so the model never has to emit the file. That is the whole point: a 40MB PDF is one read and one request. Install No install step — your MCP client runs it with npx. Create a token in SimpleAudit under Settings > Agent & API Access. Programmatic ingestion requires Prove or above. The settings page shows this snippet pre-filled with your token.

Summary extracted from the README.

@simpleaudit/mcp

A small local MCP server that pushes evidence files into the SimpleAudit compliance vault.

It exposes one tool, upload_evidence, which takes the path to a local file. The server reads the bytes itself and POSTs them to SimpleAudit, so the model never has to emit the file. That is the whole point: a 40MB PDF is one read and one request.

Install

No install step — your MCP client runs it with npx.

{
  "mcpServers": {
    "simpleaudit": {
      "command": "npx",
      "args": ["-y", "@simpleaudit/mcp"],
      "env": {
        "SIMPLEAUDIT_API_TOKEN": "your-token-here",
        "SIMPLEAUDIT_BASE_URL": "https://simpleaudit.io"
      }
    }
  }
}

Create a token in SimpleAudit under Settings > Agent & API Access. Programmatic ingestion requires Prove or above. The settings page shows this snippet pre-filled with your token.

Claude Desktop (one-click)

If you'd rather not edit JSON, install this server as a Claude Desktop extension instead:

  1. Build the bundle: npm run bundle (from packages/mcp), or obtain a prebuilt simpleaudit-mcp-{version}.mcpb file.
  2. Open Claude Desktop's Settings → Extensions, then drag the .mcpb file onto the window (or use the "Install extension..." picker to open it).
  3. When prompted, paste your API token from SimpleAudit's Settings > Agent & API Access page. Leave the base URL at its default unless SimpleAudit support tells you otherwise.

Your token is stored in your OS keychain, not in a config file, and is masked in the extension's settings UI.

Configuration

Variable Required Default Notes
SIMPLEAUDIT_API_TOKEN Yes — The server exits immediately if it is unset.
SIMPLEAUDIT_BASE_URL No https://simpleaudit.io Point at another environment if you need to.

The upload_evidence tool

Argument Required Notes
filePath Yes Absolute path. This server runs under your MCP client's working directory, so a relative path is ambiguous.
category No e.g. policies, security, vendor, asset.
policyType, documentType, description No Free text.
vendorId, assetId No Attach the evidence to an existing vendor or asset.
tags No Array of strings.
isConnectionTest No Boolean. Marks the upload as a throwaway connector smoke test: it is badged in the vault, never counts toward readiness or coverage, cannot be attached to a control, and is auto-deleted after about 7 days.
isTestEvidence No Deprecated alias for isConnectionTest — removed after the deprecation window. If both are sent, isConnectionTest wins and this one is ignored. Sending it adds a deprecation notice to the tool's result text.

Accepted file types are PDF, PNG, JPG/JPEG, CSV, TXT, XLSX and DOCX. SimpleAudit verifies every one of them against its extension before storing it, using a check appropriate to the format: a byte signature for PDF, PNG and JPEG, the container signature plus its inner type for XLSX and DOCX, and an encoding check for CSV and TXT. No accepted type is stored unverified.

What this package does not do

It is deliberately thin. SimpleAudit's endpoint owns classification, storage quota, file-type validation, tenancy, entitlement, size limits and rate limiting — this package re-implements none of it, because a second copy of a rule drifts from the server the first time the server changes.

It sends no company or tenant identifier of any kind: your token alone determines where the evidence lands.

Behaviour on failure

Every failure comes back as an error result naming the remedy, and your token never appears in any output.

If SimpleAudit is temporarily unavailable (503) or rate-limits the request (429), the upload is retried up to 3 attempts, honouring Retry-After. Your evidence is never silently dropped. If the attempts run out, the error says so explicitly.

Other failures are terminal and are not retried — including a 500 or a dropped connection. That is deliberate: such a failure can happen after the file has been stored, and retrying could file your evidence twice in a compliance vault. When you see one, check the vault before sending again.