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
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 veeink_mcp_server-0.2.0.tar.gz.
File metadata
- Download URL: veeink_mcp_server-0.2.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34a295411ed43f82f02606cc07b2b8228a369265b28ad7f93aea917a5941ec58
|
|
| MD5 |
1dfddef3f849db83fb43e09d2a43305d
|
|
| BLAKE2b-256 |
9894137b756e46271797619a1a329d4b22e55dc3f7a125561bb969118028d4d3
|
File details
Details for the file veeink_mcp_server-0.2.0-py3-none-any.whl.
File metadata
- Download URL: veeink_mcp_server-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c253d55e2106d658d254475067526909a5bf78cda1af90d6dcbf129bebbf9d33
|
|
| MD5 |
92423d814071882c90a2ce9b736114bb
|
|
| BLAKE2b-256 |
091e3a0c52c8d1b02464660a3811ae73bb4bd25fcbfc117d502b2de632dc97c8
|