You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add initial project structure with MCP server template
- Created .gitignore to exclude Python-generated files and virtual environments.
- Added .python-version to specify Python version 3.12.
- Introduced pyproject.toml for project metadata and dependencies including httpx, mcp, starlette, and uvicorn.
- Added README.md with project overview, features, requirements, and getting started instructions.
- Implemented server.py with FastMCP server setup and example weather service integration.
- Included example weather service in protocals/example_weather.py.
- Added comprehensive MCP documentation in protocals/mcp.md.
- Created SDK documentation in protocals/sdk.md.
- Generated dependency lock file uv.lock for package management.
> Inspired by [MCP Official Tutorial](https://modelcontextprotocol.io/tutorials/building-mcp-with-llms)
4
+
5
+
## Overview
6
+
7
+
This template provides a streamlined foundation for building Model Context Protocol (MCP) servers in Python. It's designed to make AI-assisted development of MCP tools easier and more efficient.
8
+
9
+
## Features
10
+
11
+
- Ready-to-use MCP server implementation
12
+
- Configurable transport modes (stdio, SSE)
13
+
- Example weather service integration (NWS API)
14
+
- Clean, well-documented code structure
15
+
- Minimal dependencies
16
+
-**Embedded MCP specifications and documentation** for improved AI tool understanding
17
+
18
+
## Integrated MCP Documentation
19
+
20
+
This template includes comprehensive MCP documentation directly in the project:
21
+
22
+
-**Complete MCP Specification** (`protocals/mcp.md`): The full Model Context Protocol specification that defines how AI models can interact with external tools and resources. This helps AI assistants understand MCP concepts and implementation details without requiring external references.
23
+
24
+
-**Python SDK Guide** (`protocals/sdk.md`): Detailed documentation for the MCP Python SDK, making it easier for AI tools to provide accurate code suggestions and understand the library's capabilities.
25
+
26
+
-**Example Implementation** (`protocals/example_weather.py`): A practical weather service implementation demonstrating real-world MCP server patterns and best practices.
27
+
28
+
Having these resources embedded in the project enables AI coding assistants to better understand MCP concepts and provide more accurate, contextually relevant suggestions during development.
-`example_weather.py`: Example weather service implementation
113
+
-`pyproject.toml`: Project dependencies and metadata
114
+
115
+
## Understanding MCP
116
+
117
+
The Model Context Protocol (MCP) is a standardized way for AI models to interact with external tools and resources. Key concepts include:
118
+
119
+
-**Tools**: Functions that models can call to perform actions or retrieve information
120
+
-**Resources**: External data sources that models can reference
121
+
-**Transports**: Communication channels between clients and MCP servers (stdio, SSE)
122
+
-**Namespaces**: Logical groupings of related tools
123
+
124
+
This template is specifically designed to make working with MCP more accessible, with the integrated documentation helping AI tools better understand and generate appropriate code for MCP implementations.
125
+
126
+
## Learning Resources
127
+
128
+
-[MCP Official Documentation](https://modelcontextprotocol.io/docs)
129
+
-[Protocol Documentation](./protocals/mcp.md)
130
+
-[SDK Guide](./protocals/sdk.md)
131
+
132
+
## Contributing
133
+
134
+
Contributions are welcome! Please feel free to submit a Pull Request.
135
+
136
+
## License
137
+
138
+
This project is licensed under the MIT License - see the LICENSE file for details.
0 commit comments