use anyhow::anyhow;
use serde_json::Value as JsonValue;
use value::TableMappingValue;
use super::OpProvider;
#[convex_macro::v8_op]
pub fn op_get_table_mapping<'b, P: OpProvider<'b>>(provider: &mut P) -> anyhow::Result<JsonValue> {
let mapping: TableMappingValue = provider.get_all_table_mappings()?.to_value(true);
serde_json::to_value(mapping).map_err(|_| anyhow!("Couldn’t serialize the table mapping"))
}
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