Skip to main content
Glama

Convex MCP server

Official
by get-convex
http.ts974 B
import { httpRouter } from "convex/server"; import { imported } from "./http_no_default"; import { httpAction, query } from "./_generated/server"; // This file is used for testing the analyze logic for HTTP actions, including // source mapping to the correct line numbers. // // HTTP actions used for testing the execution of HTTP actions // (crates/isolate/src/tests/http_action.rs) should be defined in `http_action.ts` // instead. export const separateFunction = httpAction(async (_, _request: Request) => { throw new Error("Oh no!"); }); const http = httpRouter(); http.route({ method: "GET", path: "/separate_function", handler: separateFunction, }); http.route({ method: "GET", path: "/inline", handler: httpAction(async (_, _request: Request) => { throw new Error("Oh no!"); }), }); http.route({ method: "GET", path: "/imported", handler: imported, }); export const myQuery = query((_) => { return "hello"; }); export default http;

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