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

Function filterCommandsByServer

src/services/mcp/utils.ts:70–75  ·  view source on GitHub ↗
(
  commands: Command[],
  serverName: string,
)

Source from the content-addressed store, hash-verified

68 * @returns Commands belonging to the specified server
69 */
70export function filterCommandsByServer(
71 commands: Command[],
72 serverName: string,
73): Command[] {
74 return commands.filter(c => commandBelongsToServer(c, serverName))
75}
76
77/**
78 * Filters MCP **prompts** (not skills) by server. Used by the `/mcp` menu

Callers

nothing calls this directly

Calls 1

commandBelongsToServerFunction · 0.85

Tested by

no test coverage detected