-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
87 lines (79 loc) · 2.73 KB
/
setup.py
File metadata and controls
87 lines (79 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
"""
JadeGate — AI Tool Call Security Protocol
The TLS of AI tool calls.
pip install jadegate ← 装完就生效,不需要任何配置
"""
from setuptools import setup, find_packages
from setuptools.command.install import install
from setuptools.command.develop import develop
import os
class PostInstall(install):
"""Post-install: auto-inject jadegate into all MCP clients."""
def run(self):
install.run(self)
try:
from jadegate.post_install import post_install
post_install()
except Exception:
pass # Never break pip install
class PostDevelop(develop):
"""Post-develop: same as install."""
def run(self):
develop.run(self)
try:
from jadegate.post_install import post_install
post_install()
except Exception:
pass
setup(
name="jadegate",
version="2.0.0",
description="JadeGate: AI Tool Call Security Protocol — The TLS of AI tool calls",
long_description=open("README.md", encoding="utf-8").read() if os.path.exists("README.md") else "",
long_description_content_type="text/markdown",
author="Project JADE",
url="https://github.com/JadeGate/jadegate",
license="BSL-1.1",
keywords=[
"mcp", "security", "ai-agent", "tool-call", "llm", "proxy",
"claude", "cursor", "windsurf", "cline", "model-context-protocol",
"zero-trust", "skill-verification", "jadegate",
],
packages=find_packages(exclude=["tests", "tests.*"]),
package_data={
"jade_schema": ["*.json"],
"jade_skills": ["*.json", "mcp/*.json", "mcp/*.sig.json", "tools/*.json", "tools/*.sig.json", "*.sig.json"],
"jade_registry": ["*.json"],
"jadegate": ["policy/*.json"],
},
include_package_data=True,
python_requires=">=3.8",
install_requires=[],
extras_require={
"dev": ["pytest>=7.0", "pytest-cov"],
},
entry_points={
"console_scripts": [
"jadegate=jadegate.cli:main",
"jade-validate=jade_core.validator:main",
],
},
cmdclass={
"install": PostInstall,
"develop": PostDevelop,
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: Other/Proprietary License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Security",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
)