mcp-server-scaffold

mcp-server-scaffold is a skill for Claude Code from jpantsjoha/ai-native-developer-experience. It costs 53 tokens per session (794 once invoked), scanned A, original, Apache-2.0.

A guide for designing an MCP server, a service that gives an agent a controlled list of tools to use. It defines what each tool accepts, returns, changes, and requires for access.

In plain words
What is it for?
Adding or reviewing MCP servers, choosing which capabilities an agent may use, and checking for excessive scope or security gaps.
Why use it?
It prevents an agent from receiving broader access to systems than it needs and makes the boundary easier to review.

Skill for Claude Code

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

Part of the join-the-team plugin — 21 skills, 3 commands, 1 hook shipped together

Good fit Adding or reviewing MCP servers, choosing which capabilities an agent may use, and checking for excessive scope or security gaps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jpantsjoha/ai-native-developer-experience/mcp-server-scaffold
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 jpantsjoha/ai-native-developer-experience --skill mcp-server-scaffold
Clone the repo
git clone --depth 1 https://github.com/jpantsjoha/ai-native-developer-experience

Made for: Claude Code.

Or install join-the-team, the plugin that ships this one along with the rest of its 21 skills, 3 commands, 1 hook.

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 mcp-server-scaffold

README.md
[![agentmods](https://agentmods.dev/badge/skills/jpantsjoha/ai-native-developer-experience/mcp-server-scaffold.svg)](https://agentmods.dev/skills/jpantsjoha/ai-native-developer-experience/mcp-server-scaffold)
Your own site
<a href="https://agentmods.dev/skills/jpantsjoha/ai-native-developer-experience/mcp-server-scaffold"><img src="https://agentmods.dev/badge/skills/jpantsjoha/ai-native-developer-experience/mcp-server-scaffold.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 794 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.00053 $0.00794
Opus 5 $0.00026 $0.00397
Sonnet 5 $0.00011 $0.00159
Haiku 4.5 $0.00005 $0.00079

Measured 8d ago against content hash 3fbfb9ab7c18, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

mcp-server-scaffold 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 8d 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.

skills/mcp-server-scaffold/SKILL.md · 68 lines

How it starts

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

MCP Server Scaffold

Agents call tools. Tools call infrastructure. This boundary is the governance seam. Do not collapse it.

An MCP server is a contract between an agent and the capabilities it is allowed to use. Its value is not in what it exposes — it is in what it deliberately withholds.

When to use

  • Adding a new MCP server to an agent system
  • Reviewing an existing MCP server for scope creep or security gaps
  • Deciding which capabilities to expose to an agent (and which to explicitly deny)
  • Governing an agent that has been given "too much access"

Procedure

  1. Define the tool seam — before writing any server code, list:

    • What capabilities does the agent legitimately need?
    • What capabilities does the underlying system have that the agent must NOT access?
    • What is the minimum viable tool surface?
  2. Author the tool manifest — for each tool:

    Tool: <name>
    Description: <one sentence — what it does and when to call it>
    Input schema: <typed fields with constraints>
    Output schema: <typed fields>
    Side effects: <what it changes in the world — none / read-only / write / external-call>
    Auth required: <yes/no and mechanism>
    Rate limit: <calls/minute or none>
    
  3. Enforce least-privilege at the server — the MCP server holds the credentials and enforces the scope. The agent receives only the tool interface. Key rules:

    • Read tools and write tools are separate, explicitly named operations.
    • No tool exposes raw SQL, raw shell execution, or raw filesystem access.
    • No tool accepts arbitrary code or query strings from the agent without validation.
  4. Add input validation at the boundary — every tool validates its inputs before executing. Reject malformed inputs with a structured error, not an exception trace.

  5. Log every tool invocation — at minimum: tool name, caller identity, input summary (no secrets), output summary, timestamp, and latency. These logs are your audit trail.

  6. Test the refusal surface — confirm that:

    • A call to a non-existent tool returns a clean error, not a server crash.
    • An out-of-scope request (e.g. an agent trying to read data it is not authorised for) is rejected with a clear error.
    • Invalid inputs are rejected before any side effect occurs.

Read the full file on GitHub · 68 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. 8d ago First seen · 68 lines · 53 tokens per session scan A 3fbfb9ab7c18

Subscribe to this mod's changes

mcp-server-scaffold is a skill published in the GitHub repository jpantsjoha/ai-native-developer-experience (11 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 53 tokens to every session and 794 once invoked, about $0.0003 per session on Opus 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-08-30.

Related

Other skills, from other repositories

diagnose-backend-bug

Diagnose a bounded backend or multi-service failure from GitHub Issues, Jira, Aone, user-provided exports, logs, traces, responses, stack traces, or job records. Use when a service, API, RPC, worker, queue, CLI, or scheduled job bug needs correlation through the project's existing observability route before repair; do…

QoderAI/better-harness · 87 tokens

openloomi-api

OpenLoomi ships a local-first HTTP API served from the desktop app (port 3414, fallback 3515). All auth, Memory, AI, RAG, Loop, and Audit data live in a local SQLite database — your data stays on your machine and the OpenLoomi app is the source of truth. The only externally-routed auth path is the Composio OAuth…

melandlabs/openloomi · 106 tokens

openloomi-connectors

OpenLoomi Connectors handle two directions: pulling Signals in from your authorized platforms and pushing approved Actions back out through the same channel. OpenLoomi ships them through two layers.

melandlabs/openloomi · 113 tokens

architecture

Greenfield architecture design: map functionality flows, draw components, design APIs, classify dependencies, plan observability. For multi-component, API, schema, auth, or integration-heavy work. For retrofitting existing code, use codebase-hygiene instead.

romiluz13/cc10x · 56 tokens

solo-sgr

Use when "design schemas", "structured output", "agent loop", "SGR", "constrained decoding", "tool dispatch", "Pydantic schema for LLM", or need to design a schema-guided reasoning pipeline for an agent or API. Do NOT use for general code review (/review) or planning (/plan).

fortunto2/solo-factory · 71 tokens

claude-api

Provides code patterns for the Anthropic Claude API including streaming, tool use, and prompt caching. Use when working with Anthropic SDK files or when the user mentions Claude API, Anthropic client, or LLM integration.

tranhieutt/software_development_department · 48 tokens