Skip to main content
Glama

Convex MCP server

Official
by get-convex
componentFunctionsInNodeActions.ts1.15 kB
"use node"; import { action } from "./_generated/server"; import { components } from "./_generated/api"; import { createFunctionHandle } from "convex/server"; export const nodeActionCallingComponentQuery = action(async (ctx) => { return await ctx.runQuery(components.component.fileStorage.list); }); export const nodeActionCallingComponentMutation = action(async (ctx) => { return await ctx.runMutation(components.component.scheduler.sendMessage, { message: "hello", }); }); export const nodeActionCallingComponentAction = action(async (ctx) => { return await ctx.runAction(components.searchComponent.foods.populate); }); export const nodeActionSchedulingInComponent = action(async (ctx) => { await ctx.scheduler.runAfter(0, components.component.scheduler.sendMessage, { message: "hello", }); }); export const nodeActionCreateFunctionHandle = action(async (ctx) => { const functionHandle = await createFunctionHandle( components.component.scheduler.sendMessage, ); await ctx.scheduler.runAfter(0, functionHandle, { message: "hello" }); return await ctx.runMutation(functionHandle, { message: "hello" }); });

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