Skip to main content
Glama
staticClient.ts584 B
import type { ComponentApi } from "../examples/static-component/_generated/component.js"; import { ActionCtx } from "./_generated/server.js"; export async function callComponentFunctions( ctx: ActionCtx, component: ComponentApi, ) { const branded = await ctx.runQuery(component.staticFunctions.q, { branded: "1", }); const result = await ctx.runMutation(component.staticFunctions.m, { branded, }); if (!result) { throw new Error("Failed to insert document"); } await ctx.runAction(component.staticFunctions.a, { branded, id: result._id, }); }

Latest Blog Posts

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