deploy-local

deploy-local is a command for Claude Code from Matt-Dionis/claude-code-configs. It costs 12 tokens per session (584 once invoked), scanned A, original, MIT.

A local deployment command for exposing a token-gated MCP server through an ngrok HTTPS tunnel so claude.ai can connect to it for testing. It also checks that the server and its dependencies are ready.

In plain words
What is it for?
Use it to start the server, open an ngrok tunnel, configure the MCP connection in claude.ai, and verify that unauthenticated tool calls are rejected.
Why use it?
It removes the manual setup needed to run the server, create a public test URL, connect claude.ai, and confirm that token protection is working.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to start the server, open an ngrok tunnel, configure the MCP connection in claude.ai, and verify that unauthenticated tool calls are rejected.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/matt-dionis/claude-code-configs/deploy-local
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.

Clone the repo
git clone --depth 1 https://github.com/Matt-Dionis/claude-code-configs

Made for: Claude Code.

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 deploy-local

README.md
[![agentmods](https://agentmods.dev/badge/commands/matt-dionis/claude-code-configs/deploy-local/github.svg)](https://agentmods.dev/commands/matt-dionis/claude-code-configs/deploy-local)
Your own site
<a href="https://agentmods.dev/commands/matt-dionis/claude-code-configs/deploy-local"><img src="https://agentmods.dev/badge/commands/matt-dionis/claude-code-configs/deploy-local/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 deploy-local

Your own site · 80×15
<a href="https://agentmods.dev/commands/matt-dionis/claude-code-configs/deploy-local"><img src="https://agentmods.dev/badge/commands/matt-dionis/claude-code-configs/deploy-local.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 584 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00012 $0.00584
Opus 5.5 $0.00005 $0.00234
Sonnet 5.5 $0.00002 $0.00117
Haiku 4.5 $0.00001 $0.00058

Measured 1mo ago against content hash 37d5da7aece7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

deploy-local scanned grade A with 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

configurations/mcp-servers/token-gated-mcp-server/.claude/commands/deploy-local.md · 94 lines

How it starts

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

Deploy Locally with ngrok

Set up and deploy your token-gated MCP server locally with ngrok for testing with claude.ai.

Deployment Steps

  1. Pre-deployment Checks

    • Verify all dependencies installed: !npm list fastmcp @radiustechsystems/mcp-sdk zod 2>/dev/null | grep -E "fastmcp|radius|zod"
    • Check TypeScript compilation: !npx tsc --noEmit
    • Validate environment configuration
  2. Start the MCP Server

    # Start server in development mode
    npm run dev
    

    Server should start on port 3000 (or configured PORT)

  3. Set Up ngrok Tunnel

    # Install ngrok if needed
    # brew install ngrok (macOS)
    # or download from https://ngrok.com
    
    # Start ngrok tunnel
    ngrok http 3000
    
  4. Configure claude.ai

    • Copy the HTTPS URL from ngrok (e.g., https://abc123.ngrok.io)
    • In claude.ai:
      1. Click the 🔌 connection icon
      2. Add MCP server
      3. Enter URL: https://abc123.ngrok.io/mcp
      4. Test connection
  5. Verify Token Protection

    • Try calling a protected tool
    • Should receive EVMAUTH_PROOF_MISSING error
    • Error should guide to authenticate_and_purchase

Testing Checklist

  • Server starts without errors
  • ngrok tunnel established
  • claude.ai can connect
  • Tools appear in claude.ai
  • Token protection working
  • Error messages are helpful
  • Authentication flow completes

Troubleshooting

Server Won't Start

  • Check port not already in use: !lsof -i :3000
  • Verify dependencies installed
  • Check for TypeScript errors

ngrok Issues

  • Ensure ngrok installed and authenticated
  • Check firewall settings
  • Try different port if 3000 blocked

claude.ai Connection Failed

  • Verify URL includes /mcp endpoint
  • Check CORS settings in server
  • Ensure server is running

Authentication Errors

  • Verify contract address configured
  • Check chain ID matches (1223953)
  • Ensure RPC URL accessible

Generate Deployment Summary

Create a summary including:

Read the full file on GitHub · 94 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. 1mo ago First seen · 94 lines · 12 tokens per session scan A 37d5da7aece7

Subscribe to this mod's changes

deploy-local is a command published in the GitHub repository Matt-Dionis/claude-code-configs (619 stars, last pushed 1y ago), licensed MIT. It adds 12 tokens to every session and 584 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.