|
|
@@ -27,6 +27,7 @@ export namespace Command {
|
|
|
description: z.string().optional(),
|
|
|
agent: z.string().optional(),
|
|
|
model: z.string().optional(),
|
|
|
+ mcp: z.boolean().optional(),
|
|
|
// workaround for zod not supporting async functions natively so we use getters
|
|
|
// https://zod.dev/v4/changelog?id=zfunction
|
|
|
template: z.promise(z.string()).or(z.string()),
|
|
|
@@ -94,6 +95,7 @@ export namespace Command {
|
|
|
for (const [name, prompt] of Object.entries(await MCP.prompts())) {
|
|
|
result[name] = {
|
|
|
name,
|
|
|
+ mcp: true,
|
|
|
description: prompt.description,
|
|
|
get template() {
|
|
|
// since a getter can't be async we need to manually return a promise here
|