{"record":{"id":"30f2abed6185a69c","repo":"upstash/context7","slug":"your-results-only-include-libraries-matching-your-30f2ab","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/generate.ts","lineNumber":168,"sourceCode":"      \"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\"\n    )\n  );\n  console.log(pc.dim(\"You can adjust which sources the skill is based on.\\n\"));\n\n  const searchSpinner = ora(\"Finding relevant sources...\").start();\n  const searchResult = await searchLibraries(motivation, accessToken);\n\n  if (searchResult.error || !searchResult.results?.length) {\n    searchSpinner.fail(pc.red(\"No sources found\"));\n    log.warn(searchResult.message || \"Try a different description\");\n    return;\n  }\n\n  searchSpinner.succeed(pc.green(`Found ${searchResult.results.length} relevant sources`));\n  log.blank();\n\n  if (searchResult.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  let selectedLibraries: LibrarySearchResult[];\n  try {\n    const formatProjectId = (id: string) => {\n      return id.startsWith(\"/\") ? id.slice(1) : id;\n    };\n\n    const isGitHubRepo = (id: string): boolean => {\n      const cleanId = id.startsWith(\"/\") ? id.slice(1) : id;\n      const parts = cleanId.split(\"/\");\n      if (parts.length !== 2) return false;\n      const nonGitHubPrefixes = [\"websites\", \"packages\", \"npm\", \"docs\", \"libraries\", \"llmstxt\"];\n      return !nonGitHubPrefixes.includes(parts[0].toLowerCase());\n    };","sourceCodeStart":150,"sourceCodeEnd":186,"githubUrl":"https://github.com/upstash/context7/blob/5284672feb575908efead6fcf1b5e542f8d607bb/packages/cli/src/commands/generate.ts#L150-L186","documentation":"Informational notice in `context7 skill generate`: after a successful source search, searchResult.searchFilterApplied=true indicates the caller's Context7 account has library policies enabled, so the candidate sources were narrowed server-side by the teamspace's quality thresholds and blocked-library list before the user picks from them.","triggerScenarios":"Any generate run while the signed-in account/API key belongs to a team with policies configured on the dashboard Policies tab; typically noticed when expected libraries are absent from the source picker.","commonSituations":"Company accounts restricting docs sources for generated skills; users unaware their key is team-scoped; quality thresholds filtering out smaller libraries.","solutions":["Adjust quality thresholds or blocked libraries at https://context7.com/dashboard?tab=policies","Verify you are logged in as the intended account if filtering is unexpected","Ask the team admin to allow a specific library needed as a source"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":"function isFiltered(r: { searchFilterApplied?: boolean }): boolean {\n  return r.searchFilterApplied === true;\n}","tryCatchPattern":null,"preventionTips":["Review Policies at https://context7.com/dashboard?tab=policies before generating","Confirm the CLI's logged-in account matches the team you expect","If a needed source is missing from the picker, check whether a policy blocks it"],"tags":["search","filtering","teamspace","policies","generate"],"backgroundTag":"search-results-filtered","analyzedSha":"5284672feb575908efead6fcf1b5e542f8d607bb","analyzedAt":"2026-08-18T18:00:18.510Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}