Skip to main content
Glama

microsandbox

by microsandbox
state.rs1.02 kB
//! Shared state management for the microsandbox portal server. use std::sync::Arc; use tokio::sync::Mutex; use crate::portal::{command::CommandHandle, repl::EngineHandle}; //-------------------------------------------------------------------------------------------------- // Types //-------------------------------------------------------------------------------------------------- /// SharedState for the server #[derive(Clone, Debug)] pub struct SharedState { /// Indicates if the server is ready to process requests pub ready: Arc<Mutex<bool>>, /// Engine handle for REPL environment pub engine_handle: Arc<Mutex<Option<EngineHandle>>>, /// Command handle for command execution pub command_handle: Arc<Mutex<Option<CommandHandle>>>, } impl Default for SharedState { fn default() -> Self { Self { ready: Arc::new(Mutex::new(false)), engine_handle: Arc::new(Mutex::new(None)), command_handle: Arc::new(Mutex::new(None)), } } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/microsandbox/microsandbox'

If you have feedback or need assistance with the MCP directory API, please join our Discord server