mcp-proxy-adapter 3.1.6__tar.gz → 4.1.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.
Files changed (339) hide show
  1. {mcp_proxy_adapter-3.1.6/mcp_proxy_adapter.egg-info → mcp_proxy_adapter-4.1.0}/PKG-INFO +3 -3
  2. mcp_proxy_adapter-4.1.0/docs/EN/commands/reload_settings_command.md +183 -0
  3. mcp_proxy_adapter-4.1.0/docs/EN/commands/settings_command.md +298 -0
  4. mcp_proxy_adapter-4.1.0/docs/EN/development/HOOK_SYSTEM.md +346 -0
  5. mcp_proxy_adapter-4.1.0/docs/EN/development/command_auto_discovery.md +277 -0
  6. mcp_proxy_adapter-4.1.0/docs/EN/development/settings_management.md +345 -0
  7. mcp_proxy_adapter-4.1.0/docs/RU/commands/reload_settings_command.md +183 -0
  8. mcp_proxy_adapter-4.1.0/docs/RU/commands/settings_command.md +298 -0
  9. mcp_proxy_adapter-4.1.0/docs/RU/development/HOOK_SYSTEM.md +346 -0
  10. mcp_proxy_adapter-4.1.0/docs/RU/development/command_auto_discovery.md +277 -0
  11. mcp_proxy_adapter-4.1.0/docs/RU/development/settings_management.md +345 -0
  12. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/api/app.py +65 -27
  13. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/api/handlers.py +1 -1
  14. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/api/middleware/error_handling.py +11 -10
  15. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/api/tool_integration.py +5 -2
  16. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/api/tools.py +3 -3
  17. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/commands/base.py +19 -1
  18. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/commands/command_registry.py +254 -8
  19. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/commands/hooks.py +260 -0
  20. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/commands/reload_command.py +211 -0
  21. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/commands/reload_settings_command.py +125 -0
  22. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/commands/settings_command.py +189 -0
  23. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/config.py +16 -1
  24. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/core/__init__.py +44 -0
  25. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/core/logging.py +87 -34
  26. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/core/settings.py +376 -0
  27. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/core/utils.py +2 -2
  28. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/custom_openapi.py +81 -2
  29. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/README.md +124 -0
  30. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/__init__.py +7 -0
  31. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/basic_server/README.md +60 -0
  32. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/basic_server/__init__.py +7 -0
  33. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/basic_server/basic_custom_settings.json +39 -0
  34. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/basic_server/config.json +35 -0
  35. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/basic_server/custom_settings_example.py +238 -0
  36. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/basic_server/server.py +98 -0
  37. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/README.md +127 -0
  38. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/__init__.py +27 -0
  39. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/advanced_hooks.py +250 -0
  40. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/auto_commands/__init__.py +6 -0
  41. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/auto_commands/auto_echo_command.py +103 -0
  42. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/auto_commands/auto_info_command.py +111 -0
  43. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/config.json +62 -0
  44. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/custom_health_command.py +169 -0
  45. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/custom_help_command.py +215 -0
  46. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/custom_openapi_generator.py +76 -0
  47. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/custom_settings.json +96 -0
  48. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/custom_settings_manager.py +241 -0
  49. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/data_transform_command.py +135 -0
  50. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/echo_command.py +122 -0
  51. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/hooks.py +230 -0
  52. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/intercept_command.py +123 -0
  53. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/manual_echo_command.py +103 -0
  54. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/server.py +223 -0
  55. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/custom_commands/test_hooks.py +176 -0
  56. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/deployment/README.md +49 -0
  57. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/deployment/__init__.py +7 -0
  58. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/deployment/config.development.json +8 -0
  59. {mcp_proxy_adapter-3.1.6/examples/basic_example → mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/deployment}/config.json +11 -7
  60. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/deployment/config.production.json +12 -0
  61. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/deployment/config.staging.json +11 -0
  62. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/deployment/docker-compose.yml +31 -0
  63. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/deployment/run.sh +43 -0
  64. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/examples/deployment/run_docker.sh +84 -0
  65. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/openapi.py +3 -2
  66. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/tests/api/test_custom_openapi.py +617 -0
  67. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/tests/api/test_handlers.py +522 -0
  68. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/tests/api/test_schemas.py +546 -0
  69. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/tests/api/test_tool_integration.py +531 -0
  70. mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/tests/unit/test_base_command.py +436 -0
  71. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/version.py +1 -1
  72. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0/mcp_proxy_adapter.egg-info}/PKG-INFO +3 -3
  73. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter.egg-info/SOURCES.txt +100 -53
  74. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter.egg-info/top_level.txt +0 -1
  75. mcp_proxy_adapter-4.1.0/pyproject.toml +153 -0
  76. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/requirements.txt +1 -4
  77. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/setup.py +4 -4
  78. mcp_proxy_adapter-4.1.0/tests/api/test_app.py +659 -0
  79. mcp_proxy_adapter-4.1.0/tests/api/test_app_extended.py +390 -0
  80. mcp_proxy_adapter-4.1.0/tests/api/test_auth.py +471 -0
  81. mcp_proxy_adapter-4.1.0/tests/api/test_error_handling.py +327 -0
  82. mcp_proxy_adapter-4.1.0/tests/api/test_handlers_extended.py +392 -0
  83. mcp_proxy_adapter-4.1.0/tests/api/test_middleware_base.py +246 -0
  84. mcp_proxy_adapter-4.1.0/tests/api/test_middleware_logging.py +338 -0
  85. mcp_proxy_adapter-4.1.0/tests/api/test_middleware_performance.py +267 -0
  86. mcp_proxy_adapter-4.1.0/tests/api/test_openapi.py +356 -0
  87. mcp_proxy_adapter-4.1.0/tests/api/test_rate_limit.py +106 -0
  88. mcp_proxy_adapter-4.1.0/tests/api/test_schemas_extended.py +347 -0
  89. mcp_proxy_adapter-4.1.0/tests/api/test_schemas_final.py +193 -0
  90. mcp_proxy_adapter-4.1.0/tests/api/test_tool_integration.py +368 -0
  91. mcp_proxy_adapter-4.1.0/tests/api/test_tools.py +309 -0
  92. mcp_proxy_adapter-4.1.0/tests/commands/test_base_command_extended.py +490 -0
  93. mcp_proxy_adapter-4.1.0/tests/commands/test_base_command_final.py +806 -0
  94. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/tests/commands/test_command_di.py +6 -8
  95. mcp_proxy_adapter-4.1.0/tests/commands/test_command_registry_extended.py +527 -0
  96. mcp_proxy_adapter-4.1.0/tests/commands/test_config_command_extended.py +252 -0
  97. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/tests/commands/test_echo_command_di.py +15 -6
  98. mcp_proxy_adapter-4.1.0/tests/commands/test_health_command_extended.py +377 -0
  99. mcp_proxy_adapter-4.1.0/tests/commands/test_help_command.py +315 -0
  100. mcp_proxy_adapter-4.1.0/tests/commands/test_hooks.py +422 -0
  101. mcp_proxy_adapter-4.1.0/tests/commands/test_priority_commands.py +219 -0
  102. mcp_proxy_adapter-4.1.0/tests/commands/test_reload_commands_extended.py +453 -0
  103. mcp_proxy_adapter-4.1.0/tests/commands/test_result.py +404 -0
  104. mcp_proxy_adapter-4.1.0/tests/commands/test_settings_command_extended.py +300 -0
  105. mcp_proxy_adapter-4.1.0/tests/core/test_config.py +366 -0
  106. mcp_proxy_adapter-4.1.0/tests/core/test_errors.py +439 -0
  107. mcp_proxy_adapter-4.1.0/tests/core/test_logging.py +389 -0
  108. mcp_proxy_adapter-4.1.0/tests/core/test_settings_extended.py +557 -0
  109. mcp_proxy_adapter-4.1.0/tests/core/test_utils.py +326 -0
  110. mcp_proxy_adapter-4.1.0/tests/examples/test_advanced_hooks.py +297 -0
  111. mcp_proxy_adapter-4.1.0/tests/examples/test_auto_echo_command.py +198 -0
  112. mcp_proxy_adapter-4.1.0/tests/examples/test_auto_info_command.py +233 -0
  113. mcp_proxy_adapter-4.1.0/tests/examples/test_basic_server.py +279 -0
  114. mcp_proxy_adapter-4.1.0/tests/examples/test_custom_commands.py +212 -0
  115. mcp_proxy_adapter-4.1.0/tests/examples/test_custom_commands_hooks.py +449 -0
  116. mcp_proxy_adapter-4.1.0/tests/examples/test_custom_commands_server.py +268 -0
  117. mcp_proxy_adapter-4.1.0/tests/examples/test_custom_health_command.py +458 -0
  118. mcp_proxy_adapter-4.1.0/tests/examples/test_custom_help_command.py +359 -0
  119. mcp_proxy_adapter-4.1.0/tests/examples/test_custom_openapi_generator.py +320 -0
  120. mcp_proxy_adapter-4.1.0/tests/examples/test_custom_settings_manager.py +364 -0
  121. mcp_proxy_adapter-4.1.0/tests/examples/test_data_transform_command.py +267 -0
  122. mcp_proxy_adapter-4.1.0/tests/examples/test_echo_command.py +290 -0
  123. mcp_proxy_adapter-4.1.0/tests/examples/test_intercept_command.py +297 -0
  124. mcp_proxy_adapter-4.1.0/tests/examples/test_manual_echo_command.py +213 -0
  125. mcp_proxy_adapter-4.1.0/tests/test_custom_openapi_extended.py +297 -0
  126. mcp_proxy_adapter-3.1.6/examples/__init__.py +0 -19
  127. mcp_proxy_adapter-3.1.6/examples/anti_patterns/README.md +0 -51
  128. mcp_proxy_adapter-3.1.6/examples/anti_patterns/__init__.py +0 -9
  129. mcp_proxy_adapter-3.1.6/examples/anti_patterns/bad_design/README.md +0 -72
  130. mcp_proxy_adapter-3.1.6/examples/anti_patterns/bad_design/global_state.py +0 -170
  131. mcp_proxy_adapter-3.1.6/examples/anti_patterns/bad_design/monolithic_command.py +0 -272
  132. mcp_proxy_adapter-3.1.6/examples/basic_example/README.md +0 -245
  133. mcp_proxy_adapter-3.1.6/examples/basic_example/__init__.py +0 -8
  134. mcp_proxy_adapter-3.1.6/examples/basic_example/commands/__init__.py +0 -5
  135. mcp_proxy_adapter-3.1.6/examples/basic_example/commands/echo_command.py +0 -95
  136. mcp_proxy_adapter-3.1.6/examples/basic_example/commands/math_command.py +0 -151
  137. mcp_proxy_adapter-3.1.6/examples/basic_example/commands/time_command.py +0 -152
  138. mcp_proxy_adapter-3.1.6/examples/basic_example/docs/EN/README.md +0 -177
  139. mcp_proxy_adapter-3.1.6/examples/basic_example/docs/RU/README.md +0 -177
  140. mcp_proxy_adapter-3.1.6/examples/basic_example/server.py +0 -151
  141. mcp_proxy_adapter-3.1.6/examples/basic_example/tests/conftest.py +0 -243
  142. mcp_proxy_adapter-3.1.6/examples/check_vstl_schema.py +0 -106
  143. mcp_proxy_adapter-3.1.6/examples/commands/echo_command.py +0 -52
  144. mcp_proxy_adapter-3.1.6/examples/commands/echo_command_di.py +0 -152
  145. mcp_proxy_adapter-3.1.6/examples/commands/echo_result.py +0 -65
  146. mcp_proxy_adapter-3.1.6/examples/commands/get_date_command.py +0 -98
  147. mcp_proxy_adapter-3.1.6/examples/commands/new_uuid4_command.py +0 -91
  148. mcp_proxy_adapter-3.1.6/examples/complete_example/Dockerfile +0 -24
  149. mcp_proxy_adapter-3.1.6/examples/complete_example/README.md +0 -92
  150. mcp_proxy_adapter-3.1.6/examples/complete_example/__init__.py +0 -8
  151. mcp_proxy_adapter-3.1.6/examples/complete_example/commands/__init__.py +0 -5
  152. mcp_proxy_adapter-3.1.6/examples/complete_example/commands/system_command.py +0 -328
  153. mcp_proxy_adapter-3.1.6/examples/complete_example/config.json +0 -41
  154. mcp_proxy_adapter-3.1.6/examples/complete_example/configs/config.dev.yaml +0 -40
  155. mcp_proxy_adapter-3.1.6/examples/complete_example/configs/config.docker.yaml +0 -40
  156. mcp_proxy_adapter-3.1.6/examples/complete_example/docker-compose.yml +0 -35
  157. mcp_proxy_adapter-3.1.6/examples/complete_example/requirements.txt +0 -20
  158. mcp_proxy_adapter-3.1.6/examples/complete_example/server.py +0 -113
  159. mcp_proxy_adapter-3.1.6/examples/di_example/.pytest_cache/README.md +0 -8
  160. mcp_proxy_adapter-3.1.6/examples/di_example/server.py +0 -249
  161. mcp_proxy_adapter-3.1.6/examples/fix_vstl_help.py +0 -123
  162. mcp_proxy_adapter-3.1.6/examples/minimal_example/README.md +0 -65
  163. mcp_proxy_adapter-3.1.6/examples/minimal_example/__init__.py +0 -8
  164. mcp_proxy_adapter-3.1.6/examples/minimal_example/config.json +0 -14
  165. mcp_proxy_adapter-3.1.6/examples/minimal_example/main.py +0 -136
  166. mcp_proxy_adapter-3.1.6/examples/minimal_example/simple_server.py +0 -163
  167. mcp_proxy_adapter-3.1.6/examples/minimal_example/tests/conftest.py +0 -171
  168. mcp_proxy_adapter-3.1.6/examples/minimal_example/tests/test_hello_command.py +0 -111
  169. mcp_proxy_adapter-3.1.6/examples/minimal_example/tests/test_integration.py +0 -181
  170. mcp_proxy_adapter-3.1.6/examples/patch_vstl_service.py +0 -105
  171. mcp_proxy_adapter-3.1.6/examples/patch_vstl_service_mcp.py +0 -108
  172. mcp_proxy_adapter-3.1.6/examples/server.py +0 -69
  173. mcp_proxy_adapter-3.1.6/examples/simple_server.py +0 -128
  174. mcp_proxy_adapter-3.1.6/examples/test_package_3.1.4.py +0 -177
  175. mcp_proxy_adapter-3.1.6/examples/test_server.py +0 -134
  176. mcp_proxy_adapter-3.1.6/examples/tool_description_example.py +0 -82
  177. mcp_proxy_adapter-3.1.6/mcp_proxy_adapter/py.typed +0 -0
  178. mcp_proxy_adapter-3.1.6/mcp_proxy_adapter/tests/__init__.py +0 -0
  179. mcp_proxy_adapter-3.1.6/mcp_proxy_adapter/tests/unit/test_base_command.py +0 -130
  180. mcp_proxy_adapter-3.1.6/pyproject.toml +0 -70
  181. mcp_proxy_adapter-3.1.6/tests/commands/test_help_command.py +0 -202
  182. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/LICENSE +0 -0
  183. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/MANIFEST.in +0 -0
  184. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/README.md +0 -0
  185. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/API_SCHEMA.md +0 -0
  186. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/AUTOMATED_PUBLISHING.md +0 -0
  187. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/BASIC_ARCHITECTURE.md +0 -0
  188. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/COMMAND_CHECKLIST.md +0 -0
  189. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/COMMAND_RESULTS.md +0 -0
  190. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/COMMAND_TEMPLATE.md +0 -0
  191. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/CONFIGURATION_PRINCIPLES.md +0 -0
  192. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/DOCUMENTATION_MAP.md +0 -0
  193. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/DOCUMENTATION_STANDARDS.md +0 -0
  194. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/ERROR_HANDLING.md +0 -0
  195. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/EXAMPLES_COMMAND_CLASSES.md +0 -0
  196. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/GLOSSARY.md +0 -0
  197. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/LOGGING_SYSTEM.md +0 -0
  198. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/NAMING_STANDARDS.md +0 -0
  199. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/OPENAPI_SCHEMA.md +0 -0
  200. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/PROJECT_EXTENSION_GUIDE.md +0 -0
  201. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/PROJECT_IDEOLOGY.md +0 -0
  202. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/PROJECT_RULES.md +0 -0
  203. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/PROJECT_STRUCTURE.md +0 -0
  204. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/PUBLISHING_TO_PYPI.md +0 -0
  205. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/README.md +0 -0
  206. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/api/cmd_endpoint.md +0 -0
  207. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/api/errors.md +0 -0
  208. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/api/intro.md +0 -0
  209. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/api/requests.md +0 -0
  210. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/api/responses.md +0 -0
  211. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/commands/get_date_command.md +0 -0
  212. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/commands/help_command.md +0 -0
  213. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/commands/index.md +0 -0
  214. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/commands/new_uuid4_command.md +0 -0
  215. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/development/COMMAND_METADATA_ENHANCEMENT.md +0 -0
  216. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/development/DEPENDENCY_INJECTION.md +0 -0
  217. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/development/METADATA_COMMANDS.md +0 -0
  218. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/development/OPENAPI_CUSTOMIZATION.md +0 -0
  219. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/development/REMOVE_COMMAND_GUIDE.md +0 -0
  220. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/development/TOOL_INTEGRATION.md +0 -0
  221. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/development/architecture.md +0 -0
  222. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/examples/README.md +0 -0
  223. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/examples/anti_patterns.md +0 -0
  224. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/examples/basic_example.md +0 -0
  225. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/examples/complete_example.md +0 -0
  226. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/examples/minimal_example.md +0 -0
  227. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/testing/README.md +0 -0
  228. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/user/basic_usage.md +0 -0
  229. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/user/configuration.md +0 -0
  230. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/user/deployment.md +0 -0
  231. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/user/examples.md +0 -0
  232. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/EN/user/installation.md +0 -0
  233. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/API_SCHEMA.md +0 -0
  234. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/AUTOMATED_PUBLISHING.md +0 -0
  235. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/BASIC_ARCHITECTURE.md +0 -0
  236. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/COMMAND_CHECKLIST.md +0 -0
  237. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/COMMAND_RESULTS.md +0 -0
  238. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/COMMAND_TEMPLATE.md +0 -0
  239. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/CONFIGURATION_PRINCIPLES.md +0 -0
  240. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/DOCUMENTATION_MAP.md +0 -0
  241. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/DOCUMENTATION_STANDARDS.md +0 -0
  242. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/ERROR_HANDLING.md +0 -0
  243. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/EXAMPLES_COMMAND_CLASSES.md +0 -0
  244. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/GLOSSARY.md +0 -0
  245. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/LOGGING_SYSTEM.md +0 -0
  246. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/NAMING_STANDARDS.md +0 -0
  247. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/OPENAPI_SCHEMA.md +0 -0
  248. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/PROJECT_EXTENSION_GUIDE.md +0 -0
  249. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/PROJECT_IDEOLOGY.md +0 -0
  250. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/PROJECT_RULES.md +0 -0
  251. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/PROJECT_STRUCTURE.md +0 -0
  252. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/PUBLISHING_TO_PYPI.md +0 -0
  253. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/README.md +0 -0
  254. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/api/cmd_endpoint.md +0 -0
  255. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/api/errors.md +0 -0
  256. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/api/intro.md +0 -0
  257. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/api/requests.md +0 -0
  258. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/api/responses.md +0 -0
  259. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/commands/get_date_command.md +0 -0
  260. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/commands/help_command.md +0 -0
  261. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/commands/index.md +0 -0
  262. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/commands/new_uuid4_command.md +0 -0
  263. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/development/COMMAND_METADATA_ENHANCEMENT.md +0 -0
  264. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/development/DEPENDENCY_INJECTION.md +0 -0
  265. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/development/METADATA_COMMANDS.md +0 -0
  266. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/development/OPENAPI_CUSTOMIZATION.md +0 -0
  267. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/development/PLAN_REALIZACII_METADATA.md +0 -0
  268. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/development/REMOVE_COMMAND_GUIDE.md +0 -0
  269. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/development/TOOL_INTEGRATION.md +0 -0
  270. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/development/architecture.md +0 -0
  271. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/examples/README.md +0 -0
  272. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/examples/anti_patterns.md +0 -0
  273. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/examples/basic_example.md +0 -0
  274. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/examples/complete_example.md +0 -0
  275. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/examples/minimal_example.md +0 -0
  276. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/testing/README.md +0 -0
  277. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/user/basic_usage.md +0 -0
  278. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/user/configuration.md +0 -0
  279. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/user/deployment.md +0 -0
  280. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/user/examples.md +0 -0
  281. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/docs/RU/user/installation.md +0 -0
  282. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/__init__.py +0 -0
  283. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/api/__init__.py +0 -0
  284. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/api/middleware/__init__.py +0 -0
  285. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/api/middleware/auth.py +0 -0
  286. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/api/middleware/base.py +0 -0
  287. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/api/middleware/logging.py +0 -0
  288. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/api/middleware/performance.py +0 -0
  289. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/api/middleware/rate_limit.py +0 -0
  290. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/api/schemas.py +0 -0
  291. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/commands/__init__.py +0 -0
  292. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/commands/config_command.py +0 -0
  293. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/commands/dependency_container.py +0 -0
  294. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/commands/health_command.py +0 -0
  295. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/commands/help_command.py +0 -0
  296. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/commands/result.py +0 -0
  297. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/core/errors.py +0 -0
  298. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/schemas/base_schema.json +0 -0
  299. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/schemas/openapi_schema.json +0 -0
  300. {mcp_proxy_adapter-3.1.6/mcp_proxy_adapter/core → mcp_proxy_adapter-4.1.0/mcp_proxy_adapter/tests}/__init__.py +0 -0
  301. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/api/__init__.py +0 -0
  302. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/api/test_cmd_endpoint.py +0 -0
  303. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/api/test_middleware.py +0 -0
  304. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/commands/__init__.py +0 -0
  305. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/commands/test_config_command.py +0 -0
  306. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/commands/test_echo_command.py +0 -0
  307. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/commands/test_help_command.py +0 -0
  308. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/conftest.py +0 -0
  309. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/functional/__init__.py +0 -0
  310. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/functional/test_api.py +0 -0
  311. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/integration/__init__.py +0 -0
  312. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/integration/test_cmd_integration.py +0 -0
  313. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/integration/test_integration.py +0 -0
  314. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/performance/__init__.py +0 -0
  315. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/performance/test_performance.py +0 -0
  316. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/stubs/__init__.py +0 -0
  317. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/stubs/echo_command.py +0 -0
  318. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/test_api_endpoints.py +0 -0
  319. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/test_api_handlers.py +0 -0
  320. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/test_base_command.py +0 -0
  321. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/test_batch_requests.py +0 -0
  322. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/test_command_registry.py +0 -0
  323. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/test_config.py +0 -0
  324. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/test_utils.py +0 -0
  325. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/unit/__init__.py +0 -0
  326. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter/tests/unit/test_config.py +0 -0
  327. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter.egg-info/dependency_links.txt +0 -0
  328. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/mcp_proxy_adapter.egg-info/requires.txt +0 -0
  329. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/setup.cfg +0 -0
  330. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/tests/__init__.py +0 -0
  331. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/tests/api/__init__.py +0 -0
  332. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/tests/api/test_handler_dependency_injection.py +0 -0
  333. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/tests/api/test_tool_description.py +0 -0
  334. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/tests/commands/__init__.py +0 -0
  335. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/tests/commands/test_command_metadata.py +0 -0
  336. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/tests/commands/test_dependency_container.py +0 -0
  337. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/tests/conftest.py +0 -0
  338. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/tests/integration/__init__.py +0 -0
  339. {mcp_proxy_adapter-3.1.6 → mcp_proxy_adapter-4.1.0}/tests/integration/test_di_integration.py +0 -0
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-proxy-adapter
3
- Version: 3.1.6
3
+ Version: 4.1.0
4
4
  Summary: Reliable microservice with unified JSON-RPC endpoint
