# mcp audit

> Audits a live MCP server the way a real client would, then scans its repo for leaked credentials.

mcp audit is a paid AI agent skill on Agensi by Digivas, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $20 (one-time purchase)
- Creator: [Digivas](https://www.agensi.io/creators/digivas-server)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-10-09
- Security: scan passed (2026-10-09); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/mcp-audit
- Tags: llm-ops, mcp-server, debugging, security-audit, python

## About this skill

Most MCP servers are never exercised the way an actual client would exercise them. Tool schemas are declared in one location and dispatched to handlers in another, and nothing enforces that the two stay in sync — that disconnect is exactly where MCP servers fail without warning.

This skill evaluates an MCP server by acting as a live client, then inspects its repository for credentials that shouldn't be exposed. It provides two working shell scripts alongside the methodology behind them — the same approach that produced real upstream fixes (three broken tools repaired with regression tests during a live SUSE MCP server audit).

## Known limitations

Read-only by default. Does not perform network exfiltration tests. Does not classify correctness bugs as security CVEs. Fingerprint scan is limited to known secret shapes and env variables.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the mcp audit skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does this skill actually do?

It audits an MCP server the way a real client uses it, then scans the repository for credentials that shouldn't be there. The first script completes the handshake, enumerates tools/list, calls each read-only tool once, and compares the declared schema against the actual function signature. The second script fingerprints real credentials from a profile file or the environment and searches every store that can hold them — git objects, reflog, tags, SQLite WALs, logs, chat history, and compressed backups. Both scripts print findings to stdout and exit non-zero on anything they catch.

### What does it actually output?

Both scripts print human-readable findings to stdout and exit non-zero on any finding, so they work as a pre-merge gate without extra parsing. Each finding names the tool or file, the exact error or match, and a one-line suggested fix. Nothing is written to disk unless you pass --out <dir>, which emits a markdown report you can attach to a PR or hand to a reviewer. There is no JSON mode yet — if you need one for CI tooling, say so and it moves up the list.

### Which agents does this work with?

Any SKILL.md-compatible agent — Claude Code, Cursor, Codex CLI, OpenClaw, Gemini CLI, Copilot, Windsurf, Cline, Aider, VS Code, and 20+ others. The instructions run everywhere. The two shell scripts need bash.

### Does this skill work on Windows?

The SKILL.md instructions work in any agent. The two scripts need bash — run them under WSL, Git Bash, or a Linux/macOS machine. Native PowerShell won't execute them directly.

### Does it send my secrets anywhere?

No. leak_scan.sh reads credential values from a profile file or the environment, keeps only a sha256 prefix + length, and never prints or transmits the value. No network calls are made except optional git operations on the target repo.

### Is this a vulnerability scanner?

No. It catches correctness defects that break MCP tools (schema drift, wrong paths, missing binaries) and leaked credentials. It does not produce CVEs, and it will not overclaim one.

### My server is remote (HTTP/streamable), not stdio. Does it work?

The probe script speaks stdio only — the way a local client connects. For a remote server, the methodology still applies: enumerate tools, call each read-only tool once, diff the declared schema against the function signature, and verify answers against ground truth. You'll do that by hand or with your own client, but the checklist and the failure patterns it looks for are the same. If you have a local stdio bridge to your remote server, point the script at that and it runs unchanged.

### What if a tool fails — is that a security problem?

Usually no. A TypeError on every call is a dispatcher/signature mismatch: the tool is broken, not exploited. Report it as a defect with the exact error text.

### How is this different from a regex secret scanner?

Regex catches shapes and misses the value you actually rotated in. This fingerprints the real credential and searches every store that can hold it — git objects, reflog, tags, SQLite WALs, logs, chat history, and compressed backups.

### Can I use it in CI?

Yes — both scripts are non-interactive and exit non-zero on findings, so they fit a pre-merge gate. Keep the leak scan's profile input out of CI logs.

### What does the audit service add?

This skill is the self-serve version: you run it, you read the output, you fix what it finds. The paid service is for teams that want the work done for them — a written findings report, a schema↔signature diff across every tool, platform validation, and optional fix PRs with regression tests attached. Same checks, delivered as a result instead of a tool.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
