tenmao-mcp-demo 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ # server.py
2
+ from mcp.server.fastmcp import FastMCP
3
+
4
+ # Create an MCP server
5
+ mcp = FastMCP("Demo")
6
+
7
+
8
+ # Add an addition tool
9
+ @mcp.tool()
10
+ def add(a: int, b: int) -> int:
11
+ """Add two numbers"""
12
+ return a + b
13
+
14
+
15
+ # Add a dynamic greeting resource
16
+ @mcp.resource("greeting://{name}")
17
+ def get_greeting(name: str) -> str:
18
+ """Get a personalized greeting"""
19
+ return f"Hello, {name}!"
20
+
21
+ def main() -> None:
22
+ mcp.run(transport='stdio')
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: tenmao-mcp-demo
3
+ Version: 0.1.0
4
+ Summary: Add your description here
5
+ Author-email: kuanglong2016 <kuanglong2016@gmail.com>
6
+ Requires-Python: >=3.13
7
+ Requires-Dist: mcp[cli]>=1.10.1
@@ -0,0 +1,5 @@
1
+ tenmao_mcp_demo/__init__.py,sha256=VsZW45jilUbTJ_XDSpb0JqvuwTzrU83Jsn4Wz1B6lPA,434
2
+ tenmao_mcp_demo-0.1.0.dist-info/METADATA,sha256=K7dVWXCJ10o2Sv92qkEwSd3V6v60L4k4bAUda4ia4KE,204
3
+ tenmao_mcp_demo-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
4
+ tenmao_mcp_demo-0.1.0.dist-info/entry_points.txt,sha256=EWomKZ8gz2lDzYEIzSpnakl7K9okWQTjzFRnB4v8cyI,57
5
+ tenmao_mcp_demo-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ tenmao-mcp-demo = tenmao_mcp_demo:main