完成 prompt
This commit is contained in:
parent
5564dec451
commit
f9ecdf233b
@ -83,7 +83,9 @@ export class MCPClient {
|
|||||||
|
|
||||||
// 获取提示
|
// 获取提示
|
||||||
public async getPrompt(name: string, args: Record<string, any> = {}) {
|
public async getPrompt(name: string, args: Record<string, any> = {}) {
|
||||||
return await this.client.getPrompt({ name }, args);
|
return await this.client.getPrompt({
|
||||||
|
name, arguments: args
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 列出资源
|
// 列出资源
|
||||||
|
Loading…
x
Reference in New Issue
Block a user