init

init is a command for Claude Code from Matt-Dionis/claude-code-configs. It costs 0 tokens per session (1,056 once invoked), scanned A, original, MIT.

A command that creates a new MCP server project with a basic, standard, or full starting structure. The project can include tools, resources, prompts, utilities, types, and tests.

In plain words
What is it for?
Use it to start an MCP server with the desired level of completeness, from one example tool to a project containing all supported capability areas.
Why use it?
It removes the repetitive setup needed before writing server features and supplies development, build, test, lint, and type-check scripts.

Command for Claude Code

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 commands/matt-dionis/claude-code-configs/init
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 init

README.md
[![agentmods](https://agentmods.dev/badge/commands/matt-dionis/claude-code-configs/init.svg)](https://agentmods.dev/commands/matt-dionis/claude-code-configs/init)
Your own site
<a href="https://agentmods.dev/commands/matt-dionis/claude-code-configs/init"><img src="https://agentmods.dev/badge/commands/matt-dionis/claude-code-configs/init.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,056 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00000 $0.01056
Opus 5 $0.00000 $0.00528
Sonnet 5 $0.00000 $0.00211
Haiku 4.5 $0.00000 $0.00106

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

Security

Grade A, and why

init 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 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.

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/simple-mcp-server/.claude/commands/init.md · 178 lines

How it starts

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

Initialize MCP Server Project

Sets up a new MCP server project with the specified configuration level.

Usage

/init [basic|standard|full]

Options

  • basic - Minimal server with one example tool
  • standard - Server with tools and resources (default)
  • full - Complete server with all capabilities

Implementation

async function initializeProject(level: 'basic' | 'standard' | 'full' = 'standard') {
  // Create project structure
  const dirs = [
    'src',
    'src/tools',
    'src/resources',
    'src/prompts',
    'src/utils',
    'src/types',
    'tests',
    'tests/unit',
    'tests/integration',
  ];
  
  for (const dir of dirs) {
    await fs.mkdir(dir, { recursive: true });
  }
  
  // Create package.json
  const packageJson = {
    name: 'mcp-server',
    version: '1.0.0',
    type: 'module',
    scripts: {
      'dev': 'tsx watch src/index.ts',
      'build': 'tsc',
      'start': 'node dist/index.js',
      'test': 'vitest',
      'lint': 'eslint src',
      'typecheck': 'tsc --noEmit',
    },
    dependencies: {
      '@modelcontextprotocol/sdk': '^1.0.0',
      'zod': '^3.22.0',
    },
    devDependencies: {
      '@types/node': '^20.0.0',
      'typescript': '^5.0.0',
      'tsx': '^4.0.0',
      'vitest': '^1.0.0',
      'eslint': '^8.0.0',
    },
  };
  
  await fs.writeFile('package.json', JSON.stringify(packageJson, null, 2));
  
  // Create tsconfig.json
  const tsConfig = {
    compilerOptions: {
      target: 'ES2022',
      module: 'NodeNext',
      moduleResolution: 'NodeNext',
      outDir: './dist',
      rootDir: './src',
      strict: true,
      esModuleInterop: true,
      skipLibCheck: true,
      forceConsistentCasingInFileNames: true,
    },
    include: ['src/**/*'],
    exclude: ['node_modules', 'dist'],
  };
  
  await fs.writeFile('tsconfig.json', JSON.stringify(tsConfig, null, 2));
  
  // Create main server file
  let serverContent = '';
  
  if (level === 'basic') {
    serverContent = generateBasicServer();
  } else if (level === 'standard') {
    serverContent = generateStandardServer();
  } else {
    serverContent = generateFullServer();
  }
  
  await fs.writeFile('src/index.ts', serverContent);
  
  // Install dependencies
  console.log('Installing dependencies...');
  await exec('npm install');
  
  console.log('✅ MCP server initialized successfully!');
  console.log('\nNext steps:');
  console.log('1. Run "npm run dev" to start development server');
  console.log('2. Use "/add-tool" to add custom tools');
  console.log('3. Test with MCP Inspector: npx @modelcontextprotocol/inspector');
}

function generateBasicServer(): string {
  return `
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
import {
  CallToolRequestSchema,
  ListToolsRequestSchema,
} from '@modelcontextprotocol/sdk/types.js';
import { z } from 'zod';

const server = new Server({
  name: 'my-mcp-server',
  version: '1.0.0',
}, {
  capabilities: {
    tools: {},
  },
});

// List available tools
server.setRequestHandler(ListToolsRequestSchema, async () => {
  return {
    tools: [
      {
        name: 'hello',
        description: 'Say hello to someone',
        inputSchema: {
          type: 'object',
          properties: {
            name: {
              type: 'string',
              description: 'Name to greet',
            },
          },
          required: ['name'],
        },
      },
    ],
  };
});

// Handle tool calls
server.setRequestHandler(CallToolRequestSchema, async (request) => {
  const { name, arguments: args } = request.params;
  
  if (name === 'hello') {
    const validated = z.object({
      name: z.string(),
    }).parse(args);
    
    return {
      content: [
        {
          type: 'text',
          text: \`Hello, \${validated.name}!\`,
        },
      ],
    };
  }
  
  throw new Error(\`Unknown tool: \${name}\`);
});

// Start server
const transport = new StdioServerTransport();

Read the full file on GitHub · 178 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 · 178 lines · 0 tokens per session scan A dd16aeb87ad1

Subscribe to this mod's changes

init is a command published in the GitHub repository Matt-Dionis/claude-code-configs (625 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,056 tokens. 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-08-30.