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
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.
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 5284672feb)
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
Defensive patterns
Strategy: validation
Type guard
function isFiltered(r: { searchFilterApplied?: boolean }): boolean {
return r.searchFilterApplied === true;
} Prevention
- 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
When it happens
Trigger: 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.
Common situations: Company accounts restricting docs sources for generated skills; users unaware their key is team-scoped; quality thresholds filtering out smaller libraries.
Related errors
- Your results only include libraries matching your teamspace'
- searchResult.message || "Try a different description"
- query and libraryName are required
- Request did not return a result
- Failed to write to ${skillPath}: ${error.message}
AI-assisted analysis of upstash/context7@5284672feb (2026-08-18).
Data as JSON: /api/errors/30f2abed6185a69c.
Report an issue: GitHub.