MCPcopy Index your code
hub / github.com/cursor/community-plugins / installPerPluginLimit

Function installPerPluginLimit

apps/cursor/src/lib/rate-limit.ts:71–79  ·  view source on GitHub ↗
(
  pluginId: string,
)

Source from the content-addressed store, hash-verified

69}
70
71export async function installPerPluginLimit(
72 pluginId: string,
73): Promise<LimitResult> {
74 const ip = getIpFromHeaders(await getRequestHeaders());
75 return check({
76 rateLimitId: RATE_LIMIT_IDS.installPerPlugin,
77 rateLimitKey: `${ip}:${pluginId}`,
78 });
79}
80
81export async function installGlobalLimit(): Promise<LimitResult> {
82 return check({ rateLimitId: RATE_LIMIT_IDS.installGlobal });

Callers 1

track-install.tsFile · 0.90

Calls 3

getIpFromHeadersFunction · 0.85
getRequestHeadersFunction · 0.85
checkFunction · 0.85

Tested by

no test coverage detected