Skip to content

Commit c45174b

Browse files
rodion-mclaude
andcommitted
Allow forwarded headers from any proxy in HTTP transport
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fe1c7dc commit c45174b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/codealive_mcp_server.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,16 @@ def main():
169169
# Run the server with the selected transport
170170
if args.transport == "http":
171171
# Use /api path to avoid conflicts with health endpoint
172-
mcp.run(transport="http", host=args.host, port=args.port, path="/api", stateless_http=True)
172+
mcp.run(
173+
transport="http",
174+
host=args.host,
175+
port=args.port,
176+
path="/api",
177+
stateless_http=True,
178+
uvicorn_config={
179+
"forwarded_allow_ips": "*",
180+
},
181+
)
173182
else:
174183
mcp.run(transport="stdio")
175184

0 commit comments

Comments
 (0)