upstash/context7 · warning

Your results only include libraries matching your…

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

When the search response has searchFilterApplied=true, generateCommand warns that results were restricted by teamspace library filters (quality thresholds / blocked libraries) and points to the dashboard policies tab. Search succeeded, but the result set was narrowed server-side by the team's policy configuration.

Solutions

  1. Visit https://context7.com/dashboard?tab=policies and adjust quality thresholds or unblock the needed libraries
  2. Ask a teamspace admin to update the library filter policies
  3. Generate outside the filtered teamspace context if your plan allows

Example fix

// before (dashboard policies)
qualityThreshold: 90, blocked: ["popular-lib"]
// after
qualityThreshold: 50, blocked: []
Defensive patterns

Strategy: fallback

Validate before calling

if (searchResult.searchFilterApplied) { console.warn('Results filtered by teamspace policies; adjust at dashboard?tab=policies'); }

Prevention

When it happens

Trigger: `searchLibraries` returns results with searchFilterApplied === true, i.e. the teamspace's policy filters excluded some libraries from the candidate set.

Common situations: Working in an org teamspace with strict quality thresholds or a blocked-library list; a needed library is filtered out, causing worse or missing source matches.

Understand the failure class

Background: "You do not have permission" / 403 Forbidden errors: authenticated but not allowed — causes and fixes across open-source libraries — this error's family across 31 libraries.

Related errors


AI-assisted analysis of upstash/context7@4416fb855b (2026-09-16). Data as JSON: /api/errors/30f2abed6185a69c. Report an issue: GitHub.

Appendix: source

Thrown at packages/cli/src/commands/generate.ts:168

      "These sources are used to:\n• extract best practices and constraints\n• compare patterns across official docs and examples\n• avoid outdated or incorrect guidance\n"
    )
  );
  console.log(pc.dim("You can adjust which sources the skill is based on.\n"));

  const searchSpinner = ora("Finding relevant sources...").start();
  const searchResult = await searchLibraries(motivation, accessToken);

  if (searchResult.error || !searchResult.results?.length) {
    searchSpinner.fail(pc.red("No sources found"));
    log.warn(searchResult.message || "Try a different description");
    return;
  }

  searchSpinner.succeed(pc.green(`Found ${searchResult.results.length} relevant sources`));
  log.blank();

  if (searchResult.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();
  }

  let selectedLibraries: LibrarySearchResult[];
  try {
    const formatProjectId = (id: string) => {
      return id.startsWith("/") ? id.slice(1) : id;
    };

    const isGitHubRepo = (id: string): boolean => {
      const cleanId = id.startsWith("/") ? id.slice(1) : id;
      const parts = cleanId.split("/");
      if (parts.length !== 2) return false;
      const nonGitHubPrefixes = ["websites", "packages", "npm", "docs", "libraries", "llmstxt"];
      return !nonGitHubPrefixes.includes(parts[0].toLowerCase());
    };

View on GitHub (pinned to 4416fb855b)