MCPcopy Create free account
hub / github.com/astercloud/aster / getPrompt

Method getPrompt

client-sdks/client-js/src/resources/mcp.ts:224–229  ·  view source on GitHub ↗

* 获取 Prompt * @param serverId Server ID * @param name Prompt 名称 * @param args Prompt 参数 * @returns Prompt 结果

(serverId: string, name: string, args?: Record<string, any>)

Source from the content-addressed store, hash-verified

222 * @returns Prompt 结果
223 */
224 async getPrompt(serverId: string, name: string, args?: Record<string, any>): Promise<MCPPromptResult> {
225 return this.request<MCPPromptResult>(`/v1/mcp/servers/${serverId}/prompts/${name}`, {
226 method: "POST",
227 body: { arguments: args },
228 });
229 }
230
231 // ==========================================================================
232 // MCP Statistics

Callers

nothing calls this directly

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected