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

Function getRecentMCPs

apps/cursor/src/data/queries.ts:298–312  ·  view source on GitHub ↗
({ limit = 8 }: { limit?: number } = {})

Source from the content-addressed store, hash-verified

296}
297
298export async function getRecentMCPs({ limit = 8 }: { limit?: number } = {}) {
299 "use cache";
300 cacheLife("hours");
301 cacheTag("mcps");
302
303 const supabase = await createClient();
304 const { data, error } = await supabase
305 .from("mcps")
306 .select("*")
307 .eq("active", true)
308 .order("created_at", { ascending: false })
309 .limit(limit);
310
311 return { data, error };
312}
313
314export async function getMCPBySlug(slug: string) {
315 "use cache";

Callers

nothing calls this directly

Calls 1

createClientFunction · 0.90

Tested by

no test coverage detected