5
- Home-page: https://github.com/yourusername/mcp-proxy-adapter
6
- Author: MCP Team
5
+ Home-page: https://github.com/maverikod/mcp-proxy-adapter
6
+ Author: Vasiliy Zdanovskiy
7
7
  Author-email: Vasiliy Zubarev <vasiliy.zubarev@example.com>
8
8
  License: MIT License
9
9
 
@@ -0,0 +1,183 @@
1
+ # Reload Settings Command
2
+
3
+ The `reload_settings` command allows you to reload configuration settings from files and environment variables at runtime.
4
+
5
+ ## Description
6
+
7
+ The reload settings command provides the ability to:
8
+ - Reload configuration from JSON files
9
+ - Reload environment variables
10
+ - Update custom settings
11
+ - Get current custom settings after reload
12
+
13
+ ## Command Information
14
+
15
+ - **Name**: `reload_settings`
16
+ - **Description**: Reload configuration settings from files and environment variables
17
+ - **Category**: Configuration Management
18
+
19
+ ## Parameters
20
+
21
+ This command does not accept any parameters.
22
+
23
+ ## Response Format
24
+
25
+ ### Success Response
26
+
27
+ ```json
28
+ {
29
+ "result": {
30
+ "success": true,
31
+ "message": "Settings reloaded successfully from configuration files and environment variables",
32
+ "custom_settings": {
33
+ "application": {
34
+ "name": "Extended MCP Proxy Server with Custom Settings",
35
+ "version": "2.1.0",
36
+ "environment": "development"
37
+ },
38
+ "features": {
39
+ "advanced_hooks": true,
40
+ "custom_commands": true,
41
+ "data_transformation": true
42
+ },
43
+ "security": {
44
+ "enable_authentication": false,
45
+ "max_request_size": "15MB"
46
+ }
47
+ }
48
+ }
49
+ }
50
+ ```
51
+
52
+ ### Error Response
53
+
54
+ ```json
55
+ {
56
+ "result": {
57
+ "success": false,
58
+ "message": "Failed to reload settings",
59
+ "custom_settings": {},
60
+ "error_message": "Failed to reload settings: Configuration file not found"
61
+ }
62
+ }
63
+ ```
64
+
65
+ ## Usage Examples
66
+
67
+ ### Basic Usage
68
+
69
+ ```bash
70
+ curl -X POST http://localhost:8000/cmd \
71
+ -H "Content-Type: application/json" \
72
+ -d '{
73
+ "command": "reload_settings",
74
+ "params": {}
75
+ }'
76
+ ```
77
+
78
+ ### Python Example
79
+
80
+ ```python
81
+ import requests
82
+
83
+ response = requests.post(
84
+ "http://localhost:8000/cmd",
85
+ json={
86
+ "command": "reload_settings",
87
+ "params": {}
88
+ }
89
+ )
90
+
91
+ result = response.json()
92
+ if result["result"]["success"]:
93
+ print("✅ Settings reloaded successfully")
94
+ print(f"📋 Custom settings: {result['result']['custom_settings']}")
95
+ else:
96
+ print(f"❌ Failed to reload settings: {result['result']['error_message']}")
97
+ ```
98
+
99
+ ## What Gets Reloaded
100
+
101
+ When you execute the `reload_settings` command, the following happens:
102
+
103
+ 1. **Configuration Files**: Reloads settings from `config.json` and other configuration files
104
+ 2. **Environment Variables**: Reloads settings from environment variables with `SERVICE_` prefix
105
+ 3. **Custom Settings**: Updates custom settings that were added via `add_custom_settings()`
106
+ 4. **Framework Settings**: Updates server, logging, and commands settings
107
+
108
+ ## Integration with Custom Settings
109
+
110
+ The command works seamlessly with the custom settings system:
111
+
112
+ ```python
113
+ from mcp_proxy_adapter.core.settings import add_custom_settings, reload_settings
114
+
115
+ # Add custom settings
116
+ add_custom_settings({
117
+ "application": {
118
+ "name": "My Custom App",
119
+ "version": "1.0.0"
120
+ }
121
+ })
122
+
123
+ # Reload all settings (including custom ones)
124
+ reload_settings()
125
+ ```
126
+
127
+ ## Error Handling
128
+
129
+ The command provides comprehensive error handling:
130
+
131
+ - **File Not Found**: Gracefully handles missing configuration files
132
+ - **Invalid JSON**: Reports JSON parsing errors
133
+ - **Permission Errors**: Handles file access permission issues
134
+ - **Environment Variables**: Safely handles missing or invalid environment variables
135
+
136
+ ## Best Practices
137
+
138
+ 1. **Use After Configuration Changes**: Call this command after modifying configuration files
139
+ 2. **Monitor Response**: Always check the `success` field in the response
140
+ 3. **Handle Errors**: Implement proper error handling for failed reloads
141
+ 4. **Validate Settings**: Use the returned custom settings to verify the reload was successful
142
+ 5. **Log Operations**: Log reload operations for debugging and monitoring
143
+
144
+ ## Related Commands
145
+
146
+ - **`settings`**: Get, set, and manage individual settings
147
+ - **`config`**: Access framework configuration
148
+ - **`reload`**: Reload commands and configuration (more comprehensive)
149
+
150
+ ## Use Cases
151
+
152
+ ### Development Environment
153
+
154
+ ```bash
155
+ # After modifying config.json
156
+ curl -X POST http://localhost:8000/cmd \
157
+ -H "Content-Type: application/json" \
158
+ -d '{"command": "reload_settings", "params": {}}'
159
+ ```
160
+
161
+ ### Production Environment
162
+
163
+ ```bash
164
+ # After updating environment variables
165
+ export SERVICE_SERVER_PORT=8080
166
+ curl -X POST http://localhost:8000/cmd \
167
+ -H "Content-Type: application/json" \
168
+ -d '{"command": "reload_settings", "params": {}}'
169
+ ```
170
+
171
+ ### Custom Settings Management
172
+
173
+ ```python
174
+ # After adding custom settings programmatically
175
+ from mcp_proxy_adapter.core.settings import add_custom_settings
176
+
177
+ add_custom_settings({"feature_enabled": True})
178
+
179
+ # Reload to ensure all settings are up to date
180
+ curl -X POST http://localhost:8000/cmd \
181
+ -H "Content-Type: application/json" \
182
+ -d '{"command": "reload_settings", "params": {}}'
183
+ ```
@@ -0,0 +1,298 @@
1
+ # Settings Command
2
+
3
+ The `settings` command provides comprehensive configuration management capabilities for the MCP Proxy Adapter framework.
4
+
5
+ ## Description
6
+
7
+ The settings command allows you to:
8
+ - View all configuration settings
9
+ - Get specific configuration values
10
+ - Set configuration values dynamically
11
+ - Reload configuration from files
12
+
13
+ ## Command Information
14
+
15
+ - **Name**: `settings`
16
+ - **Description**: Manage framework settings and configuration
17
+ - **Category**: Configuration Management
18
+
19
+ ## Parameters
20
+
21
+ | Parameter | Type | Required | Default | Description |
22
+ |-----------|------|----------|---------|-------------|
23
+ | `operation` | string | Yes | `"get_all"` | Operation to perform: `get`, `set`, `get_all`, `reload` |
24
+ | `key` | string | No | - | Configuration key in dot notation (e.g., `server.host`, `custom.feature_enabled`) |
25
+ | `value` | any | No | - | Configuration value to set (for `set` operation) |
26
+
27
+ ### Operations
28
+
29
+ #### `get_all`
30
+ Retrieves all configuration settings.
31
+
32
+ **Parameters**: None required
33
+
34
+ **Example**:
35
+ ```json
36
+ {
37
+ "command": "settings",
38
+ "params": {
39
+ "operation": "get_all"
40
+ }
41
+ }
42
+ ```
43
+
44
+ #### `get`
45
+ Retrieves a specific configuration value.
46
+
47
+ **Parameters**:
48
+ - `key` (required): Configuration key in dot notation
49
+
50
+ **Example**:
51
+ ```json
52
+ {
53
+ "command": "settings",
54
+ "params": {
55
+ "operation": "get",
56
+ "key": "server.host"
57
+ }
58
+ }
59
+ ```
60
+
61
+ #### `set`
62
+ Sets a configuration value dynamically.
63
+
64
+ **Parameters**:
65
+ - `key` (required): Configuration key in dot notation
66
+ - `value` (required): Value to set
67
+
68
+ **Example**:
69
+ ```json
70
+ {
71
+ "command": "settings",
72
+ "params": {
73
+ "operation": "set",
74
+ "key": "custom.feature_enabled",
75
+ "value": true
76
+ }
77
+ }
78
+ ```
79
+
80
+ #### `reload`
81
+ Reloads configuration from files and environment variables.
82
+
83
+ **Parameters**: None required
84
+
85
+ **Example**:
86
+ ```json
87
+ {
88
+ "command": "settings",
89
+ "params": {
90
+ "operation": "reload"
91
+ }
92
+ }
93
+ ```
94
+
95
+ ## Response Format
96
+
97
+ ### Success Response
98
+
99
+ ```json
100
+ {
101
+ "result": {
102
+ "success": true,
103
+ "operation": "get_all",
104
+ "all_settings": {
105
+ "server": {
106
+ "host": "127.0.0.1",
107
+ "port": 8000,
108
+ "debug": true,
109
+ "log_level": "DEBUG"
110
+ },
111
+ "logging": {
112
+ "level": "DEBUG",
113
+ "log_dir": "./logs",
114
+ "log_file": "app.log"
115
+ },
116
+ "commands": {
117
+ "auto_discovery": true,
118
+ "discovery_path": "mcp_proxy_adapter.commands"
119
+ },
120
+ "custom": {
121
+ "feature_enabled": true
122
+ }
123
+ }
124
+ }
125
+ }
126
+ ```
127
+
128
+ ### Get Operation Response
129
+
130
+ ```json
131
+ {
132
+ "result": {
133
+ "success": true,
134
+ "operation": "get",
135
+ "key": "server.host",
136
+ "value": "127.0.0.1"
137
+ }
138
+ }
139
+ ```
140
+
141
+ ### Set Operation Response
142
+
143
+ ```json
144
+ {
145
+ "result": {
146
+ "success": true,
147
+ "operation": "set",
148
+ "key": "custom.feature_enabled",
149
+ "value": true
150
+ }
151
+ }
152
+ ```
153
+
154
+ ### Error Response
155
+
156
+ ```json
157
+ {
158
+ "result": {
159
+ "success": false,
160
+ "operation": "get",
161
+ "error_message": "Key is required for 'get' operation"
162
+ }
163
+ }
164
+ ```
165
+
166
+ ## Usage Examples
167
+
168
+ ### Get All Settings
169
+
170
+ ```bash
171
+ curl -X POST http://localhost:8000/cmd \
172
+ -H "Content-Type: application/json" \
173
+ -d '{
174
+ "command": "settings",
175
+ "params": {
176
+ "operation": "get_all"
177
+ }
178
+ }'
179
+ ```
180
+
181
+ ### Get Server Host
182
+
183
+ ```bash
184
+ curl -X POST http://localhost:8000/cmd \
185
+ -H "Content-Type: application/json" \
186
+ -d '{
187
+ "command": "settings",
188
+ "params": {
189
+ "operation": "get",
190
+ "key": "server.host"
191
+ }
192
+ }'
193
+ ```
194
+
195
+ ### Get Custom Setting
196
+
197
+ ```bash
198
+ curl -X POST http://localhost:8000/cmd \
199
+ -H "Content-Type: application/json" \
200
+ -d '{
201
+ "command": "settings",
202
+ "params": {
203
+ "operation": "get",
204
+ "key": "custom.features.hooks_enabled"
205
+ }
206
+ }'
207
+ ```
208
+
209
+ ### Set Custom Setting
210
+
211
+ ```bash
212
+ curl -X POST http://localhost:8000/cmd \
213
+ -H "Content-Type: application/json" \
214
+ -d '{
215
+ "command": "settings",
216
+ "params": {
217
+ "operation": "set",
218
+ "key": "custom.debug_mode",
219
+ "value": true
220
+ }
221
+ }'
222
+ ```
223
+
224
+ ### Reload Configuration
225
+
226
+ ```bash
227
+ curl -X POST http://localhost:8000/cmd \
228
+ -H "Content-Type: application/json" \
229
+ -d '{
230
+ "command": "settings",
231
+ "params": {
232
+ "operation": "reload"
233
+ }
234
+ }'
235
+ ```
236
+
237
+ ## Configuration Keys
238
+
239
+ ### Server Settings
240
+
241
+ - `server.host` - Server host address
242
+ - `server.port` - Server port number
243
+ - `server.debug` - Debug mode flag
244
+ - `server.log_level` - Server log level
245
+
246
+ ### Logging Settings
247
+
248
+ - `logging.level` - Logging level
249
+ - `logging.log_dir` - Log directory path
250
+ - `logging.log_file` - Main log file name
251
+ - `logging.error_log_file` - Error log file name
252
+ - `logging.access_log_file` - Access log file name
253
+ - `logging.max_file_size` - Maximum log file size
254
+ - `logging.backup_count` - Number of backup files
255
+ - `logging.format` - Log message format
256
+ - `logging.date_format` - Date format
257
+ - `logging.console_output` - Console output flag
258
+ - `logging.file_output` - File output flag
259
+
260
+ ### Commands Settings
261
+
262
+ - `commands.auto_discovery` - Auto discovery flag
263
+ - `commands.discovery_path` - Command discovery path
264
+ - `commands.custom_commands_path` - Custom commands path
265
+
266
+ ### Custom Settings
267
+
268
+ Any settings under the `custom` section can be accessed using dot notation:
269
+
270
+ - `custom.feature_enabled`
271
+ - `custom.api_version`
272
+ - `custom.features.hooks_enabled`
273
+ - `custom.nested.setting`
274
+
275
+ ## Error Handling
276
+
277
+ The command provides comprehensive error handling:
278
+
279
+ - **Missing Key**: Returns error when key is required but not provided
280
+ - **Invalid Operation**: Returns error for unsupported operations
281
+ - **Configuration Errors**: Handles configuration loading errors gracefully
282
+
283
+ ## Integration
284
+
285
+ The settings command integrates with:
286
+
287
+ - **Configuration System**: Uses the framework's configuration management
288
+ - **Logging System**: Respects logging configuration
289
+ - **Command Registry**: Available through the command registry
290
+ - **API Endpoints**: Accessible via `/cmd` and `/api/commands` endpoints
291
+
292
+ ## Best Practices
293
+
294
+ 1. **Use Dot Notation**: Access nested settings using dot notation (e.g., `custom.features.enabled`)
295
+ 2. **Provide Defaults**: Always handle cases where settings might not exist
296
+ 3. **Validate Values**: Validate configuration values before using them
297
+ 4. **Reload Carefully**: Use reload operation carefully as it overwrites dynamic changes
298
+ 5. **Error Handling**: Always check the `success` field in responses