{"record":{"id":"673aa0069323440e","repo":"upstash/context7","slug":"your-results-only-include-libraries-matching-your","errorCode":null,"errorMessage":"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","messagePattern":"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","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"packages/cli/src/commands/docs.ts","lineNumber":91,"sourceCode":"  if (!data.results || data.results.length === 0) {\n    spinner?.warn(`No libraries found matching \"${library}\"`);\n    if (!spinner) log.warn(`No libraries found matching \"${library}\"`);\n    return;\n  }\n\n  const results = data.results;\n\n  spinner?.stop();\n\n  if (options.json) {\n    console.log(JSON.stringify(results, null, 2));\n    return;\n  }\n\n  log.blank();\n\n  if (data.searchFilterApplied) {\n    log.warn(\n      \"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\"\n    );\n    log.blank();\n  }\n\n  for (let i = 0; i < results.length; i++) {\n    log.plain(formatLibraryResult(results[i], i));\n    log.blank();\n  }\n\n  if (isTTY && results.length > 0) {\n    const best = results[0];\n    log.plain(\n      `${pc.bold(\"Quick command:\")}\\n` + `  ${pc.cyan(`ctx7 docs \"${best.id}\" \"<your question>\"`)}`\n    );\n    log.blank();\n  }\n}","sourceCodeStart":73,"sourceCodeEnd":109,"githubUrl":"https://github.com/upstash/context7/blob/5284672feb575908efead6fcf1b5e542f8d607bb/packages/cli/src/commands/docs.ts#L73-L109","documentation":"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).","triggerScenarios":"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.","commonSituations":"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.","solutions":["Open https://context7.com/dashboard?tab=policies and adjust quality thresholds or unblock the needed library","If filtering is unintended, verify you are signed in with the expected account (`context7 whoami` / re-login)","Ask the team admin to whitelist a specific library you need"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":"function isFiltered(r: { searchFilterApplied?: boolean }): boolean {\n  return r.searchFilterApplied === true;\n}","tryCatchPattern":null,"preventionTips":["Review https://context7.com/dashboard?tab=policies when results look truncated","Confirm which account/API key the CLI is using (`context7 login` state)","Ask team admins to whitelist libraries you rely on"],"tags":["search","filtering","teamspace","policies","docs"],"backgroundTag":"search-results-filtered","analyzedSha":"5284672feb575908efead6fcf1b5e542f8d607bb","analyzedAt":"2026-08-18T18:00:18.510Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}