mcp-server-patterns

mcp-server-patterns is a skill for Claude Code, Codex from jxoesneon/Ciel. It costs 21 tokens per session (531 once invoked), scanned A, original, Apache-2.0.

A guide to building MCP servers, which let AI agents use defined tools, read-only resources, and reusable prompts. It covers local and remote connections, input validation, and safety checks for risky actions.

In plain words
What is it for?
Designing MCP tool schemas, implementing MCP handlers, choosing between tools and resources, validating inputs with Zod, and gating destructive operations.
Why use it?
It helps choose the right interface for a capability and reduces errors caused by loose inputs or unsafe tool behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Designing MCP tool schemas, implementing MCP handlers, choosing between tools and resources, validating inputs with Zod, and gating destructive operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jxoesneon/ciel/mcp-server-patterns
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 jxoesneon/Ciel --skill mcp-server-patterns
Clone the repo
git clone --depth 1 https://github.com/jxoesneon/Ciel

Made for: Claude Code, Codex.

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-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/jxoesneon/ciel/mcp-server-patterns/github.svg)](https://agentmods.dev/skills/jxoesneon/ciel/mcp-server-patterns)
Your own site
<a href="https://agentmods.dev/skills/jxoesneon/ciel/mcp-server-patterns"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/mcp-server-patterns/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.

agentmods 80×15 button for mcp-server-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/jxoesneon/ciel/mcp-server-patterns"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/mcp-server-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 531 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.00021 $0.00531
Opus 5 $0.00010 $0.00266
Sonnet 5 $0.00004 $0.00106
Haiku 4.5 $0.00002 $0.00053

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

Security

Grade A, and why

mcp-server-patterns 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-patterns/SKILL.md · 68 lines

What it actually says

CIEL ADAPTATION: MCP Server Patterns

This skill provides CIEL's expertise for building, maintaining, and integrating Model Context Protocol (MCP) servers.

Integration Context

Adapted from ~/.agents/skills/mcp-server-patterns/. This skill enables CIEL to extend its own capability surface by developing new MCP servers for specialized domains.

Core Concepts

  • Tools: Actionable commands (e.g., git_commit, run_query).
  • Resources: Read-only data sources (e.g., file://, api://).
  • Prompts: Reusable templates for specialized interactions.
  • Transport: stdio (local) or Streamable HTTP (remote/cloud).

Orchestration Logic

1. Capability Surface Selection

When a new capability is needed, the orchestration skill must decide:

  • Skill: For logic-heavy, multi-session agentic workflows.
  • MCP Tool: For stateless, reusable atomic actions.
  • CLI/Script: For simple automation.

2. Development Pipeline

Use the TDD skill to define tool schemas and expected outputs before implementing the MCP handler.

3. Safety & Validation

  • Use Zod for strict input validation.
  • All high-risk tools (destructive actions) must be gated by a Council of Five review before registration.
  • Ensure proper error handling to prevent raw stack traces from leaking to the model.

4. Integration

Newly built MCP servers should be registered in the MemPalace Knowledge Graph as part of CIEL's active toolset.


Original Documentation preserved at source.

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 · 21 tokens per session scan A 4d764ec17d2f

Subscribe to this mod's changes

mcp-server-patterns is a skill published in the GitHub repository jxoesneon/Ciel (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 21 tokens to every session and 531 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories

surge

Use when a user provides a PRD, spec, or detailed requirements document and needs a full project delivered through iterative expert orchestration — multi-round analyze/research/design/implement/QA cycles with convergence detection. NOT for: single-file edits, quick prototypes, simple Q&A, or tasks without a written…

carbonshow/intent-fluid · 66 tokens

ai-native-software-dev

Use when the user asks to build, change, modernize, or reconstruct non-trivial software with an AI-native workflow, including greenfield development, work in an existing codebase, or authorized reference-based product reconstruction; also use when lifecycle planning, architecture, implementation, testing, review…

carbonshow/intent-fluid · 101 tokens

Code Quality Review

Conduct a comprehensive code quality review focused on clean code, architecture, and project standards.

asap-protocol/asap-protocol · 21 tokens

redpolicy-guide

An editorial policy for turning webinar transcripts into self-contained guides. A transcript is a written record of spoken material, while a self-contained guide can be understood without watching the webinar.

mikeshu2001/content-factory · 49 tokens

write-overview

A workflow for researching and writing a review essay about a project topic when no finished source text exists. It gathers the facts, studies example essays when available and produces the article in a project output folder.

mikeshu2001/content-factory · 17 tokens

redpolicy-article

An editorial guide for writing comparison articles about services, tools, and products. It defines a consistent entry format covering the name, link, price, description, and notable features.

mikeshu2001/content-factory · 54 tokens