Skip to content

Commit 9b37e55

Browse files
committed
Reverse proxy
Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
1 parent 1ba7761 commit 9b37e55

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ include *.sh
2929
include *.txt
3030
recursive-include async_testing *.py
3131
recursive-include async_testing *.yaml
32+
recursive-include examples *.yaml
3233

3334
# 3️⃣ Tooling/lint configuration dot-files (explicit so they're not lost)
3435
include .env.make

mcpgateway/reverse_proxy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,7 @@ async def main(argv: Optional[List[str]] = None) -> None:
706706
shutdown_event = asyncio.Event()
707707

708708
def signal_handler():
709+
"""Handle shutdown signals gracefully."""
709710
LOGGER.info("Shutdown signal received")
710711
shutdown_event.set()
711712

mcpgateway/routers/reverse_proxy.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,13 @@ async def websocket_endpoint(
222222
@router.get("/sessions")
223223
async def list_sessions(
224224
request: Request,
225-
current_user: str | dict = Depends(require_auth),
225+
_: str | dict = Depends(require_auth),
226226
):
227227
"""List all active reverse proxy sessions.
228228
229229
Args:
230230
request: HTTP request.
231-
current_user: Authenticated user info.
231+
_: Authenticated user info (used for auth check).
232232
233233
Returns:
234234
List of session information.
@@ -240,14 +240,14 @@ async def list_sessions(
240240
async def disconnect_session(
241241
session_id: str,
242242
request: Request,
243-
current_user: str | dict = Depends(require_auth),
243+
_: str | dict = Depends(require_auth),
244244
):
245245
"""Disconnect a reverse proxy session.
246246
247247
Args:
248248
session_id: Session ID to disconnect.
249249
request: HTTP request.
250-
current_user: Authenticated user info.
250+
_: Authenticated user info (used for auth check).
251251
252252
Returns:
253253
Disconnection status.
@@ -271,15 +271,15 @@ async def send_request_to_session(
271271
session_id: str,
272272
mcp_request: Dict[str, Any],
273273
request: Request,
274-
current_user: str | dict = Depends(require_auth),
274+
_: str | dict = Depends(require_auth),
275275
):
276276
"""Send an MCP request to a reverse proxy session.
277277
278278
Args:
279279
session_id: Session ID to send request to.
280280
mcp_request: MCP request to send.
281281
request: HTTP request.
282-
current_user: Authenticated user info.
282+
_: Authenticated user info (used for auth check).
283283
284284
Returns:
285285
Request acknowledgment.

0 commit comments

Comments
 (0)