Skip to main content
Glama

microsandbox

by microsandbox
route.rs1.02 kB
//! Router configuration for the microsandbox portal. //! //! This module handles: //! - API route definitions //! - Router configuration and setup //! - Request routing and handling use axum::{routing::post, Router}; use tower_http::trace::TraceLayer; use crate::{handler, state::SharedState}; //-------------------------------------------------------------------------------------------------- // Functions //-------------------------------------------------------------------------------------------------- /// Create a new router with the given state pub fn create_router(state: SharedState) -> Router { // Create JSON-RPC routes - a single endpoint that handles all RPC methods // Using an adapter function to properly handle the state parameter let rpc_api = Router::new().route("/", post(handler::json_rpc_handler)); // Combine all routes with tracing middleware Router::new() .nest("/api/v1/rpc", rpc_api) .layer(TraceLayer::new_for_http()) .with_state(state) }

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