This repository is for hands-on learning, demos, and experiments with the Model Context Protocol (MCP), a standard for passing context and enabling secure/structured LLM integrations.
-
mcp-remote-demo/- Contains a Python virtual environment and installed MCP packages (such as
mcp,pywin32,adodbapi, and others). - Vendor code includes examples and class implementations for MCP servers and clients, protocol features, and authentication. (See the
mcp/server,mcp/client, and related modules under.venv/Lib/site-packages/mcp/.) - You will find code for:
- Setting up & running MCP servers (see classes like
FastMCPand modules such assession.pyandrequest_context.py). - Handling server-to-client and client-to-server requests, task management, protocol versioning, and authentication.
- Experimental MCP request context and task support, validation helpers, and sample protocol implementations.
- Setting up & running MCP servers (see classes like
- Contains a Python virtual environment and installed MCP packages (such as
-
weather/- Minimal Python project that declares a dependency on
mcp[cli]andhttpxin itspyproject.toml. - Serves as an example of installing and using the MCP library in a new project.
- Minimal Python project that declares a dependency on
-
The repo demonstrates:
- Installation and local experimentation with the official MCP Python library and ecosystem tools.
- Bootstrapping MCP-enabled Python environments for running example servers, exploring client APIs, and experimenting with MCP authentication and session handling.
- Code review and exploration of internals, including examples of custom request contexts, task handling, and official core MCP concepts.
-
No custom, user-authored (non-vendor) code implementing MCP protocol servers, resources, or tools was found here—the work focuses on integrating, running, and sandboxing existing MCP Python packages and examples.
- Navigate to
weather/ormcp-remote-demo/. - Use your preferred Python environment. The MCP package is already listed as a dependency.
- Review vendor code and examples in
.venv/Lib/site-packages/mcp/for extensibility tips and hands-on protocol reference.
- MCP Documentation
- Python MCP package: https://github.com/modelcontextprotocol/python-sdk
Note: Most code under mcp-remote-demo/.venv/Lib/site-packages/ is vendor code from installed MCP and related Python packages. For specifics, see the mcp/server/experimental/request_context.py source.
Last updated: 2026-04-10. More README/search