superkit-mcp-server 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +10 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -294,9 +294,19 @@ server.setRequestHandler(GetPromptRequestSchema, async (request) => {
|
|
|
294
294
|
const content = await fs.readFile(safePath, "utf-8");
|
|
295
295
|
const parsed = toml.parse(content);
|
|
296
296
|
const promptText = parsed?.prompt || `Execute the ${promptName} command.`;
|
|
297
|
+
// Load SUPERKIT.md for systematic inclusion
|
|
298
|
+
const superKitPath = path.join(superKitRoot, "SUPERKIT.md");
|
|
299
|
+
const superKitContent = await fs.readFile(superKitPath, "utf-8");
|
|
297
300
|
return {
|
|
298
301
|
description: parsed?.description || `Loaded command: ${promptName}`,
|
|
299
302
|
messages: [
|
|
303
|
+
{
|
|
304
|
+
role: "system", // Try standard system role if supported by the client
|
|
305
|
+
content: {
|
|
306
|
+
type: "text",
|
|
307
|
+
text: superKitContent,
|
|
308
|
+
},
|
|
309
|
+
},
|
|
300
310
|
{
|
|
301
311
|
role: "user",
|
|
302
312
|
content: {
|