본문으로 건너뛰기
cccskills
무료GitHub에 공개

mcp-server-scaffold

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.6 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Google ADK (Agent Development Kit) orchestration patterns — boundaries, agent composition, and tool seams. Trigger when designing or reviewing multi-agent systems built on ADK. Authoritative source: adk.dev.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

jpantsjoha/ai-native-developer-experience132026년 10월 16일 업데이트

JP's signature red-team pass — "how would I break this?" Argue against your own approach before proceeding. Trigger on any high-stakes decision, architecture choice, or before marking work complete.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

jpantsjoha/ai-native-developer-experience132026년 10월 16일 업데이트

Read-only SRE checkup of any GCP project: deterministic probes of the edge, Cloud Run services, 7-day error logs, Cloud Scheduler, alert policies and uptime checks, Secret Manager and IAM, the data stores and the machine's own scheduled jobs, audited into one fixed status table (LIVE / WARNING / RED / INCONCLUSIVE) with evidence, findings by severity, what could not be checked, and a single OVERALL line delivered as one notification. Parametrised by a per-project manifest, so the same routine runs on every project. Use when the operator says "cloud checkup", "SRE check", "is everything live", "what's healthy / warning / red", "any errors this week", "audit the infra", "weekly checkup", "set up the weekly checkup", before a deploy or demo, or after an incident. Cloud Run first; App Engine and GKE differ only in the serving probes.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

jpantsjoha/ai-native-developer-experience132026년 10월 16일 업데이트

Cloud guardrails for any vendor workload — Google Cloud (GCP, Vertex AI, GKE), AWS (IAM, EKS, Bedrock), Azure (Entra ID, Policy, AKS), Alibaba Cloud (RAM, mainland/international residency). Enforces identity least-privilege, mechanical policy, data boundaries, residency, cost caps, network egress and observability, with official-source validation before any claim. Trigger on any cloud infrastructure design, review, Terraform plan, or LLM/agent deployment; the-architect routes here.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

jpantsjoha/ai-native-developer-experience132026년 10월 16일 업데이트

LLM and cloud cost awareness — model tiering, token budgets, right-sizing, and when a cheaper model suffices. Trigger before finalising any architecture that calls LLMs, before scaling a workload, or when a cost estimate is needed.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

jpantsjoha/ai-native-developer-experience132026년 10월 16일 업데이트

Challenge vision alignment, value, cost, risk and operating ownership at material scope or release decisions.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

jpantsjoha/ai-native-developer-experience132026년 10월 16일 업데이트

jpantsjoha의 스킬 모두 보기

이 스킬의 문제 신고