machinecommander 0.2.0__tar.gz → 0.3.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.
@@ -0,0 +1 @@
1
+ 3.14
@@ -1,11 +1,11 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: machinecommander
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: MachineCommander is an IoT system to manage all the construction machines working on construction projects.
5
5
  Author-email: Ye Wang <wangye@zeaho.com>
6
- Requires-Python: >=3.12
7
- Requires-Dist: mcp>=1.10.1
8
- Requires-Dist: requests>=2.31.0
6
+ Requires-Python: >=3.14
7
+ Requires-Dist: mcp>=2.3.0
8
+ Requires-Dist: requests>=2.34.2
9
9
  Description-Content-Type: text/markdown
10
10
 
11
11
  # machine-commander
@@ -1,10 +1,10 @@
1
1
  [project]
2
2
  name = "machinecommander"
3
- version = "0.2.0"
3
+ version = "0.3.0"
4
4
  description = "MachineCommander is an IoT system to manage all the construction machines working on construction projects."
5
5
  readme = "README.md"
6
- requires-python = ">=3.12"
7
- dependencies = [ "mcp>=1.10.1", "requests>=2.31.0" ]
6
+ requires-python = ">=3.14"
7
+ dependencies = [ "mcp>=2.3.0", "requests>=2.34.2" ]
8
8
  [[project.authors]]
9
9
  name = "Ye Wang"
10
10
  email = "wangye@zeaho.com"
@@ -1,8 +1,9 @@
1
- from mcp.server.fastmcp import FastMCP
1
+ from importlib.metadata import version
2
+ from mcp.server.mcpserver import MCPServer
2
3
  import os
3
4
  import requests
4
5
 
5
- mcp = FastMCP("MachineCommander")
6
+ mcp = MCPServer("MachineCommander", version=version("machinecommander"))
6
7
 
7
8
  @mcp.tool()
8
9
  def get_construction_machines_data(question: str) -> dict: