mcp-proxy-adapter 6.6.4__py3-none-any.whl → 6.6.5__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.
@@ -86,10 +86,20 @@ def create_lifespan(config_path: Optional[str] = None):
86
86
  public_port = reg_cfg.get("public_port")
87
87
 
88
88
  # Check SSL configuration from new structure
89
- protocol = config.get("server.protocol", "http")
90
- verify_client = config.get("transport.verify_client", False)
91
- ssl_enabled = protocol in ["https", "mtls"] or verify_client
92
- protocol = "https" if ssl_enabled else "http"
89
+ # Priority: registration.protocol > server.protocol > fallback to http
90
+ reg_cfg = config.get("registration", {})
91
+ registration_protocol = reg_cfg.get("protocol")
92
+ server_protocol = config.get("server.protocol", "http")
93
+
94
+ if registration_protocol:
95
+ # Use protocol from registration configuration
96
+ # Convert mtls to https for URL construction (mTLS is still HTTPS)
97
+ protocol = "https" if registration_protocol == "mtls" else registration_protocol
98
+ else:
99
+ # Fallback to server protocol
100
+ verify_client = config.get("transport.verify_client", False)
101
+ ssl_enabled = server_protocol in ["https", "mtls"] or verify_client
102
+ protocol = "https" if ssl_enabled else "http"
93
103
 
94
104
  import os
95
105
  docker_host_addr = os.getenv("DOCKER_HOST_ADDR", "172.17.0.1")
@@ -135,10 +145,20 @@ def create_lifespan(config_path: Optional[str] = None):
135
145
  public_port = reg_cfg.get("public_port")
136
146
 
137
147
  # Determine protocol using the new configuration structure
138
- protocol_cfg = final_config.get("server", {}).get("protocol", "http")
139
- verify_client_cfg = final_config.get("transport", {}).get("verify_client", False)
140
- ssl_enabled_final = protocol_cfg in ["https", "mtls"] or verify_client_cfg
141
- protocol = "https" if ssl_enabled_final else "http"
148
+ # Priority: registration.protocol > server.protocol > fallback to http
149
+ reg_cfg = final_config.get("registration", final_config.get("proxy_registration", {}))
150
+ registration_protocol = reg_cfg.get("protocol")
151
+ server_protocol = final_config.get("server", {}).get("protocol", "http")
152
+
153
+ if registration_protocol:
154
+ # Use protocol from registration configuration
155
+ # Convert mtls to https for URL construction (mTLS is still HTTPS)
156
+ protocol = "https" if registration_protocol == "mtls" else registration_protocol
157
+ else:
158
+ # Fallback to server protocol
159
+ verify_client_cfg = final_config.get("transport", {}).get("verify_client", False)
160
+ ssl_enabled_final = server_protocol in ["https", "mtls"] or verify_client_cfg
161
+ protocol = "https" if ssl_enabled_final else "http"
142
162
 
143
163
  import os
144
164
  docker_host_addr = os.getenv("DOCKER_HOST_ADDR", "172.17.0.1")
@@ -2,4 +2,4 @@
2
2
  Version information for MCP Proxy Adapter.
3
3
  """
4
4
 
5
- __version__ = "6.6.4"
5
+ __version__ = "6.6.5"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcp-proxy-adapter
3
- Version: 6.6.4
3
+ Version: 6.6.5
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
@@ -4,9 +4,9 @@ mcp_proxy_adapter/config.py,sha256=QpoPaUKcWJ-eu6HYphhIZmkc2M-p1JgpLFAgolf_l5s,2
4
4
  mcp_proxy_adapter/custom_openapi.py,sha256=XRviX-C-ZkSKdBhORhDTdeN_1FWyEfXZADiASft3t9I,28149
5
5
  mcp_proxy_adapter/main.py,sha256=eXIRMLgDgCox9p2WDcOS9D6tiZjcFit8ePbFCfGbs3Q,5849
6
6
  mcp_proxy_adapter/openapi.py,sha256=2UZOI09ZDRJuBYBjKbMyb2U4uASszoCMD5o_4ktRpvg,13480
7
- mcp_proxy_adapter/version.py,sha256=iHKhx47r6lqg0YU6oEtF4CqcNCHws1gitETKpsxxgRs,74
7
+ mcp_proxy_adapter/version.py,sha256=Ovwca6rZ8_gAtoHjltWXezidgACEEuropA_cyDNwDNU,74
8
8
  mcp_proxy_adapter/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- mcp_proxy_adapter/api/app.py,sha256=c6QgiKBYC4YlPW-a8ZnsQ05CJqjtGEMfEnbvdp19ylE,35148
9
+ mcp_proxy_adapter/api/app.py,sha256=WxSQeYSSDrh-Z3A4TzqNRDaTCsWGZNdhR7qiB7Psk1I,36306
10
10
  mcp_proxy_adapter/api/handlers.py,sha256=X-hcMNVeTAu4yVkKJEChEsj2bFptUS6sLNN-Wysjkow,10011
11
11
  mcp_proxy_adapter/api/schemas.py,sha256=mevUvQnYgWQfkJAs3-vq3HalBzh6-Saa-Au1VVf0peE,12377
12
12
  mcp_proxy_adapter/api/tool_integration.py,sha256=AeUyvJVN-c3FrX5fHdagHL51saRH5d1ZKqc2YEx0rTE,10147
@@ -130,8 +130,8 @@ mcp_proxy_adapter/schemas/base_schema.json,sha256=v9G9cGMd4dRhCZsOQ_FMqOi5VFyVbI
130
130
  mcp_proxy_adapter/schemas/openapi_schema.json,sha256=C3yLkwmDsvnLW9B5gnKKdBGl4zxkeU-rEmjTrNVsQU0,8405
131
131
  mcp_proxy_adapter/schemas/roles.json,sha256=pgf_ZyqKyXbfGUxvobpiLiSJz9zzxrMuoVWEkEpz3N8,764
132
132
  mcp_proxy_adapter/schemas/roles_schema.json,sha256=deHgI7L6GwfBXacOlNtDgDJelDThppClC3Ti4Eh8rJY,5659
133
- mcp_proxy_adapter-6.6.4.dist-info/METADATA,sha256=EEJhXaGOOOhiN-esLAqkguvXi_XGuyEDexIW1WqXSE0,8510
134
- mcp_proxy_adapter-6.6.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
135
- mcp_proxy_adapter-6.6.4.dist-info/entry_points.txt,sha256=Bf-O5Aq80n22Ayu9fI9BgidzWqwzIVaqextAddTuHZw,563
136
- mcp_proxy_adapter-6.6.4.dist-info/top_level.txt,sha256=JZT7vPLBYrtroX-ij68JBhJYbjDdghcV-DFySRy-Nnw,18
137
- mcp_proxy_adapter-6.6.4.dist-info/RECORD,,
133
+ mcp_proxy_adapter-6.6.5.dist-info/METADATA,sha256=79pcCAgI5N5V-UGT53Fpghbp13WQK3rACXDu6XRx_T4,8510
134
+ mcp_proxy_adapter-6.6.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
135
+ mcp_proxy_adapter-6.6.5.dist-info/entry_points.txt,sha256=Bf-O5Aq80n22Ayu9fI9BgidzWqwzIVaqextAddTuHZw,563
136
+ mcp_proxy_adapter-6.6.5.dist-info/top_level.txt,sha256=JZT7vPLBYrtroX-ij68JBhJYbjDdghcV-DFySRy-Nnw,18
137
+ mcp_proxy_adapter-6.6.5.dist-info/RECORD,,