Module handler

Module handler 

Source
Expand description

Request handlers for the microsandbox server.

This module implements:

  • API endpoint handlers
  • Request processing logic
  • Response formatting

The module provides:

  • Handler functions for API routes
  • Request validation and processing
  • Response generation and error handling

Functionsยง

forward_rpc_to_portal
Forwards the JSON-RPC request to the portal service
health
Handler for health check
json_rpc_handler
Main JSON-RPC handler that dispatches to the appropriate method
mcp_handler
Dedicated MCP handler for Model Context Protocol requests
proxy_fallback
Fallback handler for proxy requests
proxy_request
Handler for proxy requests
sandbox_get_metrics_impl
Implementation for sandbox metrics
sandbox_start_impl
Implementation for starting a sandbox
sandbox_stop_impl
Implementation for stopping a sandbox