Skip to content

Commit 776add9

Browse files
committed
prompts work in CLI as slash commands! /reword-as-me --content='Fancy things are most good'
1 parent df22f41 commit 776add9

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

personal_mcp/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ server.tool(
3636
Tools.hello
3737
);
3838

39-
// Gemini CLI doesn't seem to use prompts yet. :/
4039
server.prompt('reword-as-me', 'Reword it like me', Prompts.rewordItLikeMeSchema.shape, Prompts.rewordItLikeMe);
4140

4241
const transport = new StdioServerTransport();

personal_mcp/prompts.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,19 @@ export const rewordItLikeMeSchema = z.object({
88
export const rewordItLikeMe = async ({content}): Promise<GetPromptResult> => {
99
return {
1010
messages: [
11-
{
12-
role: 'user',
13-
content: {
14-
type: 'text',
15-
text: `${content}`,
16-
},
17-
},
11+
// Dunno if tools can handle this multi message prompt style.
12+
// {
13+
// role: 'user',
14+
// content: {
15+
// type: 'text',
16+
// text: `${content}`,
17+
// },
18+
// },
1819
{
1920
role: 'assistant',
2021
content: {
2122
type: 'text',
22-
text: `Please reword the provided text to use a cool vibe and relaxed tone of voice. Add in three emoji.`,
23+
text: `${content}\n\n\nPlease reword the provided text to use a cool vibe and relaxed tone of voice. Add in three emoji.`,
2324
},
2425
},
2526
],

0 commit comments

Comments
 (0)