SuperAPIAI Directory

rugsnare

github.com · AI security

RugSnare is a security tool for reviewing changes to MCP servers. After you approve an MCP server, it saves the tool definitions that server exposes (tool names, descriptions, and input schema), and compares them on the next deployment. If a tool disappears, its description changes, or the input schema starts requiring new fields, reviewers see a diff report, and CI can use it to block releases. The project is licensed under Apache 2.0, offers Homebrew installation, and can also run the scan and diff commands in a project via the npm CLI, with support for GitHub Actions integration and MCP client extensions.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

RugSnare focuses on the “contract drift” problem that occurs after an MCP server is approved: the tool definitions that agents see may change quietly after an upgrade. Its approach is to first save a trusted baseline, then compare for differences on subsequent deployments.

Purpose and main capabilities RugSnare records the tool names, descriptions, and input schema that an MCP server exposes, and compares them on the next deployment. When a tool disappears, a tool description changes, or the input schema starts requiring new fields, it generates a diff report and can use exit codes to let CI block releases. Version 1.7.0 records the upstream server and tool identities provided by 1MCP, so when two upstream servers both expose a tool with the same name (for example, echo), the report can indicate which one changed. Before saving a baseline or reporting deletions, the stdio and HTTP readers reject incomplete tool lists.

Usage On macOS or Linux, install via Homebrew, then run rugsnare scan and rugsnare diff in the project; Homebrew installs Node.js as a dependency. It can also be used in projects with Node.js 18 or later: starting from a project with a trusted MCP configuration, replace .mcp.json with the client configuration path; for local stdio entries, the scan starts the server command configured in that file. After reviewing the server for the first time, run the first command and commit the generated .rugsnare/pins.json, .rugsnare/pins.sig, and .rugsnare/pins.pub.pem together, keeping the private key local; subsequent checks use the second command. The exit code is 0 when the list has not changed and 1 when a change is detected; if the change is intentional, review the diff first and then approve updating the baseline.

CI and client integration After committing the baseline, add the corresponding step to a GitHub Actions workflow job that has access to the configured MCP server, with the required credentials placed in the runner environment; the version input selects the npm CLI, and the Action definition also provides filtering, SARIF output, and badge options. Desktop clients that support MCPB can install the RugSnare 1.7.0 extension; clients that support stdio MCP servers can add the corresponding entry, where pins_report reads the project-local pin store, and drift_feed_status fetches the public RugSnare drift feed when called.

Use cases and limitations Suitable for reviewing tool contract changes before upgrading an MCP server, blocking unexpected drift in CI, and generating upgrade diff reports for PRs. Note: a diff only indicates that the contract exposed to clients has changed; for example, a tool rename may break existing workflows, and a description change may also require security review. However, determining the intent of a change or verifying implementation behavior still requires other evidence, and an unchanged contract does not mean the server behavior is unchanged. The material does not provide information such as fees or pricing.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools