Skip to main content
Glama

Convex MCP server

Official
by get-convex
integer.rs543 B
use anyhow::anyhow; /// Helper functions for encoding `Int64`s as `String`s. pub enum JsonInteger {} impl JsonInteger { /// Encode an integer as a string. pub fn encode(n: i64) -> String { base64::encode(n.to_le_bytes()) } /// Decode an integer from a string. pub fn decode(s: String) -> anyhow::Result<i64> { let bytes: [u8; 8] = base64::decode(s.as_bytes())? .try_into() .map_err(|_| anyhow!("Int64 must be exactly eight bytes"))?; Ok(i64::from_le_bytes(bytes)) } }

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/get-convex/convex-backend'

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