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

Function getUserPlugins

apps/cursor/src/data/queries.ts:182–190  ·  view source on GitHub ↗
(
  userId: string,
  { includeInactive = false }: { includeInactive?: boolean } = {},
)

Source from the content-addressed store, hash-verified

180}
181
182export async function getUserPlugins(
183 userId: string,
184 { includeInactive = false }: { includeInactive?: boolean } = {},
185) {
186 // Owner views include inactive plugins and must reflect publish/delete
187 // actions immediately, so only the public variant is cached.
188 if (includeInactive) return fetchUserPlugins(userId, { includeInactive });
189 return getPublicUserPlugins(userId);
190}
191
192export async function getCompanies() {
193 "use cache";

Callers 1

ProfilePluginsFunction · 0.90

Calls 2

fetchUserPluginsFunction · 0.85
getPublicUserPluginsFunction · 0.85

Tested by

no test coverage detected