( commands: Command[], serverName: string, )
| 68 | * @returns Commands belonging to the specified server |
| 69 | */ |
| 70 | export 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 |
nothing calls this directly
no test coverage detected