Skip to main content
Glama

Convex MCP server

Official
by get-convex
keyvalue.rs832 B
use std::str::FromStr; use anyhow::Context; pub fn parse_key_value<K, V, Output>(s: &str) -> anyhow::Result<Output> where K: FromStr<Err: Send + Sync + 'static>, V: FromStr<Err: Send + Sync + 'static>, Output: TryFrom<(K, V)>, anyhow::Error: From<<Output as TryFrom<(K, V)>>::Error> + From<<K as FromStr>::Err> + From<<V as FromStr>::Err>, { let (key, value) = s .split_once('=') .ok_or_else(|| anyhow::anyhow!("invalid key=value: no `=` found in `{s}`"))?; Ok(( key.parse() .map_err(anyhow::Error::from) .with_context(|| format!("Failed to parse key {key}"))?, value .parse() .map_err(anyhow::Error::from) .with_context(|| format!("Failed to parse value {value}"))?, ) .try_into()?) }

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