POST /api/mcp/:serverName/prompts/:promptName
在 MCP 服务器上执行提示词。
POST /api/servers/:serverName/prompts/:promptName/toggle
启用或禁用提示词。
PUT /api/servers/:serverName/prompts/:promptName/description
更新提示词的描述。
获取提示词
在 MCP 服务器上执行提示词并获取结果。-
端点:
/api/mcp/:serverName/prompts/:promptName -
方法:
POST - 身份验证: 必需
-
参数:
:serverName(字符串, 必需): MCP 服务器的名称。:promptName(字符串, 必需): 提示词的名称。
-
请求正文:
arguments(对象, 可选): 传递给提示词的参数。
-
响应:
切换提示词
启用或禁用服务器上的特定提示词。- 端点:
/api/servers/:serverName/prompts/:promptName/toggle - 方法:
POST - 身份验证: 必需
- 参数:
:serverName(字符串, 必需): 服务器的名称。:promptName(字符串, 必需): 提示词的名称。
- 请求正文:
enabled(布尔值, 必需):true启用提示词,false禁用提示词。
更新提示词描述
更新特定提示词的描述。- 端点:
/api/servers/:serverName/prompts/:promptName/description - 方法:
PUT - 身份验证: 必需
- 参数:
:serverName(字符串, 必需): 服务器的名称。:promptName(字符串, 必需): 提示词的名称。
- 请求正文:
description(字符串, 必需): 提示词的新描述。