From f9ecdf233bf972fb876593781689878265cdf932 Mon Sep 17 00:00:00 2001 From: Kirigaya <1193466151@qq.com> Date: Tue, 1 Apr 2025 23:34:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=20prompt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/src/controller/connect.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/src/controller/connect.ts b/test/src/controller/connect.ts index bda8890..6fc94d2 100644 --- a/test/src/controller/connect.ts +++ b/test/src/controller/connect.ts @@ -82,8 +82,10 @@ export class MCPClient { } // 获取提示 - public async getPrompt(name: string, args: Record = {}) { - return await this.client.getPrompt({ name }, args); + public async getPrompt(name: string, args: Record = {}) { + return await this.client.getPrompt({ + name, arguments: args + }); } // 列出资源