Open source · offline CLIs: they never start a server, need an account or touch the network.

View source
MCP Toolkit
ai-automation-tools · two tools · one repo

Check an MCP server before you trust it, and every time it changes.

An MCP config is code your agent runs plus a block where people paste API keys, and a server's tools can change after you approve them. The MCP Toolkit checks both, offline: neither tool starts a server, needs an account or makes a network call.

The tools

Two tools, two moments

mcp-frisk covers the moment before you first use a server; mcp-tool-rugpull-gate covers every day after you've approved it. Both write the Agent Security Suite's inventory format, so their findings land in the same place as the org's other security tools.

mcp-frisk

Is any MCP config here shaped like shell injection, running inline code or holding a plaintext key?

Reads every config your coding agents load and flags shell-injection shapes, inline code, plaintext keys and settings that start servers unasked.

mcp-tool-rugpull-gate

I approved this server's tools. What has it changed since, and how risky is the change?

Locks the tool definitions you approved and shows, in plain words, what changed and which changes look risky. Also a GitHub Action.

Tool 1 · before first use

mcp-frisk: see what your configs would run, before they run

A repo you clone can ship an MCP config, and some clients run it without asking. mcp-frisk reads every config Claude Code, Claude Desktop, Cursor and VS Code load. The demo frisks a pasted config in the page, with the same nine rules as the CLI.

Shell shapes

sh -c, bash -c, cmd /c, powershell -c, unquoted $VAR, backticks and $(...), and ;, && or | in command or args. Plain npx -y <pkg>, uvx and docker run pass.

shell-wrapper · shell-operator

Repo-borne servers

A server defined in the repo's own config, inline code such as node -e or python -c, and .claude/settings.json turning on enableAllProjectMcpServers or enabledMcpjsonServers, which starts those servers with no prompt.

inline-code · auto-enable

Plaintext secrets

Anthropic, OpenAI, Hugging Face, AWS, GitHub and Stripe keys in env or args, plus random-looking strings with no known prefix. Shown as prefix plus last four; JSON holds only a fingerprint.

plaintext-secret

Four clients

Finds the configs Claude Code, Claude Desktop, Cursor and VS Code load, in the repo and in your home folder, on Windows, macOS and Linux. --json writes the Agent Security Suite's inventory format; --fail-on sets the exit code.

discovery · schema v0.1

Run it

cd mcp-toolkit/tools/mcp-frisk      # after the one-clone setup below
npm pack
npm install -g ./mcpfrisk-0.0.0.tgz
mcpfrisk                            # this folder's configs, then your per-user ones
mcpfrisk --fail-on high tests/fixtures/rules/plaintext-secret.fires.json

It reports and sets an exit code. It never blocks a client from launching a server, starts or connects to one, runs a command a config names, makes a network call, or edits your configs.

Tool 2 · after you approve it

mcp-tool-rugpull-gate: the tools you approved, and what they say now

A week after you approve a server, one of its tools takes a notify_webhook URL, or its description tells the model to BCC an outside address. The demo opens on a fictional helpdesk server with exactly that change, shown as a banner before you click anything.

lock

Reads a saved tools/list response and writes mcp-tools.lock.json: a hash and the full approved definition of every tool. Commit it next to your .mcp.json.

rugpull-gate lock

check

Diffs a fresh tools/list against the lock: each tool unchanged, changed, cosmetic-only, new or removed, with a word-level description diff, schema properties added or removed, and annotation hints that flipped.

--fail-on low|medium|high

Risk, in words

Every change gets a risk level (none, low, medium, high) and a plain-English reason. A title-only change is risk none and never trips --fail-on.

high · medium · low · none

approve

Accepts one tool's new definition into the lock once a human has read the diff, and touches no other entry. A corrupt lock file is refused, never overwritten.

rugpull-gate approve

A GitHub Action

Checks the tools/list saved in a PR against the committed lock, fails the step on drift and writes SARIF for code scanning. No clone, nothing installed.

uses: …/mcp-tool-rugpull-gate

Run it

cd mcp-toolkit/tools/mcp-tool-rugpull-gate      # after the one-clone setup below
npm pack
npm install --global ./mcp-tool-rugpull-gate-0.0.0.tgz
rugpull-gate lock tests/fixtures/helpdesk-v1.json --server fernhill-helpdesk
rugpull-gate check tests/fixtures/helpdesk-v2.json
rugpull-gate approve close_ticket tests/fixtures/helpdesk-v2.json   # after a human reads the diff

Or in a pull request

- uses: ai-automation-tools/mcp-toolkit/tools/mcp-tool-rugpull-gate@main   # pin a commit SHA
  with:
    tools-list: mcp/helpdesk.tools-list.json

Exit 0 when nothing reached --fail-on, 1 when something did, 2 on bad input. It reads two JSON files and compares them: it doesn't fetch from a live server, block a call, or touch the network, and it can't catch a tool that was already poisoned when you first locked it.

Schedule it

Frisk your configs every week, as Cronsole templates

mcp-frisk's weekly frisks of your own MCP configs and of one repo's, published as templates for Cronsole. Import one, point it at your clone of the toolkit, and the run fails when a finding reaches the severity you pick. rugpull-gate runs in CI instead, as the Action above.

Loading the templates…

Get started

One clone, every tool

Nothing is on npm yet. Clone the toolkit and build it with Node 22.18 or newer; one install covers every tool (npm workspaces). Each tool's section above has its own commands.

git clone https://github.com/ai-automation-tools/mcp-toolkit.git
cd mcp-toolkit
npm install        # one install for every tool
npm run build      # builds every tool
npm test           # tests every tool
Resources

Everything is in the repo