mcp-resource-patterns

mcp-resource-patterns is a skill for Claude Code from latestaiagents/agent-skills. It costs 90 tokens per session (1,260 once invoked), scanned A, original, MIT.

A guide to exposing read-only, addressable data through MCP resources. MCP, or Model Context Protocol, lets AI clients access tools and structured context through a standard interface.

In plain words
What is it for?
Use it to expose files, tickets, logs, or live-updating data with clear URI patterns and subscriptions.
Why use it?
It helps you choose correctly between a resource, a tool, and a prompt so clients can access data without unnecessary actions or side effects.

Skill for Claude Code

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

Part of the mcp-mastery plugin — 7 skills shipped together , and of latestaiagents

Good fit Use it to expose files, tickets, logs, or live-updating data with clear URI patterns and subscriptions.

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

Made for: Claude Code.

Or install mcp-mastery, the plugin that ships this one along with the rest of its 7 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/mcp-resource-patterns"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/mcp-resource-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,260 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.00090 $0.01260
Opus 5 $0.00045 $0.00630
Sonnet 5 $0.00018 $0.00252
Haiku 4.5 $0.00009 $0.00126

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

Security

Grade A, and why

mcp-resource-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-mastery/mcp-resource-patterns/SKILL.md · 153 lines

How it starts

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

MCP Resource Patterns

Resources are read-only, URI-addressable data. Get them right and your server feels like a filesystem the agent can browse.

When to Use

  • Deciding whether a read operation should be a tool or a resource
  • Exposing hierarchical data (files, tickets, logs) to an agent
  • Implementing live-updating data via subscriptions
  • Designing URI schemes for a new MCP server

Tool vs Resource vs Prompt

Aspect Tool Resource Prompt
Invocation Agent calls it Agent reads it User selects it
Side effects Allowed No No
Addressing Name + args URI Name
Result Agent-chosen User/agent-attached Template expansion
Example create_issue github://issues/123 /summarize-pr

Rule of thumb: if the agent needs to decide whether to read it, it's a tool. If the user or agent needs to attach specific known data to context, it's a resource.

Static Resources

server.resource(
  "changelog",
  "file://changelog.md",
  async () => ({
    contents: [{
      uri: "file://changelog.md",
      mimeType: "text/markdown",
      text: await fs.readFile("CHANGELOG.md", "utf-8"),
    }],
  }),
);

Templated Resources

Use URI templates (RFC 6570) for addressable collections:

server.resource(
  "issue",
  "github://repos/{owner}/{repo}/issues/{number}",
  async (uri, { owner, repo, number }) => {
    const issue = await gh.issues.get({ owner, repo, issue_number: +number });
    return {
      contents: [{
        uri: uri.href,
        mimeType: "application/json",
        text: JSON.stringify(issue.data),
      }],
    };
  },
);

The client auto-discovers the template and can fetch any matching URI.

Listing Resources

server.setRequestHandler(ListResourcesRequestSchema, async () => ({
  resources: [
    { uri: "github://repos/acme/api/issues", name: "Open issues", mimeType: "application/json" },
    { uri: "github://repos/acme/api/prs", name: "Open PRs", mimeType: "application/json" },
  ],
}));

Read the full file on GitHub · 153 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 · 153 lines · 90 tokens per session scan A 980e420761f7

Subscribe to this mod's changes

mcp-resource-patterns is a skill published in the GitHub repository latestaiagents/agent-skills (5 stars, last pushed 4mo ago), licensed MIT. It adds 90 tokens to every session and 1,260 once invoked, about $0.0005 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

fw-ai-actions-app

Expert-level skill for AI Actions and integrations on Freshworks Platform 3.0. Use when (1) Creating actions.json and SMI functions (flat request, nested response), (2) Request templates and third-party API integration, (3) Pre-build validation (pricing, paywalls, account prerequisites), (4) Failure-case validation…

freshworks-developers/fw-dev-tools · 123 tokens

agent-raft-manager

Agent skill for raft-manager - invoke with $agent-raft-manager.

ruvnet/ruflo · 18 tokens

moai-ref-api-patterns

REST/GraphQL API design patterns, error handling conventions, and input validation reference for backend development. Agent-extending skill that amplifies backend domain work (spawned via Agent(general-purpose) with backend instructions) with production-grade API patterns. Use when designing APIs, implementing…

modu-ai/moai-adk · 85 tokens

multi-app-orchestration

Orchestrate workflows across multiple applications and APIs — inter-app coordination, data handoff, and multi-system task completion.

a5c-ai/babysitter · 30 tokens

api-documenter

Auto-generate API documentation from code and comments. Use when API endpoints change, or user mentions API docs. Creates OpenAPI/Swagger specs from code. Triggers on API file changes, documentation requests, endpoint additions.

alirezarezvani/claude-code-tresor · 48 tokens

sinch-porting-api

Port phone numbers from other carriers into Sinch with the Porting API. Automates port-in order creation, portability checks, order tracking, on-demand activation, and webhook notifications. Use when porting numbers, checking portability, creating port-in orders, tracking port status, activating ported numbers…

sinch/skills · 76 tokens