x
This commit is contained in:
1 parent
683f54fd95
commit
44a613f8ec
12 files changed
+1227
-9
No files matched your search
@@ -1012,6 +1012,38 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: "get_brand_knowledge",
|
||||
description: "Fetch structured Brand Knowledge, Core Directives, Visual Art Direction, and optionally the Master Compiled System Prompt for LLMs / AI Agents.",
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
includeCompiledPrompt: {
|
||||
type: "boolean",
|
||||
description: "Whether to include the compiled markdown prompt in the response"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: "update_brand_knowledge",
|
||||
description: "Update Brand Knowledge and Directives (Identity, Tone of Voice, Visual Art Prompt, USPs, Marketing Guidelines, Custom Rules, Master Prompt Override).",
|
||||
inputSchema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
brandName: { type: "string" },
|
||||
tagline: { type: "string" },
|
||||
story: { type: "string" },
|
||||
targetAudience: { type: "string" },
|
||||
toneOfVoice: { type: "string" },
|
||||
visualArtPrompt: { type: "string" },
|
||||
productUsps: { type: "string" },
|
||||
marketingGuidelines: { type: "string" },
|
||||
customRules: { type: "string" },
|
||||
masterPromptOverride: { type: "string" }
|
||||
}
|
||||
}
|
||||
},
|
||||
],
|
||||
};
|
||||
});
|
||||
@@ -1736,6 +1768,22 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
||||
|
||||
return { content: [{ type: "text", text: JSON.stringify(results, null, 2) }] };
|
||||
}
|
||||
case "get_brand_knowledge": {
|
||||
const res = await api.get("/brand-knowledge");
|
||||
let result = res.data;
|
||||
if (params.includeCompiledPrompt) {
|
||||
const compiledRes = await api.get("/brand-knowledge/compiled-prompt");
|
||||
result = {
|
||||
...result,
|
||||
compiledPrompt: compiledRes.data?.compiledPrompt ?? "",
|
||||
};
|
||||
}
|
||||
return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
|
||||
}
|
||||
case "update_brand_knowledge": {
|
||||
const res = await api.put("/brand-knowledge", params);
|
||||
return { content: [{ type: "text", text: JSON.stringify(res.data, null, 2) }] };
|
||||
}
|
||||
default:
|
||||
throw new Error(`Unknown tool: ${request.params.name}`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user