Skip to main content

辰知MCP工具

Project description

mcp-chenzhi

辰知MCP工具 (Chenzhi MCP Tool)

这是一个基于 MCP 框架的工具服务器,提供了查询天气和计算加法的功能。

功能

  • 查询天气: 通过 query_weather 工具,输入城市名称获取实时天气信息。
  • 计算加法: 通过 add 工具,计算两个整数的和。

安装

  1. 克隆本项目到本地:

    git clone https://github.com/chris666-sys/mcp-chenzhi.git
    cd mcp-chenzhi
    
  2. 安装依赖: 建议在虚拟环境中使用 pip 安装项目依赖。

    pip install .
    

    或者

    pip install -r requirements.txt 
    

    (如果项目提供了 requirements.txt 文件)

使用

方式一:通过 uvx 运行(推荐)⭐

uvx 是最简单的使用方式,无需手动管理虚拟环境:

# 直接运行(uvx 会自动下载和管理依赖)
uvx mcp-chenzhi

安装 uv 工具:

# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# 或使用 pip
pip install uv

# 或使用 Homebrew (macOS)
brew install uv

方式二:传统安装运行

# 安装
pip install mcp-chenzhi

# 运行
mcp-chenzhi

MCP 客户端配置

Claude Desktop 配置

编辑配置文件 ~/Library/Application Support/Claude/claude_desktop_config.json

{
    "mcpServers": {
        "mcp-chenzhi": {
            "command": "uvx",
            "args": ["mcp-chenzhi"]
        }
    }
}

Cline/Continue 配置

在项目的 .vscode/settings.json 或 MCP 配置文件中添加:

{
    "mcpServers": {
        "weather-server": {
            "command": "uvx",
            "args": ["mcp-chenzhi"],
            "env": {}
        }
    }
}

配置完成后,重启客户端,MCP Agent 就可以连接到此服务器并使用注册的工具。

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

mcp_chenzhi-0.0.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

mcp_chenzhi-0.0.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file mcp_chenzhi-0.0.3.tar.gz.

File metadata

  • Download URL: mcp_chenzhi-0.0.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for mcp_chenzhi-0.0.3.tar.gz
Algorithm Hash digest
SHA256 13528c8bd3842b842c5ca6fc6d2a4bc3419717821a2f529836bf544927c9606d
MD5 024f1fc66ca9e87cdf72014f6ec57ee9
BLAKE2b-256 47e1cfdc5933f88650bdacb10edf068a50e3046a38aa46b7b4cd778120e9fc8c

See more details on using hashes here.

File details

Details for the file mcp_chenzhi-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: mcp_chenzhi-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for mcp_chenzhi-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 09a98e23caa8b5bdfd367d5790fc82b5619257a0c0da2fbf2d69d91c0f2b8485
MD5 0f891ef72ff6bfc4a7ba90abaa0d3225
BLAKE2b-256 fece0dbc7404407948119a32dab279d4b7849d915f8bb5a780ad89d8bdf6e215

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