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.
- mcp_proxy_adapter/api/app.py +28 -8
- mcp_proxy_adapter/version.py +1 -1
- {mcp_proxy_adapter-6.6.4.dist-info → mcp_proxy_adapter-6.6.5.dist-info}/METADATA +1 -1
- {mcp_proxy_adapter-6.6.4.dist-info → mcp_proxy_adapter-6.6.5.dist-info}/RECORD +7 -7
- {mcp_proxy_adapter-6.6.4.dist-info → mcp_proxy_adapter-6.6.5.dist-info}/WHEEL +0 -0
- {mcp_proxy_adapter-6.6.4.dist-info → mcp_proxy_adapter-6.6.5.dist-info}/entry_points.txt +0 -0
- {mcp_proxy_adapter-6.6.4.dist-info → mcp_proxy_adapter-6.6.5.dist-info}/top_level.txt +0 -0
mcp_proxy_adapter/api/app.py
CHANGED
@@ -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
|
90
|
-
|
91
|
-
|
92
|
-
|
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
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
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")
|
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.6.
|
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=
|
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=
|
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.
|
134
|
-
mcp_proxy_adapter-6.6.
|
135
|
-
mcp_proxy_adapter-6.6.
|
136
|
-
mcp_proxy_adapter-6.6.
|
137
|
-
mcp_proxy_adapter-6.6.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|