MCPcopy Create free account
hub / github.com/cursor/community-plugins / getMCPBySlug

Function getMCPBySlug

apps/cursor/src/data/queries.ts:314–327  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

312}
313
314export async function getMCPBySlug(slug: string) {
315 "use cache";
316 cacheLife("hours");
317 cacheTag("mcps", `mcp-${slug}`);
318
319 const supabase = await createClient();
320 const { data, error } = await supabase
321 .from("mcps")
322 .select("*")
323 .eq("slug", slug)
324 .single();
325
326 return { data, error };
327}
328
329// ---------------------------------------------------------------------------
330// Plugins (Open Plugins spec)

Callers 1

EditMCPContentFunction · 0.90

Calls 1

createClientFunction · 0.90

Tested by

no test coverage detected