Skip to main content

A minimal MCP server that exposes an add tool over stdio.

Project description

yifanli-mcp-add-demo

A minimal MCP Server built with the official Python MCP SDK.

Features

  • Runs locally over stdio
  • Exposes one MCP tool: add
  • Can be launched with uvx yifanli-mcp-add-demo

Tool

add

Adds two integers and returns the result.

Inputs:

  • a: integer
  • b: integer

Output:

  • integer sum

Requirements

  • Python 3.10+
  • uv installed locally

Run Locally

Use uvx after publishing the package:

uvx yifanli-mcp-add-demo

Or run from source in the project directory:

uv run python -m yifanli_mcp_add_demo

Cherry Studio Config

If you want to connect this server in Cherry Studio with stdio, use:

  • Command: uvx
  • Arguments: yifanli-mcp-add-demo

Equivalent JSON-style config:

{
  "mcpServers": {
    "yifanli-mcp-add-demo": {
      "command": "uvx",
      "args": ["yifanli-mcp-add-demo"]
    }
  }
}

Package

This project is packaged for publishing to PyPI and local installation via uvx.

Source code lives in:

  • src/yifanli_mcp_add_demo

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

yifanli_mcp_add_demo-0.1.2.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

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

yifanli_mcp_add_demo-0.1.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file yifanli_mcp_add_demo-0.1.2.tar.gz.

File metadata

  • Download URL: yifanli_mcp_add_demo-0.1.2.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for yifanli_mcp_add_demo-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1389c55fa07e25f2d1b9496f22c4f4b0f245ea3531cf77b1602a1919652ea2c2
MD5 e3210468c668942ed2a088e8ac33dab9
BLAKE2b-256 6de324db3376900c2a3ed133ea9c83446beeb34da5f94f8e7dfc66a7d16b7655

See more details on using hashes here.

File details

Details for the file yifanli_mcp_add_demo-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: yifanli_mcp_add_demo-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for yifanli_mcp_add_demo-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ea3b29393e16b8d8388dececfa5423e4f547e7e43105cf8366d26987b0518bf6
MD5 e74f9c55a430ee2c622796ac0e5d94a3
BLAKE2b-256 2a9a76f6524cecb6aab85c32a6bcbf3f0033c4de9065b352fb46ee1bb780d047

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