Skarn guard logo

Skarn guard

Organization
skarn-security

Skarn plugins for Claude Code, Codex CLI, Gemini CLI, Grok Build, and Antigravity: audit skills, guard hooks, and MCP declarations that find leaked secrets and credentials in AI coding sessions, locally and redacted.

Publisherskarn-security
Repositoryagent-guard
Forks
0
Stars
34
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Skarn guard exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    34 stars and 0 forks from the linked repository.

Skarn guard: agent plugins

The Skarn guard is a pre-execution hook: before your agent runs a shell command, applies a patch, writes a file, fetches a URL, calls an MCP tool, or sends a prompt, the Skarn detection engine returns deny, ask, or allow. It scans locally, makes no network call, and prints no raw secret.

Install

Install the skarn binary first; every hook calls skarn guard on PATH.

sh
brew install skarn-security/tap/skarn

The buttons add the local MCP server; the table installs the guard.

Add to Cursor

Add to VS Code

Both buttons register the server as skarn and run skarn mcp from your PATH, so install the binary first. If you would rather not install it, the pinned launcher form works with only Node present: Cursor or VS Code - it downloads @skarn-security/skarn@0.31.0 on first run and reuses the npx cache afterward; a newer Skarn needs a newer link.

HostCommandsCaveat
Claude Codeclaude plugin marketplace add skarn-security/agent-guardclaude plugin install skarn-guard@skarnThe hooks are live in your next session, not the running one.
Codex CLIcodex plugin marketplace add skarn-security/agent-guardcodex plugin add skarn-guard-codex@skarnChoose "Trust all and continue" at the "Hooks need review" prompt, or the hooks stay off. A hook change asks again.
Gemini CLIgemini extensions install https://github.com/skarn-security/agent-guardThe root is itself the Gemini extension, because Google's installer reads the manifest there, and carries the same hooks, skill, and MCP server. Install asks for consent and folder trust; answer both.
Antigravity CLIgit clone https://github.com/skarn-security/agent-guardagy plugin install agent-guard/antigravityFails closed; see Safety.
Cursormkdir -p ~/.cursor/plugins/localgit clone https://github.com/skarn-security/cursor-plugin ~/.cursor/plugins/local/skarnListing pending. Cursor rejects a local plugin whose symlink target lies outside ~/.cursor/plugins/local, so clone there, then run Developer: Reload Window. The hooks are macOS and Linux only, and fail open on Windows.
Any host, via skarn setupskarn setupMerges the same hooks into the native config of Claude Code, Codex CLI, Cursor, Copilot CLI, Gemini CLI, and Grok Build, but not Antigravity.

Both guard plugins carry the skarn-audit skill. skarn-recall, a skill-only plugin in the same marketplace, reconstructs your past work from transcripts: claude plugin install skarn-recall@skarn, or codex plugin add skarn-recall@skarn.

Local MCP server

The four guard units declare the same stdio MCP server, started with skarn mcp.

json
{
  "mcpServers": {
    "skarn": {
      "command": "skarn",
      "args": ["mcp"]
    }
  }
}

It exposes four read-only tools: scan_sessions, vet_configs, list_sessions, and session_stats. Findings are redacted; metadata and aggregates carry no message content. Two content tools, search_sessions and get_session, appear only under skarn mcp --enable-recall, which these declarations omit.

Without the binary, a pinned launcher works:

json
{
  "mcpServers": {
    "skarn": {
      "command": "npx",
      "args": ["-y", "@skarn-security/skarn@0.31.0", "mcp"]
    }
  }
}

Keep the version pinned; skarn vet reports the unpinned form as vet-mcp-unpinned.

Audit first, then enforce

Both guard plugins ship in audit mode. Audit reports the would-be verdict and changes nothing. SKARN_GUARD_LOG=<path> in the agent's environment logs one redacted record per flagged call. Once the log is clean, change --guard-mode audit to --guard-mode enforce in the plugin's hook entries. skarn setup --update --mode enforce flips only the skarn guard hooks in a host's own config, so it leaves these plugins in audit. Enforcement runs on any paid tier; without one the guard stays in audit, so a lapsed license does not break your editor.

Updating

sh
claude plugin marketplace update skarn
claude plugin update skarn-guard@skarn
sh
codex plugin marketplace upgrade
codex plugin add skarn-guard-codex@skarn

Plugin and binary updates are independent.

Safety

The guard only tightens a decision. Claude Code, Codex CLI, and Gemini CLI fail open: a guard error yields allow, unless a licensed enforce runs --strict, which also gates Read. The Antigravity CLI fails closed on every outcome except an explicit allow, in audit as well as enforce: a crash, a timeout, invalid JSON, or a missing skarn binary blocks the matched call. Install skarn before wiring that hook, and remove the entry before uninstalling it.

Transcript content the recall skill reads leaves your machine for the model provider serving the agent; redaction masks the credentials Skarn detects, not everything you would call sensitive.

License, privacy, and support

This repository is MIT licensed and carries configuration only; see LICENSE. The skarn binary is a separate, closed-source download under the Skarn End User License Agreement at https://getskarn.com/terms/, which running it accepts. What it reads and what stays on your machine: https://getskarn.com/privacy/. Support: hello@getskarn.com. Vulnerability reports: security@getskarn.com.

Installation

TypingMind
{
  "mcpServers": {
    "agent-guard": {
      "command": "npx",
      "args": [
        "-y",
        "@skarn-security/skarn@0.26.0",
        "mcp"
      ]
    }
  }
}

Use Skarn guard MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Skarn guard is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Skarn guard as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Skarn guard MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "agent-guard": {
      "command": "npx",
      "args": [
        "-y",
        "@skarn-security/skarn"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Skarn guard MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Skarn guard MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Skarn guard to help me with this task?
Skarn guard
Sure. I read it.
Here is what I found using Skarn guard.

Frequently asked questions

What is the Skarn guard MCP server used for?

Skarn guard is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Skarn guard MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Skarn guard with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Skarn guard MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Skarn guard connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Skarn guard MCP to TypingMind?

Skarn guard runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Skarn guard MCP provide in TypingMind?

Skarn guard exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Skarn guard MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Skarn guard requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