uptimecheck 0.2.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.
- uptimecheck-0.2.0/PKG-INFO +5 -0
- uptimecheck-0.2.0/README.md +3 -0
- uptimecheck-0.2.0/setup.cfg +4 -0
- uptimecheck-0.2.0/setup.py +17 -0
- uptimecheck-0.2.0/uptimecheck/__init__.py +29 -0
- uptimecheck-0.2.0/uptimecheck.egg-info/PKG-INFO +5 -0
- uptimecheck-0.2.0/uptimecheck.egg-info/SOURCES.txt +9 -0
- uptimecheck-0.2.0/uptimecheck.egg-info/dependency_links.txt +1 -0
- uptimecheck-0.2.0/uptimecheck.egg-info/entry_points.txt +2 -0
- uptimecheck-0.2.0/uptimecheck.egg-info/requires.txt +1 -0
- uptimecheck-0.2.0/uptimecheck.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from setuptools import setup
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
setup(
|
|
5
|
+
name="uptimecheck",
|
|
6
|
+
version="0.2.0",
|
|
7
|
+
description="MCP tool server for AI agents.",
|
|
8
|
+
packages=["uptimecheck"],
|
|
9
|
+
include_package_data=True,
|
|
10
|
+
install_requires=["owlvin-tools>=0.2.0"],
|
|
11
|
+
entry_points={
|
|
12
|
+
"console_scripts": [
|
|
13
|
+
"uptimecheck=uptimecheck:main",
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
python_requires=">=3.10",
|
|
17
|
+
)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Lightweight agent tool — installs and runs the search engine."""
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
from importlib import import_module
|
|
5
|
+
|
|
6
|
+
# Set server name to match the package the user installed
|
|
7
|
+
os.environ.setdefault("OWLVIN_SERVER_NAME", "uptimecheck")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def _load_mcp():
|
|
11
|
+
for module_name in ("owlvin_tools.server", "owlvin_tools", "server"):
|
|
12
|
+
try:
|
|
13
|
+
module = import_module(module_name)
|
|
14
|
+
except ImportError:
|
|
15
|
+
continue
|
|
16
|
+
mcp = getattr(module, "mcp", None)
|
|
17
|
+
if mcp is not None:
|
|
18
|
+
return mcp
|
|
19
|
+
raise ImportError("Could not locate the underlying MCP server module.")
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
mcp = _load_mcp()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def main():
|
|
26
|
+
mcp.run()
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
__all__ = ["mcp", "main"]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
setup.py
|
|
3
|
+
uptimecheck/__init__.py
|
|
4
|
+
uptimecheck.egg-info/PKG-INFO
|
|
5
|
+
uptimecheck.egg-info/SOURCES.txt
|
|
6
|
+
uptimecheck.egg-info/dependency_links.txt
|
|
7
|
+
uptimecheck.egg-info/entry_points.txt
|
|
8
|
+
uptimecheck.egg-info/requires.txt
|
|
9
|
+
uptimecheck.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
owlvin-tools>=0.2.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
uptimecheck
|