mcp-forge/docs
Hans Aschauer 14aba0a048 Implement ZMQ port management and kernel readiness checks
Container Configuration:
- Added network_mode and port_bindings to ContainerConfig
- Support for 'none', 'host', and 'bridge' network modes
- Default remains 'none' for security

Jupyter Kernel Manager:
- Dynamic port allocation for 5 ZMQ channels using socket.socket()
- _allocate_ports() finds available ports via OS binding
- Host networking mode for Jupyter kernels (network_mode='host')
- Connection file properly mounted into container
- Port bindings tracked for documentation

Kernel Readiness:
- _wait_for_kernel_ready() polls shell port until kernel responds
- Configurable timeout (30s) and poll interval (0.5s)
- Replaced time.sleep(2) with proper connectivity check
- Early return when kernel is ready

This completes the core ZMQ communication infrastructure needed
for real Jupyter kernel operation.
2026-02-07 08:16:51 +01:00
..
architecture1.md Implement real Jupyter backend with jupyter-client 2026-02-07 08:06:44 +01:00
development-methodology.md initial commit after one day coding agent session 2026-02-07 07:45:57 +01:00
HTTP_TRANSPORT.md initial commit after one day coding agent session 2026-02-07 07:45:57 +01:00
JUPYTER_IMPLEMENTATION_STATUS.md Implement ZMQ port management and kernel readiness checks 2026-02-07 08:16:51 +01:00
todo.md Implement real Jupyter backend with jupyter-client 2026-02-07 08:06:44 +01:00