MCPcopy Index your code
hub / github.com/codeaashu/claude-code / filterToBundledAndMcp

Function filterToBundledAndMcp

src/utils/attachments.ts:2651–2659  ·  view source on GitHub ↗
(commands: Command[])

Source from the content-addressed store, hash-verified

2649 * Falls back to bundled-only if bundled+mcp exceeds FILTERED_LISTING_MAX.
2650 */
2651export function filterToBundledAndMcp(commands: Command[]): Command[] {
2652 const filtered = commands.filter(
2653 cmd => cmd.loadedFrom === 'bundled' || cmd.loadedFrom === 'mcp',
2654 )
2655 if (filtered.length > FILTERED_LISTING_MAX) {
2656 return filtered.filter(cmd => cmd.loadedFrom === 'bundled')
2657 }
2658 return filtered
2659}
2660
2661async function getSkillListingAttachments(
2662 toolUseContext: ToolUseContext,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected