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
"use node";
import { action } from "./_generated/server";
export default action({
handler: async () => {
console.log("starting something that takes time...");
if (Math.random() > 0.5) {
fail();
}
await new Promise((r) => setTimeout(r, 15000));
console.log("done");
},
});
function fail() {
fail2();
}
function fail2() {
throw new Error("Oh no!");
}