Skip to main content
Glama
componentEntry.ts1.5 kB
import { query, action } from "./_generated/server"; import { components } from "./_generated/api"; export const hello = action({ args: {}, handler: async (ctx) => { return await ctx.runAction(components.envVars.messages.hello, {}); }, }); export const envVarQuery = query({ args: {}, handler: async (ctx) => { return await ctx.runQuery(components.envVars.messages.envVarQuery, {}); }, }); export const envVarAction = action({ args: {}, handler: async (ctx) => { return await ctx.runAction(components.envVars.messages.envVarAction, {}); }, }); export const systemEnvVarQuery = query({ args: {}, handler: async (ctx) => { return await ctx.runQuery( components.envVars.messages.systemEnvVarQuery, {}, ); }, }); export const systemEnvVarAction = action({ args: {}, handler: async (ctx) => { return await ctx.runAction( components.envVars.messages.systemEnvVarAction, {}, ); }, }); export const dateNow = query({ args: {}, handler: async (ctx) => { const myDateNow = Date.now(); const componentDateNow = await ctx.runQuery( components.component.messages.dateNow, {}, ); return [myDateNow, componentDateNow]; }, }); export const mathRandom = query({ args: {}, handler: async (ctx) => { const componentRandom = await ctx.runQuery( components.component.messages.mathRandom, {}, ); const myRandom = Math.random(); return [myRandom, componentRandom]; }, });

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