THE DEV BENCH
🧾 JSONeasy

4. Define a resource

Define an MCP resource for an app config file: • uri: "file:///app/config.json" • name: a short human name • mimeType: "application/json"

How to approach this

A resource is read-only DATA the app can pull in for context, and it's identified by a URI (the scheme says where it lives — `file://`, `postgres://`, etc.). The client fetches it with `resources/read`. Give it a `uri` (required), a human `name`, and a `mimeType` so the client knows how to interpret the bytes. Unlike a tool, a resource takes no action — it just supplies content.

config.json