wyfmcp 0.1.0__tar.gz

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.
wyfmcp-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,10 @@
1
+ Metadata-Version: 2.3
2
+ Name: wyfmcp
3
+ Version: 0.1.0
4
+ Summary: wyf's mcp
5
+ Requires-Dist: mcp>=1.27.1
6
+ Requires-Python: >=3.13
7
+ Description-Content-Type: text/markdown
8
+
9
+ # wyfmcp
10
+ 功能: 测试MCP
wyfmcp-0.1.0/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # wyfmcp
2
+ 功能: 测试MCP
@@ -0,0 +1,16 @@
1
+ [project]
2
+ name = "wyfmcp"
3
+ version = "0.1.0"
4
+ description = "wyf's mcp"
5
+ readme = "README.md"
6
+ requires-python = ">=3.13"
7
+ dependencies = [
8
+ "mcp>=1.27.1",
9
+ ]
10
+
11
+ [project.scripts]
12
+ wyfmcp = "wyfmcp:main"
13
+
14
+ [build-system]
15
+ requires = ["uv_build>=0.11.14,<0.12.0"]
16
+ build-backend = "uv_build"
@@ -0,0 +1,2 @@
1
+ def main() -> None:
2
+ print("Hello from wyfmcp!")
@@ -0,0 +1,16 @@
1
+ from mcp.server.fastmcp import FastMCP
2
+
3
+ # 创建MCP服务器实例
4
+ mcp = FastMCP("wyfmcp")
5
+
6
+ @mcp.tool()
7
+ def add(a: int, b: int) -> int:
8
+ """将两个数字相加"""
9
+ return a + b
10
+
11
+ def main() -> None:
12
+ # 启动MCP服务器,使用标准输入输出传输
13
+ mcp.run(transport='stdio')
14
+
15
+ if __name__ == "__main__":
16
+ main()