Skip to content

Commit e5e96bc

Browse files
cevianclaude
andcommitted
chore: update boilerplate submodule to latest main
- Update boilerplate submodule to point to latest main with prompts support - Maintain adapter pattern in stdio.ts to convert prompts Map to promptFactories - Everything working correctly with both MCP prompts and getGuide tool 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 04d8e04 commit e5e96bc

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

src/stdio.ts

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,33 @@ import { apiFactories } from './apis/index.js';
44
import { prompts } from './prompts/index.js';
55
import { context, serverInfo } from './serverInfo.js';
66

7+
// Convert prompts Map to promptFactories array for boilerplate compatibility
8+
const promptFactories = Array.from(prompts.entries()).map(([name, promptData]) =>
9+
() => ({
10+
name,
11+
config: {
12+
title: promptData.title,
13+
description: promptData.description,
14+
inputSchema: {}, // No arguments for static prompts
15+
},
16+
fn: async () => ({
17+
description: promptData.description || promptData.title || name,
18+
messages: [
19+
{
20+
role: 'user' as const,
21+
content: {
22+
type: 'text' as const,
23+
text: promptData.content,
24+
},
25+
},
26+
],
27+
}),
28+
})
29+
);
30+
731
stdioServerFactory({
832
...serverInfo,
933
context,
1034
apiFactories,
11-
prompts,
35+
promptFactories,
1236
});

0 commit comments

Comments
 (0)