How emarco177/mcp-crash-course works
1. Repository purpose
- This is primarily a teaching repository, not a single production application.
- Its goal is to demonstrate Model Context Protocol (MCP) concepts through hands-on examples and guided history across branches.
2. Core organizational model
- The main architectural boundary is branch-based lessons.
- Each project/* branch represents one MCP topic, and the commit history inside that branch is the learning path.
- That means the repo’s “architecture” is more about curriculum structure than runtime services.
3. Top-level runtime footprint
- The repository is intentionally small at the root: server.py, pyproject.toml, uv.lock, Dockerfile, and static/.
- This suggests a minimal Python-based example server plus supporting assets and deployment scaffolding.
4. Python application entrypoint
- server.py is the most likely primary executable entrypoint for the examples.
- In an MCP course repo, this typically hosts the server-side MCP implementation that Claude Desktop or another MCP client connects to.
- Since there is only one obvious Python file at the root, the examples are likely centered around a single service process per lesson branch.
5. Dependency and environment management
- pyproject.toml and uv.lock indicate the project uses modern Python packaging with uv for dependency resolution and reproducible installs.
- .python-version pins the expected Python runtime, aligning with the README’s stated requirement of Python 3.10+.
- These files define the execution environment boundary for all lessons.
6. Containerization layer
- The presence of a Dockerfile indicates the examples can be run in a containerized environment.
- This matters architecturally because the repo supports both local Python execution and Docker-based packaging, especially relevant for MCP deployment lessons such as project/docker-mcp.
7. Static assets
- static/ holds non-code assets, including the demo GIF referenced in the README.
- This is a separate content boundary from the MCP implementation itself; it supports documentation and presentation rather than protocol behavior.
8. Documentation as a first-class component
- README.md is a major part of the repository’s architecture because it explains the branch workflow, prerequisites, and lesson structure.
- The repo is designed for stepwise exploration, so documentation is not ancillary—it is part of the learning system.
9. MCP lesson themes represented by branches
- The README explicitly calls out topic branches for:
- project/sse for Server-Sent Events transport
- project/langchain-mcp-adapters for adapter integration
- project/docker-mcp for containerization
- project/prompts for MCP prompts via FastMCP 2.0
- These branches represent distinct architectural concerns: transport, integration, packaging, and protocol features.
10. External ecosystem boundaries
- The repo is built around MCP clients and tooling such as Claude Desktop, plus the broader LLM application ecosystem.
- That means the main integration boundary is between the Python MCP server and an external agent/client that consumes tools, prompts, or SSE streams.
11. What is not present in the root
- There is no evidence of a multi-service backend, database layer, frontend app, or queueing system in the root tree.
- So the architecture is intentionally narrow: one Python example server, optional containerization, and tutorial assets, with feature complexity introduced per branch.
12. How to diagram this repo
- A good architecture diagram would show:
- The repo as a course scaffold
- Branches as separate lesson tracks
- server.py as the Python MCP server entrypoint
- pyproject.toml / uv.lock / .python-version as the environment definition
- Dockerfile as the container boundary
- static/ and README.md as supporting documentation/media
- An external MCP client such as Claude Desktop connecting to the server
Main entry points: README.md README · server.py Server · Dockerfile Docker build · static Static assets
Components 15
Repository scaffold
Top-level teaching repo structure and orientation
- Course repo · The repository as a curriculum-oriented MCP crash course
Python runtime
Minimal MCP server implementation and its execution environment
- Server · Primary Python entrypoint for the example MCP service
server.py - Python deps · Project metadata and dependency definition
pyproject.toml - Lockfile · Reproducible Python dependency resolution
uv.lock - Python version · Pinned Python interpreter version for the course
.python-version - Docker build · Container packaging and runtime boundary
Dockerfile
Lesson branches
Branch-based topic tracks used for guided exploration
- SSE lesson · Lesson branch for Server-Sent Events transport
- Adapters lesson · Lesson branch for LangChain MCP adapter integration
- Docker lesson · Lesson branch for containerized MCP deployment
- Prompts lesson · Lesson branch for FastMCP prompts and protocol features
Support assets
Documentation and static content that support the lessons
- README · Explains the course structure, prerequisites, and branch workflow
README.md - License · Repository licensing information
LICENSE - Static assets · Non-code assets used by the documentation and demos
static
External ecosystem
Clients and tooling that connect to the MCP server
- MCP client · External agent or desktop client that connects to the server
- MCP tools · Broader MCP and LLM tooling ecosystem used by the lessons
Connections 20
- Course repo → README: documents · README explains the course structure and branch workflow
- Course repo → Server: contains · Primary Python entrypoint in the repository
- Course repo → Python deps: defines · Project metadata and dependencies
- Course repo → Lockfile: pins · Reproducible dependency resolution
- Course repo → Python version: pins · Interpreter version expected by the course
- Course repo → Docker build: packages · Container build for local or deployed execution
- Course repo → Static assets: ships · Presentation and demo assets
- Course repo → License: includes · Repository licensing
- Course repo → SSE lesson: teaches · Branch-based lesson track
- Course repo → Adapters lesson: teaches · Branch-based lesson track
- Course repo → Docker lesson: teaches · Branch-based lesson track
- Course repo → Prompts lesson: teaches · Branch-based lesson track
- Server → MCP client: serves · MCP server connects to an external client
- Server → MCP tools: integrates · Server participates in the MCP ecosystem
- Docker build → Server: runs · Containerized execution centers on the Python server
- README → SSE lesson: references · Course documentation calls out the branch topic
- README → Adapters lesson: references · Course documentation calls out the branch topic
- README → Docker lesson: references · Course documentation calls out the branch topic
- README → Prompts lesson: references · Course documentation calls out the branch topic
- Static assets → README: supports · Images and media support the guide