mcpaudit

v0.1.2
io.github.CloudCorpRecords/mcpaudit Checked 4 days ago Published 1 month ago

Audit any MCP server: handshake, schemas, descriptions, error handling, scored.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

audit_server

Audit an MCP server by launching it over stdio: initialize handshake, protocol version, server info, tools/list quality (names, descriptions, inputSchema validity, undescribed parameters), response times, and error handling on a deliberately bad tool call. Returns a scored report (0-100) with named, evidence-backed issues.

ParameterTypeDescription
command *stringServer launch command, e.g. npx or node
argsarrayCommand arguments, e.g. ["-y", "@reneturcios/shipcheck", "mcp"]
envobjectExtra environment variables for the server process
timeoutMsnumberPer-step timeout in milliseconds, default 60000

audit_config

Audit every server in an MCP client config file (Claude/Cursor style: {"mcpServers": {name: {command, args}}}) or a single named entry. Each server is launched and audited like audit_server. Returns one scored report per server.

ParameterTypeDescription
path *stringPath to the config JSON file, on the machine running this server
serverstringOnly audit this named entry
timeoutMsnumberPer-step timeout in milliseconds, default 60000

audit_tools

Offline audit of a tools/list array (no server launched): validates tool names, descriptions, inputSchema shape, required-vs-properties consistency, and duplicate names. Returns a scored report.

ParameterTypeDescription
tools *arrayThe tools array exactly as a server returned it from tools/list
labelstringLabel for the report target