Skip to main content
Glama

Convex MCP server

Official
by get-convex
field_path.rs1.2 kB
use value::FieldPath; use crate::common::FieldPath as FieldPathProto; impl From<FieldPath> for FieldPathProto { fn from(n: FieldPath) -> Self { FieldPathProto { fields: Vec::from(n).into_iter().map(|f| f.into()).collect(), } } } impl TryFrom<FieldPathProto> for FieldPath { type Error = anyhow::Error; fn try_from(value: FieldPathProto) -> Result<Self, Self::Error> { FieldPath::new( value .fields .into_iter() .map(|f| f.parse()) .collect::<anyhow::Result<Vec<_>>>()?, ) } } #[cfg(test)] mod tests { use cmd_util::env::env_config; use proptest::prelude::*; use value::testing::assert_roundtrips; use super::FieldPath; use crate::common::FieldPath as FieldPathProto; proptest! { #![proptest_config( ProptestConfig { cases: 256 * env_config("CONVEX_PROPTEST_MULTIPLIER", 1), failure_persistence: None, ..ProptestConfig::default() } )] #[test] fn test_field_path_roundtrips(left in any::<FieldPath>()) { assert_roundtrips::<FieldPath, FieldPathProto>(left); } } }

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