A weather application using MCP
Project description
Weather001 MCP Application
A simple weather application built with the Model Context Protocol (MCP).
Installation
To install and run this application, you need Python 3.8 or later.
Using uvx
uvx weather001
Using pip
pip install weather001
Local Development
-
Clone the repository:
git clone <repository-url> cd weather001
-
Install in development mode:
pip install -e .
-
Run the application:
weather001
Usage
This application provides a simple weather tool that can be used in MCP-compatible environments.
Tools
get_weather: Get weather information for a specific location- Arguments:
location(string, required): The location for which to get weather information
- Arguments:
Example
{
"tool": "get_weather",
"arguments": {
"location": "北京"
}
}
Publishing to PyPI
To publish this package to PyPI, follow these steps:
-
Create accounts on PyPI and TestPyPI:
-
Install build tools:
pip install build twine
-
Build the package:
python -m build
-
Upload to TestPyPI first (recommended):
twine upload -r testpypi dist/*
-
If everything works, upload to PyPI:
twine upload dist/*
License
MIT
pypi-AgENdGVzdC5weXBpLm9yZwIkY2E3Y2I1MWItNTM4MC00MWIwLWE1ZGItMzc2YTBjYzhjNjE1AAIqWzMsIjNkYWQzYzZjLTkyMWQtNGIwZi1iMDRiLTNiODk3NjNlYWVhMCJdAAAGIOHmxf8M5nyh-eI1PrE7g2sacA37J2QgXNyVsRhh3OiE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file weather001-0.1.0.tar.gz.
File metadata
- Download URL: weather001-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e140124bccaba3c7b57077f82a2fdb2df890d4be42d4cda407c81bd5411a483
|
|
| MD5 |
e8ea2b350bba15eaa1ab851aa1deb689
|
|
| BLAKE2b-256 |
799fc3c6a6d0f65285b4ba2b2ee3c14b3f5748712d1006eba7d3f5b98306b931
|
File details
Details for the file weather001-0.1.0-py3-none-any.whl.
File metadata
- Download URL: weather001-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e922057dcde7b9da937c67f05634819dd44b98ac1fbbec338ca85d70d566ac46
|
|
| MD5 |
e1d8ae08fa63633e72dc92fb95acb0bb
|
|
| BLAKE2b-256 |
28e19d3d4f8ddbc0a3b5371eeb62f86111dcdad08b941b85319954106c52d34e
|