mcp-agent-patterns

mcp-agent-patterns is a skill for Claude Code, Codex from VoDaiLocz/kilo-kit-mcp. It costs 44 tokens per session (828 once invoked), scanned A, original, Apache-2.0.

Design guidance for the Model Context Protocol (MCP), a standard way for AI applications to use external tools and data. It covers MCP servers, clients, tools, resources, prompts, and advanced connection patterns.

In plain words
What is it for?
Use it when building or connecting MCP servers and clients to services such as APIs, databases, or file systems. It helps with tool discovery, delayed tool loading, real-time resources, and server-to-client model requests.
Why use it?
It helps you structure MCP integrations and avoid loading too many tools or too much data into an AI model at once. It also addresses synchronization, multiple-server setups, and isolated execution.

Skill for Claude CodeCodex

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

Good fit Use it when building or connecting MCP servers and clients to services such as APIs, databases, or file systems. It helps with tool discovery, delayed tool loading, real-time resources, and server-to-client model requests.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/vodailocz/kilo-kit-mcp/mcp-agent-patterns"><img src="https://agentmods.dev/badge/skills/vodailocz/kilo-kit-mcp/mcp-agent-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 828 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00044 $0.00828
Opus 5 $0.00022 $0.00414
Sonnet 5 $0.00009 $0.00166
Haiku 4.5 $0.00004 $0.00083

Measured yesterday against content hash 4d2b9fd612d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

mcp-agent-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 yesterday.

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/agent-frameworks/mcp-agent-patterns/SKILL.md · 66 lines

How it starts

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

MCP Agent Patterns (Model Context Protocol)

Overview

The Model Context Protocol (MCP) provides a standardized way for AI agents to interact with external tools, data resources, and environments. This skill defines architectural patterns and implementation best practices for building, connecting, and optimizing MCP-based systems within the KILO-KIT ecosystem.

When To Use

  • Implementing custom MCP servers or clients.
  • Integrating external services (APIs, DBs, filesystems) as MCP servers.
  • Optimizing context windows when dealing with large tool catalogs.
  • Implementing real-time resource synchronization or complex multi-server orchestrations.
  • Security-critical integrations requiring isolated execution environments.

Core MCP Concepts

  • Tools: Executable functions exposed to the LLM.
  • Resources: Data sources that can be read by the LLM (e.g., file contents, database records).
  • Prompts: Reusable templates or workflows designed to be used by the LLM.
  • Sampling: A protocol allowing an MCP server to request the host client to perform LLM inference on its behalf, enabling agentic tool behavior.

Advanced Patterns

Dynamic Tool Catalog & Progressive Loading

To prevent token bloat:

  1. Manifest Exposure: Expose only essential, high-level tool definitions initially.
  2. On-Demand Loading: Load detailed JSON Schemas only when a tool is selected or explicitly requested by the agent context.

MCP Sampling Protocol

When a server needs LLM intelligence (e.g., parsing unstructured output or making a decision):

  • The server issues a sampling/createMessage request to the client.
  • The client acts as the host/gateway, maintaining control over the model selection and cost.

Resource Streaming & Subscriptions

  • Use URI Templates (res://server/type/{id}) to create flexible resource paths.
  • Implement Resource Subscriptions to push data updates from the server to the client without polling.

Eager vs Lazy Tool Registration

  • Eager: Best for small sets of essential core tools (zero-latency startup).
  • Lazy: Mandatory for large or dynamic catalogs to keep initial prompts lean.

Read the full file on GitHub · 66 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. yesterday Changed 4d2b9fd612d8
  2. 9d ago First seen · 66 lines · 44 tokens per session scan A a2fed8d178fc

Subscribe to this mod's changes

mcp-agent-patterns is a skill published in the GitHub repository VoDaiLocz/kilo-kit-mcp (26 stars, last pushed yesterday), licensed Apache-2.0. It adds 44 tokens to every session and 828 once invoked, about $0.0002 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

llm-structured-output

Get reliable JSON, enums, and typed objects from LLMs using responseformat, tooluse, and schema-constrained decoding across OpenAI, Anthropic, and Google APIs.

hybridlabor-api/bdb-dev-optimized-agent-skills · 42 tokens

drizzle-orm-expert

Expert in Drizzle ORM for TypeScript — schema design, relational queries, migrations, and serverless database integration. Use when building type-safe database layers with Drizzle.

hybridlabor-api/bdb-dev-optimized-agent-skills · 41 tokens

landing-page-generator

Generates high-converting Next.js/React landing pages with Tailwind CSS. Uses PAS, AIDA, and BAB frameworks for optimized copy/components (Heroes, Features, Pricing). Focuses on Core Web Vitals/SEO.

hybridlabor-api/bdb-dev-optimized-agent-skills · 50 tokens

tdmcp-pipeline

Orchestrates the tdmcp feature team end-to-end: design/wireframe → build → integrate → QA → release. Use whenever the user wants to build, implement, develop, ship, or add one or more tdmcp features/tools/effects/controls/AI-prompts for TouchDesigner, or to run them through a coordinated design→develop→QA→deploy…

hybridlabor-api/bdb-dev-optimized-agent-skills · 128 tokens

memb-skill

BDB local-first long-term memory engine (memB). Use when querying, remembering, or adapting preferences, code architectures, and developer patterns across tasks.

hybridlabor-api/bdb-dev-optimized-agent-skills · 36 tokens

startcycle-graph-user

Use when a task needs a small, throwaway multi-agent fan-out (a couple of parallel workers plus a review pass) in ANY project, without the full /startcycle-graph contract — no .agents/graph.md bootstrap, no state.json schema, no persistent files. Model-tiered by role (opus plan, sonnet review, haiku or an external CLI…

hybridlabor-api/bdb-dev-optimized-agent-skills · 102 tokens