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 + }); } // 列出资源