deploying-vmcp-locally

deploying-vmcp-locally is a skill for Claude Code, Codex from stacklok/toolhive. It costs 23 tokens per session (1,163 once invoked), scanned A, original, Apache-2.0.

A local testing setup for VirtualMCPServer configurations, running in a Kind cluster. Kind is a tool that runs a small Kubernetes cluster on your computer.

In plain words
What is it for?
Creating the local cluster, applying a VirtualMCPServer YAML file, and checking whether the deployment works through Kubernetes commands.
Why use it?
It provides a repeatable local place to check a configuration before using it elsewhere. It also supports testing changes to the local operator code.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/stacklok/toolhive/deploying-vmcp-locally
Any agent
npx skills add stacklok/toolhive --skill deploying-vmcp-locally
Clone the repo
git clone --depth 1 https://github.com/stacklok/toolhive

Made for: Claude Code, Codex.

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 deploying-vmcp-locally

README.md
[![agentmods](https://agentmods.dev/badge/skills/stacklok/toolhive/deploying-vmcp-locally.svg)](https://agentmods.dev/skills/stacklok/toolhive/deploying-vmcp-locally)
Your own site
<a href="https://agentmods.dev/skills/stacklok/toolhive/deploying-vmcp-locally"><img src="https://agentmods.dev/badge/skills/stacklok/toolhive/deploying-vmcp-locally.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,163 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00023 $0.01163
Opus 5 $0.00012 $0.00581
Sonnet 5 $0.00005 $0.00233
Haiku 4.5 $0.00002 $0.00116

Measured 4d ago against content hash 870eb4c4ce17, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

deploying-vmcp-locally 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 4d 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.

curl http://localhost:<nodeport>/mcp
.claude/skills/deploying-vmcp-locally/SKILL.md · 170 lines

How it starts

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

Deploying vMCP Locally

This skill helps you deploy and test VirtualMCPServer configurations in a local Kind cluster for manual verification.

Prerequisites

Before using this skill, ensure you have:

  • Kind installed
  • kubectl installed
  • Task installed
  • Helm installed
  • A cloned copy of the toolhive repository

Instructions

1. Set up the local cluster

If no Kind cluster exists, create one with the ToolHive operator:

# From the toolhive repository root
task kind-with-toolhive-operator

This creates a Kind cluster named toolhive with:

  • Nginx ingress controller
  • ToolHive CRDs installed
  • ToolHive operator deployed

2. For development/testing with local changes

If you need to test local code changes:

# Set up cluster with e2e port mappings
task kind-setup-e2e

# Install CRDs
task operator-install-crds

# Build and deploy local operator image
task operator-deploy-local

3. Apply the VirtualMCPServer configuration

Apply the YAML configuration you want to test:

kubectl apply -f <path-to-vmcp-yaml> --kubeconfig kconfig.yaml

4. Verify deployment

Check the VirtualMCPServer status:

# List all VirtualMCPServers
kubectl get virtualmcpserver --kubeconfig kconfig.yaml

# Get detailed status
kubectl get virtualmcpserver <name> -o yaml --kubeconfig kconfig.yaml

# Check operator logs for issues
kubectl logs -n toolhive-system -l app.kubernetes.io/name=thv-operator --kubeconfig kconfig.yaml

5. Test the vMCP endpoint

For NodePort service type (useful for local testing):

# Get the NodePort
kubectl get svc vmcp-<name> -o jsonpath='{.spec.ports[0].nodePort}' --kubeconfig kconfig.yaml

# Test the endpoint (port will be on localhost when using kind-setup-e2e)
curl http://localhost:<nodeport>/mcp

For ClusterIP (default), use port-forward:

kubectl port-forward svc/vmcp-<name> 4483:4483 --kubeconfig kconfig.yaml
curl http://localhost:4483/mcp

Read the full file on GitHub · 170 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. 4d ago First seen · 170 lines · 23 tokens per session scan A 870eb4c4ce17

Subscribe to this mod's changes

deploying-vmcp-locally is a skill published in the GitHub repository stacklok/toolhive (2,069 stars, last pushed today), licensed Apache-2.0. It adds 23 tokens to every session and 1,163 once invoked, about $0.0001 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-30.