Skip to main content

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

  1. Clone the repository:

    git clone <repository-url>
    cd weather001
    
  2. Install in development mode:

    pip install -e .
    
  3. 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

Example

{
  "tool": "get_weather",
  "arguments": {
    "location": "北京"
  }
}

Publishing to PyPI

To publish this package to PyPI, follow these steps:

  1. Create accounts on PyPI and TestPyPI:

  2. Install build tools:

    pip install build twine
    
  3. Build the package:

    python -m build
    
  4. Upload to TestPyPI first (recommended):

    twine upload -r testpypi dist/*
    
  5. If everything works, upload to PyPI:

    twine upload dist/*
    

License

MIT

pypi-AgENdGVzdC5weXBpLm9yZwIkY2E3Y2I1MWItNTM4MC00MWIwLWE1ZGItMzc2YTBjYzhjNjE1AAIqWzMsIjNkYWQzYzZjLTkyMWQtNGIwZi1iMDRiLTNiODk3NjNlYWVhMCJdAAAGIOHmxf8M5nyh-eI1PrE7g2sacA37J2QgXNyVsRhh3OiE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

weather001-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

weather001-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for weather001-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1e140124bccaba3c7b57077f82a2fdb2df890d4be42d4cda407c81bd5411a483
MD5 e8ea2b350bba15eaa1ab851aa1deb689
BLAKE2b-256 799fc3c6a6d0f65285b4ba2b2ee3c14b3f5748712d1006eba7d3f5b98306b931

See more details on using hashes here.

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

Hashes for weather001-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e922057dcde7b9da937c67f05634819dd44b98ac1fbbec338ca85d70d566ac46
MD5 e1d8ae08fa63633e72dc92fb95acb0bb
BLAKE2b-256 28e19d3d4f8ddbc0a3b5371eeb62f86111dcdad08b941b85319954106c52d34e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page