auditai-mcp 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,17 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+
17
+ Copyright 2026 Audit AI (auditai.sh)
package/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # auditai-mcp
2
+
3
+ MCP server for Claude Code and Cursor from [Audit AI](https://auditai.sh). It scans a Next.js + Supabase
4
+ app for the authorization holes AI-built apps tend to ship with (one user reading another tenant's rows,
5
+ tables without RLS, service-role queries with no check on the caller, mass assignment) and lets your
6
+ own coding agent confirm and fix what it finds.
7
+
8
+ No API key, no account, no Docker. The scan is deterministic and runs on your machine; the reasoning
9
+ is done by the model you already use in Claude Code or Cursor.
10
+
11
+ ## Install
12
+
13
+ Claude Code, from your project directory:
14
+
15
+ ```bash
16
+ claude mcp add auditai -- npx -y auditai-mcp
17
+ ```
18
+
19
+ Cursor: Settings → MCP → Add server, command `npx`, args `["-y", "auditai-mcp"]`.
20
+
21
+ Needs Node.js 22 or newer. Then ask your agent: *"Scan this project with Audit AI and check what it
22
+ finds."*
23
+
24
+ ## Tools
25
+
26
+ | Tool | What it does |
27
+ |---|---|
28
+ | `audit_scan` | Deterministic scan of routes, server actions, Supabase clients and queries, RLS policies. Saves `.audit/scan.json`. |
29
+ | `audit_get_findings` | Findings from the last scan with any recorded verdicts and proposed fixes, as JSON. |
30
+ | `audit_get_context` | The bounded code slice, policies and instructions for one finding, for your agent to reason about (`reason`) or fix (`fix`). |
31
+ | `audit_record_verdict` | Records your agent's verdict: `confirmed` at confidence ≥ 0.75, `suppressed` at ≥ 0.7 "not vulnerable", otherwise `unverified`. |
32
+ | `audit_propose_fix` | Checks your agent's patch (each search string must occur exactly once, nothing outside the project), saves the diff and a regression test under `.audit/fixes/`. Writes to the project only with `apply: true`. |
33
+
34
+ ## Proof
35
+
36
+ This package does not run a sandbox. To prove a hole and check the fix, push the repository to
37
+ GitHub, scan it at [auditai.sh](https://auditai.sh) and press **Prove it** on the finding.
38
+
39
+ ## Safety
40
+
41
+ - No shell tool. Every tool takes a project path and, where relevant, a finding id like `AUDIT-001`.
42
+ - Paths must be inside the directory the server was started in, symlinks included. Set
43
+ `AUDITAI_MCP_ALLOW_ANY_PATH=1` to allow other directories.
44
+ - Code from the scanned repository reaches your agent marked as untrusted data, and secret files
45
+ (`.env`, keys, credentials) are never put into the context.
46
+ - Nothing is sent over the network.
47
+
48
+ ## Scope
49
+
50
+ Next.js (App Router) + Supabase / PostgreSQL, in JavaScript and TypeScript. How precise the rules
51
+ are, measured on repositories they had never seen: [auditai.sh/stats](https://auditai.sh/stats).
52
+
53
+ Apache-2.0 · [auditai.sh](https://auditai.sh) · hello@auditai.sh