How anshlambagit/mcp_masterclass works
This repository is a hands-on MCP masterclass, progressing from local servers and clients through HTTP, third-party integrations, a packaged tool server, and gateways. Its main workflow is a client discovering or invoking tools exposed by an MCP server; gateway examples aggregate tools from external servers and expose them over HTTP. The PyPI package implements terminal and file tools. The Docker chapter repeats the gateway pattern for container deployment. Some chapter capabilities are README-documented but their source was not sampled, so those links are cited to the README or left unverified.
Main entry points: app/gateway.py Container Gateway · 2_langchain_client.py Multi-Transport Client · CH-5_MCP_Gateway/gateway.py MCP Gateway · 1_first_mcpserver_stdio.py Stdio Server
Components 18
MCP Foundations
- Stdio Server
CH-1_CreateMCP/1_first_mcpserver_stdio.py - Python Client
CH-1_CreateMCP/2_python_client.py - LangChain Client
CH-1_CreateMCP/3_langchain_client.py - HTTP Server
CH-2_HTTP_MCP/1_http_mcp.py - Multi-Transport Client
CH-2_HTTP_MCP/2_langchain_client.py
Tool Integrations
- Community MCP Client
CH-3_3rdParty_MCPs/community_mcp.py - DuckDuckGo MCP
- Tavily Search
CH-3_3rdParty_MCPs/tavily_mcp.py
Packaged Tools
- Package Test Runner
CH-4_PyPI_MCP/1_test_package.py - Package Client
CH-4_PyPI_MCP/2_client.py - Terminal Tools
MCP_PYPI/src/agentic_terminal/tools.py - Stdio Entry Point
MCP_PYPI/src/agentic_terminal/main.py
Gateway Deployment
- MCP Gateway
CH-5_MCP_Gateway/gateway.py - Container Gateway
CH-6_MCP_Docker/app/gateway.py - DuckDuckGo Server
- Agentic Terminal Server
- Container Runtime
Other components
- Developer
Connections 20
- Developer → Python Client: runs
README.md - Developer → LangChain Client: runs
README.md - Developer → Multi-Transport Client: runs
README.md - Developer → Community MCP Client: runs
README.md - Python Client → Stdio Server: calls tools
CH-1_CreateMCP/2_python_client.py - LangChain Client → Stdio Server: discovers tools
CH-1_CreateMCP/3_langchain_client.py - Multi-Transport Client → Stdio Server: configures stdio
CH-2_HTTP_MCP/2_langchain_client.py - Multi-Transport Client → HTTP Server: connects HTTP
CH-2_HTTP_MCP/2_langchain_client.py - Community MCP Client → DuckDuckGo MCP: invokes tools
CH-3_3rdParty_MCPs/community_mcp.py - Developer → Tavily Search: learns integration
README.md - Package Test Runner → Terminal Tools: runs server
CH-4_PyPI_MCP/1_test_package.py - Stdio Entry Point → Terminal Tools: starts tools
MCP_PYPI/src/agentic_terminal/main.py - Package Client → Terminal Tools: connects package
README.md - Developer → MCP Gateway: runs gateway
README.md - MCP Gateway → DuckDuckGo Server: proxies tools
CH-5_MCP_Gateway/gateway.py - MCP Gateway → Agentic Terminal Server: proxies tools
CH-5_MCP_Gateway/gateway.py - Developer → Container Gateway: deploys gateway
README.md - Container Gateway → DuckDuckGo Server: proxies tools
CH-6_MCP_Docker/app/gateway.py - Container Gateway → Agentic Terminal Server: proxies tools
CH-6_MCP_Docker/app/gateway.py - Container Runtime → Container Gateway: hosts