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

Function getCompanies

apps/cursor/src/data/queries.ts:192–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190}
191
192export async function getCompanies() {
193 "use cache";
194 cacheLife("hours");
195 cacheTag("companies");
196
197 const supabase = await createClient();
198
199 return fetchAllPages((from, to) =>
200 supabase
201 .from("companies")
202 .select("id, name, slug, image, location")
203 .order("created_at", { ascending: false })
204 .range(from, to),
205 );
206}
207
208export async function getFeaturedMCPs({
209 onlyPremium,

Callers 2

MembersPageContentFunction · 0.90
sitemapFunction · 0.90

Calls 2

createClientFunction · 0.90
fetchAllPagesFunction · 0.90

Tested by

no test coverage detected