mcp-proxy-adapter 6.4.43__py3-none-any.whl → 6.4.45__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.
Files changed (33) hide show
  1. mcp_proxy_adapter/core/proxy_registration.py +100 -68
  2. mcp_proxy_adapter/examples/bugfix_certificate_config.py +284 -0
  3. mcp_proxy_adapter/examples/cert_manager_bugfix.py +203 -0
  4. mcp_proxy_adapter/examples/config_builder.py +574 -0
  5. mcp_proxy_adapter/examples/config_cli.py +283 -0
  6. mcp_proxy_adapter/examples/create_test_configs.py +169 -266
  7. mcp_proxy_adapter/examples/generate_certificates_bugfix.py +374 -0
  8. mcp_proxy_adapter/examples/generate_certificates_cli.py +406 -0
  9. mcp_proxy_adapter/examples/generate_certificates_fixed.py +313 -0
  10. mcp_proxy_adapter/examples/generate_certificates_framework.py +366 -0
  11. mcp_proxy_adapter/examples/generate_certificates_openssl.py +391 -0
  12. mcp_proxy_adapter/examples/required_certificates.py +210 -0
  13. mcp_proxy_adapter/examples/run_full_test_suite.py +117 -13
  14. mcp_proxy_adapter/examples/run_security_tests_fixed.py +41 -25
  15. mcp_proxy_adapter/examples/security_test_client.py +333 -86
  16. mcp_proxy_adapter/examples/test_config_builder.py +450 -0
  17. mcp_proxy_adapter/examples/update_config_certificates.py +136 -0
  18. mcp_proxy_adapter/version.py +1 -1
  19. {mcp_proxy_adapter-6.4.43.dist-info → mcp_proxy_adapter-6.4.45.dist-info}/METADATA +81 -1
  20. {mcp_proxy_adapter-6.4.43.dist-info → mcp_proxy_adapter-6.4.45.dist-info}/RECORD +23 -20
  21. mcp_proxy_adapter-6.4.45.dist-info/entry_points.txt +12 -0
  22. mcp_proxy_adapter/examples/create_certificates_simple.py +0 -661
  23. mcp_proxy_adapter/examples/generate_certificates.py +0 -192
  24. mcp_proxy_adapter/examples/generate_certificates_and_tokens.py +0 -515
  25. mcp_proxy_adapter/examples/generate_test_configs.py +0 -393
  26. mcp_proxy_adapter/examples/run_security_tests.py +0 -677
  27. mcp_proxy_adapter/examples/scripts/config_generator.py +0 -842
  28. mcp_proxy_adapter/examples/scripts/create_certificates_simple.py +0 -673
  29. mcp_proxy_adapter/examples/scripts/generate_certificates_and_tokens.py +0 -515
  30. mcp_proxy_adapter/examples/test_config_generator.py +0 -102
  31. mcp_proxy_adapter-6.4.43.dist-info/entry_points.txt +0 -2
  32. {mcp_proxy_adapter-6.4.43.dist-info → mcp_proxy_adapter-6.4.45.dist-info}/WHEEL +0 -0
  33. {mcp_proxy_adapter-6.4.43.dist-info → mcp_proxy_adapter-6.4.45.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-proxy-adapter
3
- Version: 6.4.43
3
+ Version: 6.4.45
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
@@ -138,6 +138,86 @@ The `mcp_proxy_adapter/examples/` directory contains comprehensive examples for
138
138
  - **Security Testing**: Comprehensive security test suite
139
139
  - **Certificate Generation**: SSL/TLS certificate management
140
140
 
141
+ ### Test Environment Setup
142
+
143
+ The framework includes a comprehensive test environment setup that automatically creates configurations, generates certificates, and runs tests:
144
+
145
+ ```bash
146
+ # Create a complete test environment with all configurations and certificates
147
+ python -m mcp_proxy_adapter.examples.setup_test_environment
148
+
149
+ # Create test environment in a specific directory
150
+ python -m mcp_proxy_adapter.examples.setup_test_environment /path/to/test/dir
151
+
152
+ # Skip certificate generation (use existing certificates)
153
+ python -m mcp_proxy_adapter.examples.setup_test_environment --skip-certs
154
+
155
+ # Skip running tests (setup only)
156
+ python -m mcp_proxy_adapter.examples.setup_test_environment --skip-tests
157
+ ```
158
+
159
+ ### Configuration Generation
160
+
161
+ Generate test configurations from a comprehensive template:
162
+
163
+ ```bash
164
+ # Generate all test configurations
165
+ python -m mcp_proxy_adapter.examples.create_test_configs
166
+
167
+ # Generate from specific comprehensive config
168
+ python -m mcp_proxy_adapter.examples.create_test_configs --comprehensive-config config.json
169
+
170
+ # Generate specific configuration types
171
+ python -m mcp_proxy_adapter.examples.create_test_configs --types http,https,mtls
172
+ ```
173
+
174
+ ### Certificate Generation
175
+
176
+ Generate SSL/TLS certificates for testing:
177
+
178
+ ```bash
179
+ # Generate all certificates using mcp_security_framework
180
+ python -m mcp_proxy_adapter.examples.generate_all_certificates
181
+
182
+ # Generate certificates with custom configuration
183
+ python -m mcp_proxy_adapter.examples.generate_certificates_framework --config cert_config.json
184
+ ```
185
+
186
+ ### Security Testing
187
+
188
+ Run comprehensive security tests:
189
+
190
+ ```bash
191
+ # Run all security tests
192
+ python -m mcp_proxy_adapter.examples.run_security_tests_fixed
193
+
194
+ # Run full test suite (includes setup, config generation, certificate generation, and testing)
195
+ python -m mcp_proxy_adapter.examples.run_full_test_suite
196
+ ```
197
+
198
+ ### Complete Workflow Example
199
+
200
+ ```bash
201
+ # 1. Install the package
202
+ pip install mcp-proxy-adapter
203
+
204
+ # 2. Create test environment (automatically runs tests)
205
+ python -m mcp_proxy_adapter.examples.setup_test_environment
206
+
207
+ # 3. Or run individual steps:
208
+ # Generate certificates
209
+ python -m mcp_proxy_adapter.examples.generate_all_certificates
210
+
211
+ # Generate configurations
212
+ python -m mcp_proxy_adapter.examples.create_test_configs
213
+
214
+ # Run security tests
215
+ python -m mcp_proxy_adapter.examples.run_security_tests_fixed
216
+
217
+ # 4. Start server with generated configuration
218
+ python -m mcp_proxy_adapter --config configs/http_simple.json
219
+ ```
220
+
141
221
  ## Development
142
222
 
143
223
  The project follows a modular architecture:
@@ -4,7 +4,7 @@ mcp_proxy_adapter/config.py,sha256=-7iVS0mUWWKNeao7nqTAFlUD6FcMwRlDkchN7OwYsr0,2
4
4
  mcp_proxy_adapter/custom_openapi.py,sha256=yLle4CntYK9wpivgn9NflZyJhy-YNrmWjJzt0ai5nP0,14672
5
5
  mcp_proxy_adapter/main.py,sha256=idp3KUR7CT7kTXLVPvvclJlNnt8d_HYl8_jY98uknmo,4677
6
6
  mcp_proxy_adapter/openapi.py,sha256=2UZOI09ZDRJuBYBjKbMyb2U4uASszoCMD5o_4ktRpvg,13480
7
- mcp_proxy_adapter/version.py,sha256=mcdhxpyI9wmbH-6iWRr4hmu5OF47IrVOL6YzrDIHmkg,75
7
+ mcp_proxy_adapter/version.py,sha256=40KDgWkQT1uMrNsnjdOGruVeV96PpkQnbtYpnt2iCzc,75
8
8
  mcp_proxy_adapter/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  mcp_proxy_adapter/api/app.py,sha256=cxjavhNTtaYg2ea-UeHSDnKh8edKVNQ2NbXUDYbufFU,34183
10
10
  mcp_proxy_adapter/api/handlers.py,sha256=iyFGoEuUS1wxbV1ELA0zmaxIyQR7j4zw-4MrD-uIO6E,8294
@@ -70,7 +70,7 @@ mcp_proxy_adapter/core/mtls_asgi_app.py,sha256=DT_fTUH1RkvBa3ThbyCyNb-XUHyCb4Dqa
70
70
  mcp_proxy_adapter/core/mtls_server.py,sha256=_hj6QWuExKX2LRohYvjPGFC2qTutS7ObegpEc09QijM,10117
71
71
  mcp_proxy_adapter/core/protocol_manager.py,sha256=3sWOAiMniQY5nu9CHkitIOGN4CXH28hOTwY92D0yasM,15268
72
72
  mcp_proxy_adapter/core/proxy_client.py,sha256=CB6KBhV3vH2GU5nZ27VZ_xlNbYTAU_tnYFrkuK5He58,6094
73
- mcp_proxy_adapter/core/proxy_registration.py,sha256=jV1jqsplNLs7gRQnXr37jkC8j3l2imIIo7CEq-qgylY,33683
73
+ mcp_proxy_adapter/core/proxy_registration.py,sha256=rBu3udgVfgluId1hMY-fB9lN0rMCVtR9GZnVWwKR0LY,34816
74
74
  mcp_proxy_adapter/core/role_utils.py,sha256=YwRenGoXI5YrHVbFjKFAH2DJs2miyqhcr9LWF7mxieg,12284
75
75
  mcp_proxy_adapter/core/security_adapter.py,sha256=MAtNthsp7Qj4-oLFzSi7Pr3vWQbWS_uelqa5LGgrXIE,12957
76
76
  mcp_proxy_adapter/core/security_factory.py,sha256=M-1McwUOmuV7Eo-m_P2undtJVNK_KIjDx8o_uRY8rLo,8005
@@ -83,29 +83,35 @@ mcp_proxy_adapter/core/transport_manager.py,sha256=eJbGa3gDVFUBFUzMK5KEmpbUDXOOS
83
83
  mcp_proxy_adapter/core/unified_config_adapter.py,sha256=zBGYdLDZ3G8f3Y9tmtm0Ne0UXIfEaNHR4Ik2W3ErkLc,22814
84
84
  mcp_proxy_adapter/core/utils.py,sha256=wBdDYBDWQ6zbwrnl9tykHjo0FjJVsLT_x8Bjk1lZX60,3270
85
85
  mcp_proxy_adapter/examples/__init__.py,sha256=k1F-EotAFbJ3JvK_rNgiH4bUztmxIWtYn0AfbAZ1ZGs,450
86
- mcp_proxy_adapter/examples/create_certificates_simple.py,sha256=xoa4VtKzb9y7Mn8VqcK-uH2q7Bf89vrWG6G3LQmhJng,27086
87
- mcp_proxy_adapter/examples/create_test_configs.py,sha256=G27Ia7EyX7p2gAknI7Gi3CSovWm7cCEdORkBXuPg4VY,13360
86
+ mcp_proxy_adapter/examples/bugfix_certificate_config.py,sha256=YGBE_SI6wYZUJLWl7-fP1OWXiSH4mHJAZHApgQWvG7s,10529
87
+ mcp_proxy_adapter/examples/cert_manager_bugfix.py,sha256=UWUwItjqHqSnOMHocsz40_3deoZE8-vdROLW9y2fEns,7259
88
+ mcp_proxy_adapter/examples/config_builder.py,sha256=Uiu6m_L3UT9dHlqyc5sVWF7QSzJR6sM7Otv1CXGYfsg,24438
89
+ mcp_proxy_adapter/examples/config_cli.py,sha256=ZhVG6XEpTFe5-MzELByVsUh0AD4bHPBZeoXnGWbqifs,11059
90
+ mcp_proxy_adapter/examples/create_test_configs.py,sha256=9TrvLa4-bWLPu0SB1JXwWuCsjj-4Vz3yAdowcHtCSSA,8228
88
91
  mcp_proxy_adapter/examples/debug_request_state.py,sha256=Z3Gy2-fWtu7KIV9OkzGDLVz7TpL_h9V_99ica40uQBU,4489
89
92
  mcp_proxy_adapter/examples/debug_role_chain.py,sha256=GLVXC2fJUwP8UJnXHchd1t-H53cjWLJI3RqTPrKmaak,8750
90
93
  mcp_proxy_adapter/examples/demo_client.py,sha256=en2Rtb70B1sQmhL-vdQ4PDpKNNl_mfll2YCFT_jFCAg,10191
91
94
  mcp_proxy_adapter/examples/generate_all_certificates.py,sha256=lLP5RKmJwpSyprvrxQXFt_xcN4aiUzlIxk5WVdXx2Fk,19024
92
- mcp_proxy_adapter/examples/generate_certificates.py,sha256=VRJnT9Za2Wk_oKRT5g2SA7qcGeBSxZm9wPMOM5i50T0,6707
93
- mcp_proxy_adapter/examples/generate_certificates_and_tokens.py,sha256=hUCoJH3fy5WeR_YMHj-_W0mR0ZKUWqewH4FVN3yWyrM,17972
94
- mcp_proxy_adapter/examples/generate_test_configs.py,sha256=FWg_QFJAWinI1lw05RccX4_VbhsCBEKPpZA6I9v6KAs,14379
95
+ mcp_proxy_adapter/examples/generate_certificates_bugfix.py,sha256=LskoIezj67PZqqrB8WgCO9bFPqPLRuNwUAt8I3bDT4o,15768
96
+ mcp_proxy_adapter/examples/generate_certificates_cli.py,sha256=jb5bdNhoODL6qTWBdx4bNR9BVKo_lbzfWK91u5XuWXA,16986
97
+ mcp_proxy_adapter/examples/generate_certificates_fixed.py,sha256=6zJj9xdEuwj-ZO2clMoB7pNj5hW4IgwK-qsLPzuq8VQ,12566
98
+ mcp_proxy_adapter/examples/generate_certificates_framework.py,sha256=TGLyy4AJNI0w-Dd2FUQyX2sOXt05o_q4zkjoapzG1Wc,15017
99
+ mcp_proxy_adapter/examples/generate_certificates_openssl.py,sha256=5V4B8Ys_-FZsDh-CH7BNf1XXkMtpidkm4iecY0XCFuE,16891
95
100
  mcp_proxy_adapter/examples/proxy_registration_example.py,sha256=vemRhftnjbiOBCJkmtDGqlWQ8syTG0a8755GCOnaQsg,12503
101
+ mcp_proxy_adapter/examples/required_certificates.py,sha256=YW9-V78oFiZ-FmHlGP-8FQFS569VdDVyq9hfvCv31pk,7133
96
102
  mcp_proxy_adapter/examples/run_example.py,sha256=yp-a6HIrSk3ddQmbn0KkuKwErId0aNfj028TE6U-zmY,2626
97
- mcp_proxy_adapter/examples/run_full_test_suite.py,sha256=KNlyAiHWvz2Cd3tMeg-ZRVbmgKs2c9A-n1df5sbzMtI,20964
103
+ mcp_proxy_adapter/examples/run_full_test_suite.py,sha256=Zd7SINqi4UdiwDWaZrerh4e35XTqAUVApulEYtZx39M,25613
98
104
  mcp_proxy_adapter/examples/run_proxy_server.py,sha256=SBLSSY2F_VEBQD3MsCE_Pa9xFE6Sszr3vHdE9QOEN4Y,5242
99
- mcp_proxy_adapter/examples/run_security_tests.py,sha256=3mgp6fbPknI2fljpuedvtwoY1DzT_-UlOR45fHrkO0A,26215
100
- mcp_proxy_adapter/examples/run_security_tests_fixed.py,sha256=2BKMT0_-FhmcZA73hdQOt2XR7Cgb9Sq8qBI88BkwAAA,10934
101
- mcp_proxy_adapter/examples/security_test_client.py,sha256=b6Iht7DPSzmWpCrwTXyltjTjb-RT-I6PXXwfFuIksJ0,36159
105
+ mcp_proxy_adapter/examples/run_security_tests_fixed.py,sha256=bZpMdKrfghP1NV2hf1d1TVXLZHgj2zgeuHZlFQ59hKQ,11853
106
+ mcp_proxy_adapter/examples/security_test_client.py,sha256=2I0x7ViznpecXE6AOYH3TcUMVMumLK7xJ20lxPsvjsc,47937
102
107
  mcp_proxy_adapter/examples/setup_test_environment.py,sha256=JkMqLpH5ZmkNKE7-WT52_kYMxEKLFOyQWbtip29TeiU,51629
103
108
  mcp_proxy_adapter/examples/simple_protocol_test.py,sha256=BzFUZvK9Fih3aG4IFLQTZPyPe_s6YjpZfB6uZmQ76rw,3969
104
109
  mcp_proxy_adapter/examples/test_config.py,sha256=ekEoUZe9q484vU_0IxOVhQdNMVJXG3IpmQpP--VmuDI,6491
105
- mcp_proxy_adapter/examples/test_config_generator.py,sha256=PBXk1V_awJ-iBlbE66Pme5sQwu6CJDxkmqgm8uPtM58,4091
110
+ mcp_proxy_adapter/examples/test_config_builder.py,sha256=qd3tRHVP-dXY2PPxQM0h1VOYYZohrgP3bzRGk2EBTDg,19729
106
111
  mcp_proxy_adapter/examples/test_examples.py,sha256=CYlVatdHUVC_rwv4NsvxFG3GXiKIyxPDUH43BOJHjrU,12330
107
112
  mcp_proxy_adapter/examples/test_protocol_examples.py,sha256=yCZzZrJ9ICXMkF1bAMozpin2QeTMI653bggPAZTRAUE,12138
108
113
  mcp_proxy_adapter/examples/universal_client.py,sha256=n1-cBPOiCipA86Zcc_mI_jMywDMZS1p3u5JT3AqTsrQ,27577
114
+ mcp_proxy_adapter/examples/update_config_certificates.py,sha256=ObGF5oNQ9OStryUvFDXxrN-olRMKdSOrl5KSwARF7EY,4608
109
115
  mcp_proxy_adapter/examples/basic_framework/__init__.py,sha256=4aYD--R6hy9n9CUxj7Osb9HcdVUMJ6_cfpu4ujkbCwI,345
110
116
  mcp_proxy_adapter/examples/basic_framework/main.py,sha256=XdGrD_52hhCVHwqx4XmfVmd7tlfp6WE-qZ0gw05SyB0,1792
111
117
  mcp_proxy_adapter/examples/basic_framework/commands/__init__.py,sha256=_VQNLUEdsxUG-4yt9BZI_vtOxHAdGG0OUSsP6Wj-Vz4,76
@@ -120,11 +126,8 @@ mcp_proxy_adapter/examples/full_application/commands/dynamic_calculator_command.
120
126
  mcp_proxy_adapter/examples/full_application/hooks/__init__.py,sha256=ORG4cL8cSXEMmZ0CEPz75OVuwg54pdDm2GIBpP4dtcs,200
121
127
  mcp_proxy_adapter/examples/full_application/hooks/application_hooks.py,sha256=vcMHakKOt9pvJDZ6XfgvcYJfrrxg-RnIC8wX6LPqKvA,3500
122
128
  mcp_proxy_adapter/examples/full_application/hooks/builtin_command_hooks.py,sha256=P5KjODcVPier-nxjWWpG7yO7ppSjSx-6BJ9FxArD-ps,2988
123
- mcp_proxy_adapter/examples/scripts/config_generator.py,sha256=SKFlRRCE_pEHGbfjDuzfKpvV2DMwG6lRfK90uJwRlJM,33410
124
- mcp_proxy_adapter/examples/scripts/create_certificates_simple.py,sha256=yCWdUIhMSDPwoPhuLR9rhPdf7jLN5hCjzNfYYgVyHnw,27769
125
- mcp_proxy_adapter/examples/scripts/generate_certificates_and_tokens.py,sha256=hUCoJH3fy5WeR_YMHj-_W0mR0ZKUWqewH4FVN3yWyrM,17972
126
- mcp_proxy_adapter-6.4.43.dist-info/METADATA,sha256=rWLebAc3WwWGvaVy5g-uNGKAZbhxqYHOI4G1V1HczlE,6087
127
- mcp_proxy_adapter-6.4.43.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
128
- mcp_proxy_adapter-6.4.43.dist-info/entry_points.txt,sha256=J3eV6ID0lt_VSp4lIdIgBFTqLCThgObNNxRCbyfiMHw,70
129
- mcp_proxy_adapter-6.4.43.dist-info/top_level.txt,sha256=JZT7vPLBYrtroX-ij68JBhJYbjDdghcV-DFySRy-Nnw,18
130
- mcp_proxy_adapter-6.4.43.dist-info/RECORD,,
129
+ mcp_proxy_adapter-6.4.45.dist-info/METADATA,sha256=B9glIAXiWWEDgkylpNt9DXSkwlauWxax6r-wO2JX6Co,8511
130
+ mcp_proxy_adapter-6.4.45.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
131
+ mcp_proxy_adapter-6.4.45.dist-info/entry_points.txt,sha256=Bf-O5Aq80n22Ayu9fI9BgidzWqwzIVaqextAddTuHZw,563
132
+ mcp_proxy_adapter-6.4.45.dist-info/top_level.txt,sha256=JZT7vPLBYrtroX-ij68JBhJYbjDdghcV-DFySRy-Nnw,18
133
+ mcp_proxy_adapter-6.4.45.dist-info/RECORD,,
@@ -0,0 +1,12 @@
1
+ [console_scripts]
2
+ mcp-proxy-adapter = mcp_proxy_adapter.__main__:main
3
+
4
+ [gui_scripts]
5
+ mcp-proxy-adapter-gui = mcp_proxy_adapter.examples.gui:main
6
+
7
+ [mcp_proxy_adapter.examples]
8
+ create_test_configs = mcp_proxy_adapter.examples.create_test_configs:main
9
+ generate_certificates = mcp_proxy_adapter.examples.generate_all_certificates:main
10
+ run_full_test_suite = mcp_proxy_adapter.examples.run_full_test_suite:main
11
+ run_security_tests = mcp_proxy_adapter.examples.run_security_tests_fixed:main
12
+ setup_test_environment = mcp_proxy_adapter.examples.setup_test_environment:main