tavisowms-mcp 1.6.3__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.
- tavisowms_mcp-1.6.3/PKG-INFO +21 -0
- tavisowms_mcp-1.6.3/README.md +8 -0
- tavisowms_mcp-1.6.3/pyproject.toml +24 -0
- tavisowms_mcp-1.6.3/setup.cfg +4 -0
- tavisowms_mcp-1.6.3/tavisowms_mcp/__init__.py +1 -0
- tavisowms_mcp-1.6.3/tavisowms_mcp/cli.py +59 -0
- tavisowms_mcp-1.6.3/tavisowms_mcp.egg-info/PKG-INFO +21 -0
- tavisowms_mcp-1.6.3/tavisowms_mcp.egg-info/SOURCES.txt +9 -0
- tavisowms_mcp-1.6.3/tavisowms_mcp.egg-info/dependency_links.txt +1 -0
- tavisowms_mcp-1.6.3/tavisowms_mcp.egg-info/entry_points.txt +2 -0
- tavisowms_mcp-1.6.3/tavisowms_mcp.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tavisowms-mcp
|
|
3
|
+
Version: 1.6.3
|
|
4
|
+
Summary: Tavisowms MCP skill CLI for external AI clients
|
|
5
|
+
Author: Taviso
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Keywords: tavisowms,wms,mcp,warehouse,inventory
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: Topic :: Office/Business
|
|
11
|
+
Requires-Python: >=3.8
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
|
14
|
+
# tavisowms-mcp
|
|
15
|
+
|
|
16
|
+
Tavisowms MCP CLI.
|
|
17
|
+
|
|
18
|
+
pip install tavisowms-mcp
|
|
19
|
+
tavisowms-mcp setup --url https://wms.example.com --secret-id ID --secret-key KEY
|
|
20
|
+
tavisowms-mcp tools
|
|
21
|
+
tavisowms-mcp call stock_out.list '{"keyword":"CK2026"}'
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "tavisowms-mcp"
|
|
7
|
+
version = "1.6.3"
|
|
8
|
+
description = "Tavisowms MCP skill CLI for external AI clients"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.8"
|
|
11
|
+
license = {text = "Apache-2.0"}
|
|
12
|
+
authors = [{name = "Taviso"}]
|
|
13
|
+
keywords = ["tavisowms", "wms", "mcp", "warehouse", "inventory"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Operating System :: OS Independent",
|
|
17
|
+
"Topic :: Office/Business",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[project.scripts]
|
|
21
|
+
tavisowms-mcp = "tavisowms_mcp.cli:main"
|
|
22
|
+
|
|
23
|
+
[tool.setuptools.packages.find]
|
|
24
|
+
include = ["tavisowms_mcp*"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.6.3"
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import argparse, json, os, stat, sys, urllib.parse, urllib.request
|
|
2
|
+
|
|
3
|
+
CONFIG = os.path.expanduser("~/.tavisowms/mcp.json")
|
|
4
|
+
|
|
5
|
+
def load():
|
|
6
|
+
try:
|
|
7
|
+
with open(CONFIG) as f: return json.load(f)
|
|
8
|
+
except Exception:
|
|
9
|
+
return {}
|
|
10
|
+
|
|
11
|
+
def save(cfg):
|
|
12
|
+
os.makedirs(os.path.dirname(CONFIG), exist_ok=True)
|
|
13
|
+
with open(CONFIG, "w") as f: json.dump(cfg, f, indent=2)
|
|
14
|
+
os.chmod(CONFIG, stat.S_IRUSR | stat.S_IWUSR)
|
|
15
|
+
|
|
16
|
+
def headers(cfg):
|
|
17
|
+
return {
|
|
18
|
+
"Content-Type": "application/json",
|
|
19
|
+
"X-TVS-Secret-Id": cfg.get("secretId", ""),
|
|
20
|
+
"X-TVS-Secret-Key": cfg.get("secretKey", ""),
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
def post(cfg, method, params):
|
|
24
|
+
url = cfg["url"].rstrip("/") + "/api/mcp"
|
|
25
|
+
body = json.dumps({"jsonrpc": "2.0", "id": 1, "method": method, "params": params}).encode()
|
|
26
|
+
req = urllib.request.Request(url, data=body, headers=headers(cfg), method="POST")
|
|
27
|
+
with urllib.request.urlopen(req, timeout=30) as r:
|
|
28
|
+
return json.load(r)
|
|
29
|
+
|
|
30
|
+
def main():
|
|
31
|
+
ap = argparse.ArgumentParser(prog="tavisowms-mcp")
|
|
32
|
+
sub = ap.add_subparsers(dest="cmd")
|
|
33
|
+
s = sub.add_parser("setup"); s.add_argument("--url", required=True); s.add_argument("--secret-id", required=True); s.add_argument("--secret-key", required=True)
|
|
34
|
+
sub.add_parser("show")
|
|
35
|
+
sub.add_parser("tools")
|
|
36
|
+
c = sub.add_parser("call"); c.add_argument("tool"); c.add_argument("args", nargs="?", default="{}")
|
|
37
|
+
sub.add_parser("health")
|
|
38
|
+
a = ap.parse_args()
|
|
39
|
+
cfg = load()
|
|
40
|
+
if a.cmd == "setup":
|
|
41
|
+
save({"url": a.url.rstrip("/"), "secretId": a.secret_id, "secretKey": a.secret_key})
|
|
42
|
+
print("saved", CONFIG)
|
|
43
|
+
elif a.cmd == "show":
|
|
44
|
+
print(json.dumps({**cfg, "secretKey": "***" if cfg.get("secretKey") else ""}, indent=2))
|
|
45
|
+
elif a.cmd == "tools":
|
|
46
|
+
out = post(cfg, "tools/list", {})
|
|
47
|
+
for t in out.get("result", {}).get("tools", []): print(t.get("name"), "-", t.get("description", ""))
|
|
48
|
+
elif a.cmd == "call":
|
|
49
|
+
out = post(cfg, "tools/call", {"name": a.tool, "arguments": json.loads(a.args)})
|
|
50
|
+
print(json.dumps(out, ensure_ascii=False, indent=2))
|
|
51
|
+
elif a.cmd == "health":
|
|
52
|
+
url = cfg["url"].rstrip("/") + "/api/v1/open/me"
|
|
53
|
+
req = urllib.request.Request(url, headers=headers(cfg))
|
|
54
|
+
with urllib.request.urlopen(req, timeout=30) as r: print(r.read().decode())
|
|
55
|
+
else:
|
|
56
|
+
ap.print_help()
|
|
57
|
+
|
|
58
|
+
if __name__ == "__main__":
|
|
59
|
+
main()
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tavisowms-mcp
|
|
3
|
+
Version: 1.6.3
|
|
4
|
+
Summary: Tavisowms MCP skill CLI for external AI clients
|
|
5
|
+
Author: Taviso
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Keywords: tavisowms,wms,mcp,warehouse,inventory
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: Topic :: Office/Business
|
|
11
|
+
Requires-Python: >=3.8
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
|
14
|
+
# tavisowms-mcp
|
|
15
|
+
|
|
16
|
+
Tavisowms MCP CLI.
|
|
17
|
+
|
|
18
|
+
pip install tavisowms-mcp
|
|
19
|
+
tavisowms-mcp setup --url https://wms.example.com --secret-id ID --secret-key KEY
|
|
20
|
+
tavisowms-mcp tools
|
|
21
|
+
tavisowms-mcp call stock_out.list '{"keyword":"CK2026"}'
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
pyproject.toml
|
|
3
|
+
tavisowms_mcp/__init__.py
|
|
4
|
+
tavisowms_mcp/cli.py
|
|
5
|
+
tavisowms_mcp.egg-info/PKG-INFO
|
|
6
|
+
tavisowms_mcp.egg-info/SOURCES.txt
|
|
7
|
+
tavisowms_mcp.egg-info/dependency_links.txt
|
|
8
|
+
tavisowms_mcp.egg-info/entry_points.txt
|
|
9
|
+
tavisowms_mcp.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tavisowms_mcp
|