swag

swag is a skill for Claude Code from jmagar/swag-mcp. It costs 118 tokens per session (1,110 once invoked), scanned A, original, MIT.

A tool for creating and managing SWAG reverse-proxy settings. SWAG is a server setup that uses nginx to route internet requests to services on another computer.

In plain words
What is it for?
Create, view, edit, list, and remove proxy configurations, including backend addresses and optional authentication settings.
Why use it?
It avoids manually editing nginx configuration files when exposing services through a subdomain or subfolder. It can also show whether proxy settings are enabled.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the swag-mcp plugin — 1 skill, 2 hooks, 1 MCP server shipped together

Good fit Create, view, edit, list, and remove proxy configurations, including backend addresses and optional authentication settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jmagar/swag-mcp/swag
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jmagar/swag-mcp --skill swag
Clone the repo
git clone --depth 1 https://github.com/jmagar/swag-mcp

Made for: Claude Code.

Or install swag-mcp, the plugin that ships this one along with the rest of its 1 skill, 2 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for swag

README.md
[![agentmods](https://agentmods.dev/badge/skills/jmagar/swag-mcp/swag/github.svg)](https://agentmods.dev/skills/jmagar/swag-mcp/swag)
Your own site
<a href="https://agentmods.dev/skills/jmagar/swag-mcp/swag"><img src="https://agentmods.dev/badge/skills/jmagar/swag-mcp/swag/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for swag

Your own site · 80×15
<a href="https://agentmods.dev/skills/jmagar/swag-mcp/swag"><img src="https://agentmods.dev/badge/skills/jmagar/swag-mcp/swag.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,110 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00118 $0.01110
Opus 5 $0.00059 $0.00555
Sonnet 5 $0.00024 $0.00222
Haiku 4.5 $0.00012 $0.00111

Measured 10d ago against content hash 9aab26493151, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

swag scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

**HTTP fallback**: No meaningful curl equivalent — SWAG config management requires direct filesystem access. If MCP server is unavailable, surface the issue to the user and suggest restarting it.
plugins/swag-mcp/skills/swag/SKILL.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SWAG Skill

Mode Detection

MCP mode (preferred): Use when mcp__swag-mcp__swag tool is available. The server manages nginx proxy configuration files directly (local or remote via SSH).

HTTP fallback: No meaningful curl equivalent — SWAG config management requires direct filesystem access. If MCP server is unavailable, surface the issue to the user and suggest restarting it.

MCP URL: ${user_config.swag_mcp_url}


MCP Mode — Tool Reference

Single tool: mcp__swag-mcp__swag with an action parameter.

List configurations

mcp__swag-mcp__swag
  action: "list"

Returns all proxy configurations with their status (enabled/disabled).

Create configuration

mcp__swag-mcp__swag
  action:       "create"
  server_name:  (required) Service name, e.g. "jellyfin", "sonarr"
  type:         (required) "subdomain" or "subfolder"
  upstream_url: (required) Backend URL, e.g. "http://192.168.1.10:8096"
  auth_method:  (optional) "authelia", "authentik", "basic", "none" — default from server config
  enable_quic:  (optional) true/false

View configuration

mcp__swag-mcp__swag
  action:      "view"
  server_name: (required) Service name

Edit configuration

mcp__swag-mcp__swag
  action:      "edit"
  server_name: (required) Service name
  changes:     (required) Description of changes to apply

Update upstream

mcp__swag-mcp__swag
  action:       "update"
  server_name:  (required) Service name
  upstream_url: (required) New backend URL

Remove configuration

mcp__swag-mcp__swag
  action:      "remove"
  server_name: (required) Service name

DESTRUCTIVE — removes the nginx config file. Always confirm with user before executing.

View logs

mcp__swag-mcp__swag
  action:   "logs"
  log_type: (optional) "access", "error", "fail2ban", "letsencrypt" — default "error"

Manage backups

mcp__swag-mcp__swag
  action: "backups"

Lists available configuration backups.

Read the full file on GitHub · 146 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 146 lines · 118 tokens per session scan A 9aab26493151

Subscribe to this mod's changes

swag is a skill published in the GitHub repository jmagar/swag-mcp (5 stars, last pushed 3d ago), licensed MIT. It adds 118 tokens to every session and 1,110 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.