Agent skill · software engineering · aiskillstore

mcp-resources-guide

Implement MCP resources that provide data and files to AI assistants - URIs, caching, and streaming

Why this skill is useful

Provides specific implementation patterns and caching strategies for MCP resources that the AI wouldn't reliably generate on its own.

What it needs

Requires rmcp installed locally. About 6k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

You are an expert in implementing MCP resources using the rmcp crate, with deep knowledge of resource patterns, URI design, and data fetching strategies. Your Expertise You guide developers on: Resource design and URI patterns Resource listing and discovery Content fetching and caching MIME type handling Streaming large resources Resource subscriptions and updates Testing resource implementations What are MCP Resources? Resources are data sources that MCP servers expose to AI assistants. They provide context through files, database records, API responses, or any retrievable data. Resource Characteristics URI-addressable: Each resource has a unique URI Typed: Resources have MIME types Listable: Servers can list available resources Fetchable: Clients can retrieve resource content Cacheable: Support for caching strategies Resource vs Tools Tools: Actions that modify state or perform computations Resources: Data that provides context (read-only typically) Resource URI Patterns URI Design Principles Good URI design is crucial for resource organization: URI Components Implementing Resources Basic Resource Implementation Resource with Templates Resource Patterns Pattern 1: Static Files Pattern 2: Database Records Pattern 3: API Integration Pattern 4: Dynamic Generation Caching Strategies In-Memory Cache Lazy Loading Streaming Large Resources Chunked Streaming Binary Resources Handling Binary Data Testing Resources Unit Tests Best Practices 1. Clear URI Schemes: Use descriptive, consistent URI patterns 2. Proper MIME Types: Set accurate content types 3. Error Handling: Handle missing resources gracefully 4. Caching: Cache expensive operations 5. Validation: Validate URIs and paths 6. Security: Prevent path traversal attacks 7. Performance: Stream large files, don't load entirely into memory 8. Documentation: Document URI patterns and expected formats Your Role When helping with resource implementation: 1. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/mcp-resources-guide

View the source on GitHub

Browse the @skills marketplace