MCP Course Five: Resources and Prompts: Giving Context Safely

Offer documents and prompt templates to AI applications without leaking files, secrets or oversized content.

⏰ 1 weeks🎯 Standard🧩 Capstone🖥 Any device · our GPUs
Generated from this course

🎯 About this course

Offer documents and prompt templates to AI applications without leaking files, secrets or oversized content. Every lesson has a short reading, a video of at most five minutes and hands-on exercises that run in your browser; the lab is checked by tests and the course ends with a gamified quiz with sounds, badges and feedback. Practice runs on plain Python and test messages: there is no real AI model or MCP library in the labs.

By the end you will be able to

  • Describe resources with URIs and describe families of them with templates.
  • Apply checks that block path traversal, redact secrets and cap output size.
  • Apply safe prompt templates and embed a resource in a prompt.
  • Write a context server that passes nine tests.
Curriculum

Topics covered

Resources and Prompts: Giving Context Safely 4 topics

  • Lesson 1: Resources in depth, URIs, templates and content types
    Name resources with URIs, describe families with templates and return text or blobs.
  • Lesson 2: Giving context safely
    Path traversal, secrets and huge outputs, and the checks that stop them.
  • Lesson 3: Prompts in depth, arguments and embedded resources
    Fill templates, reject missing arguments and embed a resource in a prompt.
  • Lab: A resource and prompt server that does not leak
    Resources, a template, safe reads and a prompt that embeds a document: nine tests.
Course at a glance

See how this course is built

Where the time goes

Longer spokes mean more hours on that module.

Course roadmap click a step

Try a lesson0 / 3

Sample questions from this course. Your progress is kept only in your browser.

Week by week

Drag the slider, or press play, to walk through the course and see what you will have built by each week.

Week 1 of 1
Wk 1

Self-paced

About 90 minutes: lessons with short videos, one lab and a quiz. Work at your own pace.

What you'll build

A safe resource and prompt server

A Python file whose `handle` serves documents and a review prompt with path, secret and size protection.

Why take this course

  • Learn by doing in the browser
  • Short videos, no installation
  • Checked by tests, not guesswork

You will build

  • A safe resource and prompt server

What you can do afterwards

  • Describe resources with URIs and describe families of them with templates.
  • Apply checks that block path traversal, redact secrets and cap output size.
  • Apply safe prompt templates and embed a resource in a prompt.
How to take it

💳 Delivery & fees

One course, four ways to attend. Fees are per course, in rupees excluding 18% GST (the GST-inclusive amount is shown too).Fees are per course, in Canadian dollars, before applicable GST/HST.Fees are per course, in US dollars, before any applicable local taxes. Bulk and institutional volume pricing is available.

Self-paced

₹21,500

+ 18% GST · ₹25,370 all-in

Buy this course

CA$350

per course, before applicable GST/HST

Buy this course

US$250

per course, before any applicable local taxes

Buy this course

  • Full recorded library
  • Browser GPU lab
  • All project briefs
  • Mentor review add-on

Bulk and institutional pricing. Volume discounts are available for institutions, campuses, companies and groups enrolling several learners. Ask for a group quote →

Your fee includes our GPU lab infrastructure — no cloud credits to buy. See how we compare, with sources →

Ready when you are

Apply for this course

Tell us the format you prefer and we'll confirm the next cohort date and your fee on a short call.

Apply for this course