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.
git clone --depth 1 https://github.com/Matt-Dionis/claude-code-configsWrote 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.
[](https://agentmods.dev/commands/matt-dionis/claude-code-configs/deploy)<a href="https://agentmods.dev/commands/matt-dionis/claude-code-configs/deploy"><img src="https://agentmods.dev/badge/commands/matt-dionis/claude-code-configs/deploy/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.
<a href="https://agentmods.dev/commands/matt-dionis/claude-code-configs/deploy"><img src="https://agentmods.dev/badge/commands/matt-dionis/claude-code-configs/deploy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02587 |
| Opus 5.5 | $0.00000 | $0.01035 |
| Sonnet 5.5 | $0.00000 | $0.00517 |
| Haiku 4.5 | $0.00000 | $0.00259 |
Grade A, and why
deploy 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 3mo 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
import { exec } from 'child_process'; How it starts
The opening of the file, as written. The whole thing — 376 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Deploy MCP Server
Deploys your MCP server to various platforms and registries.
Usage
/deploy [target] [options]
Targets
npm- Publish to npm registrydocker- Push to Docker registryclaude- Register with Claude Codegithub- Create GitHub release
Options
--tag- Version tag (default: from package.json)--registry- Custom registry URL--dry-run- Test deployment without publishing
Implementation
import { exec } from 'child_process';
import { promisify } from 'util';
import * as fs from 'fs/promises';
import * as path from 'path';
const execAsync = promisify(exec);
async function deployServer(
target: 'npm' | 'docker' | 'claude' | 'github',
options: {
tag?: string;
registry?: string;
dryRun?: boolean;
} = {}
) {
console.log('🚀 Deploying MCP Server');
console.log('='.repeat(50));
// Get version info
const pkg = JSON.parse(await fs.readFile('package.json', 'utf-8'));
const version = options.tag || pkg.version;
// Pre-deployment checks
await runPreDeploymentChecks(version);
// Deploy based on target
switch (target) {
case 'npm':
await deployToNpm(pkg, version, options);
break;
case 'docker':
await deployToDocker(pkg, version, options);
break;
case 'claude':
await deployToClaude(pkg, version, options);
break;
case 'github':
await deployToGitHub(pkg, version, options);
break;
}
console.log('\n✅ Deployment completed successfully!');
}
async function runPreDeploymentChecks(version: string) {
console.log('\n🔍 Running pre-deployment checks...');
// Check git status
try {
const { stdout: status } = await execAsync('git status --porcelain');
if (status.trim()) {
throw new Error('Working directory has uncommitted changes');
}
console.log(' ✅ Working directory clean');
} catch (error) {
if (error.message.includes('uncommitted')) {
throw error;
}
console.warn(' ⚠️ Git not available');
}
// Check if version tag exists
try {
await execAsync(`git rev-parse v${version}`);
console.log(` ✅ Version tag v${version} exists`);
} catch {
console.warn(` ⚠️ Version tag v${version} not found`);
console.log(' Create with: git tag v' + version);
}
// Verify build exists
const buildExists = await fs.access('dist').then(() => true).catch(() => false);
if (!buildExists) {
throw new Error('Build not found. Run /build first');
}
console.log(' ✅ Build found');
// Run tests
console.log(' Running tests...');
try {
await execAsync('npm test');
console.log(' ✅ Tests passed');
} catch {
throw new Error('Tests must pass before deployment');
}
}
async function deployToNpm(pkg: any, version: string, options: any) {
console.log(`\n📦 Deploying to npm (v${version})...`);
// Check npm authentication
try {
await execAsync('npm whoami');
console.log(' ✅ npm authenticated');
} catch {
throw new Error('Not authenticated with npm. Run: npm login');
}
// Check if version already published
try {
const { stdout } = await execAsync(`npm view ${pkg.name}@${version}`);
if (stdout) {
throw new Error(`Version ${version} already published`);
}
} catch (error) {
if (error.message.includes('already published')) {
throw error;
}
// Version not published yet (good)
}
// Update version if different
if (pkg.version !== version) {
console.log(` Updating version to ${version}...`);
await execAsync(`npm version ${version} --no-git-tag-version`);
}
// Publish package
const publishCmd = options.dryRun
? 'npm publish --dry-run'
: `npm publish ${options.registry ? `--registry ${options.registry}` : ''}`;
console.log(' Publishing to npm...');
const { stdout } = await execAsync(publishCmd);
if (options.dryRun) {
console.log(' 🧪 Dry run complete (not published)');
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.
- 3mo ago First seen · 376 lines · 0 tokens per session scan A 1a636b9279d3
deploy is a command published in the GitHub repository Matt-Dionis/claude-code-configs (619 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,587 tokens. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
deploy compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| deployMatt-Dionis/claude-code-configs | Command | 619 | 1y ago | MIT | A | 0 | Claude Code |
| checklistgithub/spec-kit | Command | 154k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 154k | today | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 154k | today | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 154k | today | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 154k | today | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 154k | today | MIT | A | 14 | Claude Code |