Skip to content
Agentmart
Submit a tool

mcp-server-scaffold

Scaffold and govern an MCP server as a bounded tool seam.

Skill by jpantsjoha

IndexedApache-2.0★ 13
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/jpantsjoha-mcp-server-scaffold

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Scaffold and govern an MCP server as a bounded tool seam. Defines which tools the agent may call, enforces the principle that agents call tools and tools call infrastructure. Trigger when adding or reviewing an MCP server in an agent system.

Use cases: backend, devops, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/mcp-server-scaffold

What's inside

Skill name
mcp-server-scaffold
Description
Scaffold and govern an MCP server as a bounded tool seam. Defines which tools the agent may call, enforces the principle that agents call tools and tools call infrastructure. Trigger when adding or reviewing an MCP server in an agent system.
License
Apache-2.0
Instructions
64 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

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

7. **Document the scope boundary** — in the MCP server's README or SKILL.md, explicitly state what the server does NOT expose and why. Scope boundaries that are not documented drift.

8. **Run the Adversarial Gate** — common MCP failure modes: overly broad tool descriptions that invite misuse, missing input validation that allows prompt injection via tool arguments, write tools with no confirmation step, no rate limiting on expensive operations.

## Outputs

- Tool manifest (one entry per tool)
- MCP server skeleton with input validation and structured error responses
- Refusal surface test cases
- Scope boundary documentation

## Guardrails

- **No raw database access through an MCP tool.** Tools call repositories or services; repositories call databases.
- **Tool descriptions are part of the attack surface.** Vague descriptions invite misuse by the agent. Be precise.
- **No secrets in tool outputs.** If a tool must return an identifier, return the identifier — not the credential.
- **Scope creep is the default failure mode.** When in doubt, add a new tool rather than broadening an existing one.

From jpantsjoha/ai-native-developer-experience, Apache-2.0.

More from jpantsjoha/ai-native-developer-experience

Signals

Stars
13
Forks
4
Open issues
2
Last commit (this folder)
Aug 7, 2026 (2 months ago)
Last release
Oct 16, 2026 (11 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from jpantsjoha

Cite this page

mcp-server-scaffold skill. Agent Mart. https://agentmart.dev/skills/jpantsjoha-mcp-server-scaffold (last updated 2026-10-24)