mcp-proxy-adapter 6.2.7__py3-none-any.whl → 6.2.8__py3-none-any.whl
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.
- mcp_proxy_adapter/__main__.py +1 -1
- mcp_proxy_adapter/examples/__init__.py +1 -1
- mcp_proxy_adapter/examples/full_application/__init__.py +2 -1
- mcp_proxy_adapter/examples/full_application/main.py +14 -0
- mcp_proxy_adapter/examples/run_security_tests.py +7 -7
- mcp_proxy_adapter/version.py +1 -1
- {mcp_proxy_adapter-6.2.7.dist-info → mcp_proxy_adapter-6.2.8.dist-info}/METADATA +2 -2
- {mcp_proxy_adapter-6.2.7.dist-info → mcp_proxy_adapter-6.2.8.dist-info}/RECORD +11 -11
- {mcp_proxy_adapter-6.2.7.dist-info → mcp_proxy_adapter-6.2.8.dist-info}/WHEEL +0 -0
- {mcp_proxy_adapter-6.2.7.dist-info → mcp_proxy_adapter-6.2.8.dist-info}/licenses/LICENSE +0 -0
- {mcp_proxy_adapter-6.2.7.dist-info → mcp_proxy_adapter-6.2.8.dist-info}/top_level.txt +0 -0
mcp_proxy_adapter/__main__.py
CHANGED
@@ -155,5 +155,19 @@ def main():
|
|
155
155
|
# Create and run application
|
156
156
|
app = FullApplication(args.config)
|
157
157
|
app.run(host=args.host, port=args.port, debug=args.debug)
|
158
|
+
# Create global app instance for import
|
159
|
+
app = None
|
160
|
+
|
161
|
+
def get_app():
|
162
|
+
"""Get the FastAPI application instance."""
|
163
|
+
global app
|
164
|
+
if app is None:
|
165
|
+
# Create a default configuration for import
|
166
|
+
config = Config("configs/mtls_with_roles.json") # Default config
|
167
|
+
app_instance = FullApplication("configs/mtls_with_roles.json")
|
168
|
+
app_instance.create_application()
|
169
|
+
app = app_instance.app
|
170
|
+
return app
|
171
|
+
|
158
172
|
if __name__ == "__main__":
|
159
173
|
main()
|
@@ -29,31 +29,31 @@ class SecurityTestRunner:
|
|
29
29
|
self.test_results = {}
|
30
30
|
self.configs = {
|
31
31
|
"basic_http": {
|
32
|
-
"config": "
|
32
|
+
"config": "configs/http_simple.json",
|
33
33
|
"port": 8000,
|
34
34
|
"url": "http://localhost:8000",
|
35
35
|
"auth": "none"
|
36
36
|
},
|
37
37
|
"http_token": {
|
38
|
-
"config": "
|
38
|
+
"config": "configs/http_token.json",
|
39
39
|
"port": 8001,
|
40
40
|
"url": "http://localhost:8001",
|
41
41
|
"auth": "api_key"
|
42
42
|
},
|
43
43
|
"https": {
|
44
|
-
"config": "
|
44
|
+
"config": "configs/https_simple.json",
|
45
45
|
"port": 8443,
|
46
46
|
"url": "https://localhost:8443",
|
47
47
|
"auth": "none"
|
48
48
|
},
|
49
49
|
"https_token": {
|
50
|
-
"config": "
|
50
|
+
"config": "configs/https_token.json",
|
51
51
|
"port": 8444,
|
52
52
|
"url": "https://localhost:8444",
|
53
53
|
"auth": "api_key"
|
54
54
|
},
|
55
55
|
"mtls": {
|
56
|
-
"config": "
|
56
|
+
"config": "configs/mtls_with_roles.json",
|
57
57
|
"port": 8445,
|
58
58
|
"url": "https://localhost:8445",
|
59
59
|
"auth": "certificate"
|
@@ -63,8 +63,8 @@ class SecurityTestRunner:
|
|
63
63
|
"""Check if all prerequisites are met."""
|
64
64
|
print("🔍 Checking prerequisites...")
|
65
65
|
# Check if we're in the right directory
|
66
|
-
if not Path("
|
67
|
-
print("❌
|
66
|
+
if not Path("configs").exists():
|
67
|
+
print("❌ configs directory not found. Please run from the test environment root directory.")
|
68
68
|
return False
|
69
69
|
# Check if certificates exist
|
70
70
|
cert_files = [
|
mcp_proxy_adapter/version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: mcp-proxy-adapter
|
3
|
-
Version: 6.2.
|
3
|
+
Version: 6.2.8
|
4
4
|
Summary: Powerful JSON-RPC microservices framework with built-in security, authentication, and proxy registration
|
5
5
|
Home-page: https://github.com/maverikod/mcp-proxy-adapter
|
6
6
|
Author: Vasiliy Zdanovskiy
|
@@ -650,7 +650,7 @@ MIT License - see [LICENSE](https://github.com/maverikod/mcp-proxy-adapter/blob/
|
|
650
650
|
|
651
651
|
## 📊 Version
|
652
652
|
|
653
|
-
**6.2.
|
653
|
+
**6.2.8** - Production-ready release with comprehensive security, proxy registration, and PyPI optimization.
|
654
654
|
|
655
655
|
---
|
656
656
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
mcp_proxy_adapter/__init__.py,sha256=B7m1YWyv_Wb87-Q-JqVpHQgwajnfIgDyZ_iIxzdTbBY,1021
|
2
|
-
mcp_proxy_adapter/__main__.py,sha256=
|
2
|
+
mcp_proxy_adapter/__main__.py,sha256=Bt1ONguFhFkHo2lrbfpBqLt_2896rkw165HQtDDT7Ys,768
|
3
3
|
mcp_proxy_adapter/config.py,sha256=z4rUbJdxYj6vYw05OM_kMXs1Qn2HRQXGHI9PB4hgPd4,12867
|
4
4
|
mcp_proxy_adapter/custom_openapi.py,sha256=jYUrCy8C1mShh3sjKj-JkzSMLAvxDLTvtzSJFj5HUNg,15023
|
5
5
|
mcp_proxy_adapter/main.py,sha256=_DJwMZdN0393UR-U7xfQh59EpbDDgv1oWPFf-v2MoII,2147
|
6
6
|
mcp_proxy_adapter/openapi.py,sha256=36vOEbJjGnVZR6hUhl6mHCD29HYOEFKo2bL0JdGSm-4,13952
|
7
|
-
mcp_proxy_adapter/version.py,sha256=
|
7
|
+
mcp_proxy_adapter/version.py,sha256=wehJCAiczZs9JWXECcyMYJw_dsc9e9JXRgLJ4u7wfYo,75
|
8
8
|
mcp_proxy_adapter/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
mcp_proxy_adapter/api/app.py,sha256=pYrsDWhZAYoYbxujD0MGeOWdTnBUGueIGmZqeAbaB9A,27884
|
10
10
|
mcp_proxy_adapter/api/handlers.py,sha256=DcZT7MVBV33q-0EJ0iFqxE0VgBkFt6d_SqoRkntwyvc,8477
|
@@ -80,7 +80,7 @@ mcp_proxy_adapter/core/ssl_utils.py,sha256=_2mhpuoiRpSbUBifnQvtuziQfBRrXQUKtB58A
|
|
80
80
|
mcp_proxy_adapter/core/transport_manager.py,sha256=ppcgjO-7Ulrk1ovlzlXVM89Iw4VOGA3awKgLf7FFAJ0,9518
|
81
81
|
mcp_proxy_adapter/core/unified_config_adapter.py,sha256=cpN_VrliIFGDH3JsfRkTlFdQvLcmuMYYedq0QEzlb0Y,22857
|
82
82
|
mcp_proxy_adapter/core/utils.py,sha256=ly8Ttg2v1OBukThJLxudRvmttU1hxJFLJUfat4b2dOI,3268
|
83
|
-
mcp_proxy_adapter/examples/__init__.py,sha256=
|
83
|
+
mcp_proxy_adapter/examples/__init__.py,sha256=XW59G9uq5eddAfxSzXOnusji40gfaZ9EYIPCVd2lCDc,449
|
84
84
|
mcp_proxy_adapter/examples/create_certificates_simple.py,sha256=2KS-s3amvAqasvdh-cxY7ARuFAHVjtbtr_EJF2SKVQ0,23221
|
85
85
|
mcp_proxy_adapter/examples/debug_request_state.py,sha256=x_H3NIlkmIS6lZimvEM6kCXxGdpgFw99Sdui8qa_qeU,4347
|
86
86
|
mcp_proxy_adapter/examples/debug_role_chain.py,sha256=33l2Tk5mrcnwPFwqm2NTHcrWaJrXUU2wxW2I6Y4uIg4,8344
|
@@ -91,7 +91,7 @@ mcp_proxy_adapter/examples/generate_certificates_and_tokens.py,sha256=J0qHm_BMY8
|
|
91
91
|
mcp_proxy_adapter/examples/generate_test_configs.py,sha256=AJqsB7sP-tYuOD49MiWBo-CkpdRd92XYQ8m31rPFiFg,8495
|
92
92
|
mcp_proxy_adapter/examples/proxy_registration_example.py,sha256=g59_QG2D1CCqhIXEvgy2XmgXI3toLmLyH7hL3uHZwC8,12647
|
93
93
|
mcp_proxy_adapter/examples/run_example.py,sha256=o8rcy9Xo0UuZG4MpKdex3pFWYdtAi6uW8dEBQE6Yzbw,2539
|
94
|
-
mcp_proxy_adapter/examples/run_security_tests.py,sha256=
|
94
|
+
mcp_proxy_adapter/examples/run_security_tests.py,sha256=s8hOcq-dqhzVU3ikuefLEK2IkmE7WNlKGSjj0lEVHHk,12287
|
95
95
|
mcp_proxy_adapter/examples/run_security_tests_fixed.py,sha256=fNQsbALf9548xJ0OGPKYx5Crzg1GbcL8CSh1x_oKu_A,10540
|
96
96
|
mcp_proxy_adapter/examples/security_test_client.py,sha256=eBy6pZ5Dhdo-qi_7Fk-IWGHq7zAJA-om8RBuOep4XSs,28022
|
97
97
|
mcp_proxy_adapter/examples/setup_test_environment.py,sha256=Y6oNaR95Rmn2csupYoGV-_mMF6AtqJ31vwLhY0TQtMk,11319
|
@@ -104,8 +104,8 @@ mcp_proxy_adapter/examples/basic_framework/main.py,sha256=cDmqeUN1lDBBwuwLjmnP3q
|
|
104
104
|
mcp_proxy_adapter/examples/basic_framework/commands/__init__.py,sha256=_VQNLUEdsxUG-4yt9BZI_vtOxHAdGG0OUSsP6Wj-Vz4,76
|
105
105
|
mcp_proxy_adapter/examples/basic_framework/hooks/__init__.py,sha256=IE_EIXMnkdXuakZn7wLD9kBFyfDF5lYi56ejgiBeb-A,70
|
106
106
|
mcp_proxy_adapter/examples/commands/__init__.py,sha256=46FZSOABSeKPffw91JqIWL_UQD_RLL3nAR-ufgb2hr8,169
|
107
|
-
mcp_proxy_adapter/examples/full_application/__init__.py,sha256=
|
108
|
-
mcp_proxy_adapter/examples/full_application/main.py,sha256=
|
107
|
+
mcp_proxy_adapter/examples/full_application/__init__.py,sha256=AEqN_gEBzj-swBtTOvRUWqKSdXqJVk1aUtfPghVL-2o,319
|
108
|
+
mcp_proxy_adapter/examples/full_application/main.py,sha256=h2d90G6XMJFbJpo2ht7M1IqITZ9nZPi9QtH6ETeE9DI,7791
|
109
109
|
mcp_proxy_adapter/examples/full_application/proxy_endpoints.py,sha256=-cpb0nIjzp6OltFHoZqrtFvb4wJf1dgT4WvQ2dcY6Bo,6045
|
110
110
|
mcp_proxy_adapter/examples/full_application/commands/__init__.py,sha256=yQHxVSFkAyFLUOdk42QOebUODPlQV9IbydPgF3UKsGM,217
|
111
111
|
mcp_proxy_adapter/examples/full_application/commands/custom_echo_command.py,sha256=u9_XOkoHkiFC-tn9B-yGUXfQi9OL0EDxlVVKSERI1wA,3099
|
@@ -113,8 +113,8 @@ mcp_proxy_adapter/examples/full_application/commands/dynamic_calculator_command.
|
|
113
113
|
mcp_proxy_adapter/examples/full_application/hooks/__init__.py,sha256=ORG4cL8cSXEMmZ0CEPz75OVuwg54pdDm2GIBpP4dtcs,200
|
114
114
|
mcp_proxy_adapter/examples/full_application/hooks/application_hooks.py,sha256=TYXuHI-KW_mH5r8mSKgNMJCr3moeEKrqC4Eex0U298k,3457
|
115
115
|
mcp_proxy_adapter/examples/full_application/hooks/builtin_command_hooks.py,sha256=IaskSrckZS6bE3aGxSBL8aTj-iJTSI2ysfsFjhjncyM,2975
|
116
|
-
mcp_proxy_adapter-6.2.
|
117
|
-
mcp_proxy_adapter-6.2.
|
118
|
-
mcp_proxy_adapter-6.2.
|
119
|
-
mcp_proxy_adapter-6.2.
|
120
|
-
mcp_proxy_adapter-6.2.
|
116
|
+
mcp_proxy_adapter-6.2.8.dist-info/licenses/LICENSE,sha256=6KdtUcTwmTRbJrAmYjVn7e6S-V42ubeDJ-AiVEzZ510,1075
|
117
|
+
mcp_proxy_adapter-6.2.8.dist-info/METADATA,sha256=lsVvTJKSGfA8Ncg7FUK9rVpeUKIdUvkJMxzHZt0DGEI,22198
|
118
|
+
mcp_proxy_adapter-6.2.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
119
|
+
mcp_proxy_adapter-6.2.8.dist-info/top_level.txt,sha256=JZT7vPLBYrtroX-ij68JBhJYbjDdghcV-DFySRy-Nnw,18
|
120
|
+
mcp_proxy_adapter-6.2.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|