Learn Everything

Paths/AI Engineer/Model Context Protocol / Clients, Resources & Discovery

Challengeadvancedubuntu:24.04Ask AI

Publish a Resource Catalog

Resources are read-only context - policies, schemas, runbooks. Publish a catalog so the model knows what it may read, and how each item is typed.

Validator

⏱ 0:00

IDLE — checks run live as you type commands; submit when done

01Requirements

live checks
  • File ~/mcp/resources.json exists○
  • The catalog lists resources with a uri○
  • Every resource declares a name and a mimeType○

02Walkthrough

1 of 3 revealed
  1. 01

    Write the resource catalog

    uri is the address the client reads from, name is the human label, mimeType tells the client how to interpret the bytes.

    echo '{"resources": [{"uri": "docs://policy/support", "name": "Support policy", "mimeType": "text/markdown"}, {"uri": "docs://schema/ticket", "name": "Ticket schema", "mimeType": "application/json"}]}' > ~/mcp/resources.json
  2. 2 locked · each failed submit reveals one

03Stuck?

0 of 3 revealed

Take a hint without losing the lab — each one points at the thing to look at, not at the answer.

04AI Tutor

guides, never solves

Tell me what you're stuck on — I'll nudge, not solve. Which requirement are you looking at?

04Notebook

saved locally in this browser

learner@lab — ubuntu:24.04

↑/↓ recalls commands · Ctrl+Enter submits · type help for the command list