blob: 7265a023ec95a908a65501185679f008332b8f13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { Config } from '../config/config.js';
import { DiscoveredMCPPrompt } from '../tools/mcp-client.js';
export function getMCPServerPrompts(
config: Config,
serverName: string,
): DiscoveredMCPPrompt[] {
const promptRegistry = config.getPromptRegistry();
if (!promptRegistry) {
return [];
}
return promptRegistry.getPromptsByServer(serverName);
}
|