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
import { Doc } from "../../../component/_generated/dataModel";
import { query, action, mutation } from "./_generated/server";
import { components } from "./_generated/api";
import { v } from "convex/values";
export const list = query({
args: {},
handler: async (ctx): Promise<Doc<"messages">[]> => {
const result = await ctx.runQuery(
components.component.messages.listMessages,
{},
);
console.log(result);
return result;
},
});
export const insert = mutation({
args: {
channel: v.string(),
text: v.string(),
},
handler: async (ctx, { channel, text }) => {
await ctx.runMutation(components.component.messages.insertMessage, {
channel,
text,
});
},
});
export const hello = action({
args: {},
handler: async (ctx) => {
return await ctx.runAction(components.component.messages.hello, {});
},
});