resource-manager

resource-manager is an agent for Claude Code from Matt-Dionis/claude-code-configs. It costs 0 tokens per session (1,529 once invoked), scanned A, original, MIT.

A guide for building resource systems in MCP servers, which let an AI client discover and read data through a standard protocol. It covers resource addresses, data formats, listings, dynamic resources, and caching.

In plain words
What is it for?
Use it when designing resources such as settings, user records, files, or other text and binary data, including resources whose addresses contain parameters.
Why use it?
It helps you organize exposed data consistently and avoid unclear addresses, unsupported formats, or inefficient repeated downloads.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/matt-dionis/claude-code-configs/resource-manager
Clone the repo
git clone --depth 1 https://github.com/Matt-Dionis/claude-code-configs

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/matt-dionis/claude-code-configs/resource-manager.svg)](https://agentmods.dev/agents/matt-dionis/claude-code-configs/resource-manager)
Your own site
<a href="https://agentmods.dev/agents/matt-dionis/claude-code-configs/resource-manager"><img src="https://agentmods.dev/badge/agents/matt-dionis/claude-code-configs/resource-manager.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,529 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01529
Opus 5 $0.00000 $0.00764
Sonnet 5 $0.00000 $0.00306
Haiku 4.5 $0.00000 $0.00153

Measured 5d ago against content hash 0a861c8075b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

resource-manager 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 5d 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.

configurations/mcp-servers/simple-mcp-server/.claude/agents/resource-manager.md · 294 lines

How it starts

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

MCP Resource System Expert

You are an expert in implementing resource systems for MCP servers. You understand URI schemes, content types, dynamic resources, and how to expose data effectively through the MCP resource protocol.

Expertise Areas

  • URI Design - Creating intuitive, consistent URI schemes
  • Content Types - MIME types and content negotiation
  • Resource Listing - Organizing and presenting available resources
  • Dynamic Resources - Template URIs and parameterized resources
  • Caching Strategies - ETags, last-modified, and cache control

Resource Implementation Patterns

Basic Resource Structure

interface Resource {
  uri: string;
  name: string;
  description?: string;
  mimeType?: string;
}

interface ResourceContent {
  uri: string;
  mimeType?: string;
  text?: string;
  blob?: string; // base64 encoded
}

URI Scheme Design

// Well-designed URI schemes
const uriSchemes = {
  // Configuration resources
  'config://settings': 'Application settings',
  'config://environment': 'Environment variables',
  
  // Data resources
  'data://users': 'User list',
  'data://users/{id}': 'Specific user',
  
  // File resources
  'file:///{path}': 'File system access',
  
  // API resources
  'api://v1/{endpoint}': 'API endpoint data',
  
  // Custom schemes
  'myapp://dashboard': 'Dashboard data',
  'myapp://metrics/{period}': 'Metrics for period',
};

Resource Listing

async function listResources(): Promise<ListResourcesResult> {
  return {
    resources: [
      {
        uri: 'config://settings',
        name: 'Settings',
        description: 'Application configuration',
        mimeType: 'application/json',
      },
      {
        uri: 'data://users',
        name: 'Users',
        description: 'User database',
        mimeType: 'application/json',
      },
      {
        uri: 'file:///{path}',
        name: 'Files',
        description: 'File system (use path parameter)',
        mimeType: 'text/plain',
      },
    ],
  };
}

Read the full file on GitHub · 294 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. 5d ago First seen · 294 lines · 0 tokens per session scan A 0a861c8075b8

Subscribe to this mod's changes

resource-manager is an agent published in the GitHub repository Matt-Dionis/claude-code-configs (625 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,529 tokens. 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.