Skip to main content
Glama

Convex MCP server

Official
by get-convex
custom_headers.rs832 B
use axum_extra::headers::{ Header, HeaderName, HeaderValue, }; use http::header::CONTENT_DISPOSITION; // Takes filename pub struct ContentDispositionAttachment(pub String); impl Header for ContentDispositionAttachment { fn name() -> &'static HeaderName { &CONTENT_DISPOSITION } fn decode<'i, I>(_values: &mut I) -> Result<Self, axum_extra::headers::Error> where I: Iterator<Item = &'i HeaderValue>, { unimplemented!() } fn encode<E>(&self, values: &mut E) where E: Extend<HeaderValue>, { let value = format!("attachment; filename={}", self.0); let encoded = HeaderValue::from_str(&value) .map_err(|_| axum_extra::headers::Error::invalid()) .unwrap(); values.extend(std::iter::once(encoded)); } }

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