( commands: Command[], serverName: string, )
| 83 | * prompts don't (they use `isMcp: true` instead). |
| 84 | */ |
| 85 | export function filterMcpPromptsByServer( |
| 86 | commands: Command[], |
| 87 | serverName: string, |
| 88 | ): Command[] { |
| 89 | return commands.filter( |
| 90 | c => |
| 91 | commandBelongsToServer(c, serverName) && |
| 92 | !(c.type === 'prompt' && c.loadedFrom === 'mcp'), |
| 93 | ) |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * Filters resources by MCP server name |
no test coverage detected