upstash/context7 · info

Your results only include libraries matching your teamspace'

Error message

Your results only include libraries matching your teamspace's library filters. To adjust quality thresholds or blocked libraries, update your filters at https://context7.com/dashboard?tab=policies

What it means

Purely informational: when the caller's Context7 account has library policies configured, the search API sets data.searchFilterApplied=true and the CLI prints this hint that the listed results were narrowed server-side by the teamspace's quality thresholds and blocked-library list. Nothing failed; the results above the notice are already the filtered set (JSON output skips the notice entirely).

Source

Thrown at packages/cli/src/commands/docs.ts:91

  if (!data.results || data.results.length === 0) {
    spinner?.warn(`No libraries found matching "${library}"`);
    if (!spinner) log.warn(`No libraries found matching "${library}"`);
    return;
  }

  const results = data.results;

  spinner?.stop();

  if (options.json) {
    console.log(JSON.stringify(results, null, 2));
    return;
  }

  log.blank();

  if (data.searchFilterApplied) {
    log.warn(
      "Your results only include libraries matching your teamspace's library filters. To adjust quality thresholds or blocked libraries, update your filters at https://context7.com/dashboard?tab=policies"
    );
    log.blank();
  }

  for (let i = 0; i < results.length; i++) {
    log.plain(formatLibraryResult(results[i], i));
    log.blank();
  }

  if (isTTY && results.length > 0) {
    const best = results[0];
    log.plain(
      `${pc.bold("Quick command:")}\n` + `  ${pc.cyan(`ctx7 docs "${best.id}" "<your question>"`)}`
    );
    log.blank();
  }
}

View on GitHub (pinned to 5284672feb)

Solutions

  1. Open https://context7.com/dashboard?tab=policies and adjust quality thresholds or unblock the needed library
  2. If filtering is unintended, verify you are signed in with the expected account (`context7 whoami` / re-login)
  3. Ask the team admin to whitelist a specific library you need
Defensive patterns

Strategy: validation

Type guard

function isFiltered(r: { searchFilterApplied?: boolean }): boolean {
  return r.searchFilterApplied === true;
}

Prevention

When it happens

Trigger: Any docs library search while the API key / signed-in team has policies enabled on the dashboard Policies tab; commonly seen together with unexpectedly short result lists.

Common situations: Org accounts blocking low-quality or untrusted docs sources; users unaware their API key belongs to a team with policies; teams restricting allowed libraries for AI tooling.

Related errors


AI-assisted analysis of upstash/context7@5284672feb (2026-08-18). Data as JSON: /api/errors/673aa0069323440e. Report an issue: GitHub.