mcp-tool-resource-pattern SKILL.md skillA
mcp-tool-resource-pattern from a5c-ai/babysitter is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add a5c-ai/babysitter/mcp-tool-resource-pattern@git:20260601.da7723aPins git:20260601.da7723a in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- a5c-ai/babysitter
- Path
library/specializations/ai-agents-conversational/skills/mcp-tool-resource-pattern/SKILL.md- Versions recorded
- 5
- Latest version
- git:20260601.da7723a, committed Jun 1, 2026
- First version recorded
- Apr 4, 2026
- Size
- 10,509 bytes
- Repository stars
- 1,896
- License
- MIT
Implements the core MCP Apps architectural pattern where a Tool declares _meta.ui.resourceUri referencing a registered Resource. Covers registerAppTool, registerAppResource, text fallback, structuredContent, and app-only helper tools.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# mcp-tool-resource-pattern Implement the foundational Tool + Resource pattern that every MCP App requires: a Tool that returns data and references a Resource that serves the interactive UI. ## Overview Every MCP App is built on the Tool + Resource pattern: 1. **Tool** (registered via `registerAppTool`): Called by the LLM/host, returns data. Its `_meta.ui.resourceUri` tells the host which Resource provides the UI. 2. **Resource** (registered via `registerAppResource`): Serves a bundled HTML file that renders the interactive UI in a sandboxed iframe. 3. The tool passes data to the UI via `structuredContent` (available in `ontoolresult` handler). 4. The tool MUST also return a `content` array with text fallback for non-UI hosts. ## Capabilities ### registerAppTool Implementation - Register tools with `_meta.ui.resourceUri` linking to a resource - Pass data via `structuredContent` for rich UI rendering - Always include `content` array with text fallback - Configure tool input schemas via Zod ### registerAppResource Implementation - Register HTML resources with `RESOURCE_MIME_TYPE` - Serve single-file bundled HTML - Configure CSP domains in `contents[]` return …
Read the whole file at its exact version.
How to install
mdr add a5c-ai/babysitter/mcp-tool-resource-pattern@sha256:f3dc2e09d66ca2a3The line at the top of this page pins the label git:20260601.da7723a, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_ivwk4t5oqfhveuj6)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Apr 4, 2026 and Jun 1, 2026, about one every 14 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260601.da7723a latest | 2026-06-01 | da7723a | 10,509 B | A | view · diff |
| git:20260507.44b06c0 | 2026-05-07 | 44b06c0 | 10,847 B | A | view · diff |
| git:20260507.50823d8 | 2026-05-07 | 50823d8 | 10,827 B | A | view · diff |
| git:20260507.313363d | 2026-05-07 | 313363d | 10,552 B | A | view · diff |
| git:20260404.bc2ce97 | 2026-04-04 | bc2ce97 | 10,170 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (10509 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
a5c-ai/babysitter · 1,896 stars · license MIT · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_ivwk4t5oqfhveuj6 GET https://markdownregistry.com/api/v1/resolve?ref=a5c-ai/babysitter/mcp-tool-resource-pattern GET https://markdownregistry.com/api/v1/blob/f3dc2e09d66ca2a3835b0a1dbfb7dc46547b9692c8bc0f7d9224508348a1e6de
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.