Phase 2 outline

Module 06 of 08 · Outline

Model Context Protocol — Architecture & Custom Servers

Build MCP tools, resources, prompts, transports, validation, and access controls.

Learning outcome: A server implementation, tool schemas, and access tests.

Lesson outline

Lesson 6.1

Protocol architecture

  • Client, host, and server responsibilities
  • Capability negotiation and lifecycle
  • Tools, resources, and prompts

Lesson 6.2

Server implementation

  • Typed tool schemas and validation
  • Resource URIs and prompt templates
  • Local and HTTP transport choices

Lesson 6.3

Access protection

  • Caller authentication and authorization
  • Scoped data access and secrets
  • Malformed requests and error responses

Practice assignment

Create a project-documentation MCP server

  1. Expose a read-only search tool and a documentation resource.
  2. Validate all arguments and scope data access.
  3. Test unauthorized and malformed requests.

Deliverable: A server implementation, tool schemas, and access tests.

Independent practice · no submission or grading

Reference reading