Skip to main content

veeink的MCP服务

Project description

# veeink-mcp-server

A simple [FastMCP](https://pypi.org/project/fastmcp/) server example built with Python.  
This project demonstrates how to expose custom **tools** and **resources** over the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/).

---

## 🚀 Features

- ⚡ Built with [FastMCP](https://pypi.org/project/fastmcp/)  
- 🔧 Provides a simple `add(a, b)` tool  
- 📡 Supports dynamic greeting resources (`greeting://{name}`)  
- 🖥️ Works over **stdio** (default), **SSE**, or **Streamable HTTP** transports  

---

## 📦 Installation

```bash
pip install veeink-mcp-server

Or using uv:

uv tool install veeink-mcp-server

🖥️ Usage

After installation, run the MCP server:

veeink-mcp-server

By default it runs with stdio transport, but you can also configure:

def main() -> None:
    mcp.run(transport="stdio")            # Default
    # mcp.run(transport="sse")            # SSE transport
    # mcp.run(transport="streamable-http") # Streamable HTTP transport

🔧 Example Tools & Resources

This server exposes:

1. Tool: add

@mcp.tool()
def add(a: int, b: int) -> dict:
    """Add two numbers"""
    return {"result": a + b}

✅ Example call:

{"tool": "add", "args": {"a": 2, "b": 3}}

Response:

{"result": 5}

2. Resource: greeting://{name}

@mcp.resource("greeting://{name}")
def get_greeting(name: str) -> str:
    """Get a personalized greeting"""
    return f"Hello, {name}!"

✅ Example call:

{"resource": "greeting://Alice"}

Response:

Hello, Alice!

🛠 Development

Clone the repository:

git clone https://github.com/yourusername/veeink-mcp-server.git
cd veeink-mcp-server

Install in editable mode:

pip install -e .

Run the server:

veeink-mcp-server

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

veeink_mcp_server-0.1.5.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

veeink_mcp_server-0.1.5-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file veeink_mcp_server-0.1.5.tar.gz.

File metadata

  • Download URL: veeink_mcp_server-0.1.5.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for veeink_mcp_server-0.1.5.tar.gz
Algorithm Hash digest
SHA256 8faec19525a59b8f0a9d5fa67facde669b0a1439fd9c464edb5d5e3e27989877
MD5 f2a550506362d01292b2d7197d089761
BLAKE2b-256 ce88405b1a6597c90272e6218e40c05b4ad44c0fea1001c48c10481be33f6afb

See more details on using hashes here.

File details

Details for the file veeink_mcp_server-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for veeink_mcp_server-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 05beb25003624a0e9614bd1a1539e4e8a0a4c6e7525a2afbe353aff3bf19fab0
MD5 b57e36533e8403d46c5b8ef9aacc7770
BLAKE2b-256 3453eb4b122ee58109283bc9a3c403ce913743788d6c23b227fba81c796a8f00

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