Skip to content

Commit 070ef59

Browse files
committed
improve server instructions
1 parent 3c53123 commit 070ef59

File tree

18 files changed

+198
-54
lines changed

18 files changed

+198
-54
lines changed

exercises/03.resources/01.problem.simple/src/index.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,19 @@ export class EpicMeMCP {
1919
// 🐨 add resources to the capabilities
2020
},
2121
instructions: `
22-
EpicMe is a journaling app that allows users to write about and review their experiences, thoughts, and reflections.
22+
EpicMe: Personal journaling server with AI-powered organization.
2323
24-
These tools are the user's window into their journal. With these tools and your help, they can create, read, and manage their journal entries and associated tags.
24+
## Core Workflow
25+
- Create: \`create_entry\` → \`list_tags\` → \`create_tag\` (if needed) → \`add_tag_to_entry\`
2526
26-
You can also help users add tags to their entries and get all tags for an entry.
27+
## Best Practices
28+
- Check \`list_tags\` before creating new tags to avoid duplicates
29+
- Use \`list_entries\` to find specific entry IDs before \`get_entry\`
30+
31+
## Common Requests
32+
- "Write in my journal" → \`create_entry\`
33+
- "Show me my entries" → \`list_entries\` or \`view_journal\`
34+
- "Organize my entries" → \`list_tags\` then \`create_tag\` and \`add_tag_to_entry\`
2735
`.trim(),
2836
},
2937
)

exercises/03.resources/01.solution.simple/src/index.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,19 @@ export class EpicMeMCP {
1818
resources: {},
1919
},
2020
instructions: `
21-
EpicMe is a journaling app that allows users to write about and review their experiences, thoughts, and reflections.
21+
EpicMe: Personal journaling server with AI-powered organization.
2222
23-
These tools are the user's window into their journal. With these tools and your help, they can create, read, and manage their journal entries and associated tags.
23+
## Core Workflow
24+
- Create: \`create_entry\` → \`list_tags\` → \`create_tag\` (if needed) → \`add_tag_to_entry\`
2425
25-
You can also help users add tags to their entries and get all tags for an entry.
26+
## Best Practices
27+
- Check \`list_tags\` before creating new tags to avoid duplicates
28+
- Use \`list_entries\` to find specific entry IDs before \`get_entry\`
29+
30+
## Common Requests
31+
- "Write in my journal" → \`create_entry\`
32+
- "Show me my entries" → \`list_entries\` or \`view_journal\`
33+
- "Organize my entries" → \`list_tags\` then \`create_tag\` and \`add_tag_to_entry\`
2634
`.trim(),
2735
},
2836
)

exercises/03.resources/02.problem.template/src/index.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,19 @@ export class EpicMeMCP {
1818
resources: {},
1919
},
2020
instructions: `
21-
EpicMe is a journaling app that allows users to write about and review their experiences, thoughts, and reflections.
21+
EpicMe: Personal journaling server with AI-powered organization.
2222
23-
These tools are the user's window into their journal. With these tools and your help, they can create, read, and manage their journal entries and associated tags.
23+
## Core Workflow
24+
- Create: \`create_entry\` → \`list_tags\` → \`create_tag\` (if needed) → \`add_tag_to_entry\`
2425
25-
You can also help users add tags to their entries and get all tags for an entry.
26+
## Best Practices
27+
- Check \`list_tags\` before creating new tags to avoid duplicates
28+
- Use \`list_entries\` to find specific entry IDs before \`get_entry\`
29+
30+
## Common Requests
31+
- "Write in my journal" → \`create_entry\`
32+
- "Show me my entries" → \`list_entries\` or \`view_journal\`
33+
- "Organize my entries" → \`list_tags\` then \`create_tag\` and \`add_tag_to_entry\`
2634
`.trim(),
2735
},
2836
)

exercises/03.resources/02.solution.template/src/index.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,19 @@ export class EpicMeMCP {
1818
resources: {},
1919
},
2020
instructions: `
21-
EpicMe is a journaling app that allows users to write about and review their experiences, thoughts, and reflections.
21+
EpicMe: Personal journaling server with AI-powered organization.
2222
23-
These tools are the user's window into their journal. With these tools and your help, they can create, read, and manage their journal entries and associated tags.
23+
## Core Workflow
24+
- Create: \`create_entry\` → \`list_tags\` → \`create_tag\` (if needed) → \`add_tag_to_entry\`
2425
25-
You can also help users add tags to their entries and get all tags for an entry.
26+
## Best Practices
27+
- Check \`list_tags\` before creating new tags to avoid duplicates
28+
- Use \`list_entries\` to find specific entry IDs before \`get_entry\`
29+
30+
## Common Requests
31+
- "Write in my journal" → \`create_entry\`
32+
- "Show me my entries" → \`list_entries\` or \`view_journal\`
33+
- "Organize my entries" → \`list_tags\` then \`create_tag\` and \`add_tag_to_entry\`
2634
`.trim(),
2735
},
2836
)

exercises/03.resources/03.problem.list/src/index.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,19 @@ export class EpicMeMCP {
1818
resources: {},
1919
},
2020
instructions: `
21-
EpicMe is a journaling app that allows users to write about and review their experiences, thoughts, and reflections.
21+
EpicMe: Personal journaling server with AI-powered organization.
2222
23-
These tools are the user's window into their journal. With these tools and your help, they can create, read, and manage their journal entries and associated tags.
23+
## Core Workflow
24+
- Create: \`create_entry\` → \`list_tags\` → \`create_tag\` (if needed) → \`add_tag_to_entry\`
2425
25-
You can also help users add tags to their entries and get all tags for an entry.
26+
## Best Practices
27+
- Check \`list_tags\` before creating new tags to avoid duplicates
28+
- Use \`list_entries\` to find specific entry IDs before \`get_entry\`
29+
30+
## Common Requests
31+
- "Write in my journal" → \`create_entry\`
32+
- "Show me my entries" → \`list_entries\` or \`view_journal\`
33+
- "Organize my entries" → \`list_tags\` then \`create_tag\` and \`add_tag_to_entry\`
2634
`.trim(),
2735
},
2836
)

exercises/03.resources/03.solution.list/src/index.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,19 @@ export class EpicMeMCP {
1818
resources: {},
1919
},
2020
instructions: `
21-
EpicMe is a journaling app that allows users to write about and review their experiences, thoughts, and reflections.
21+
EpicMe: Personal journaling server with AI-powered organization.
2222
23-
These tools are the user's window into their journal. With these tools and your help, they can create, read, and manage their journal entries and associated tags.
23+
## Core Workflow
24+
- Create: \`create_entry\` → \`list_tags\` → \`create_tag\` (if needed) → \`add_tag_to_entry\`
2425
25-
You can also help users add tags to their entries and get all tags for an entry.
26+
## Best Practices
27+
- Check \`list_tags\` before creating new tags to avoid duplicates
28+
- Use \`list_entries\` to find specific entry IDs before \`get_entry\`
29+
30+
## Common Requests
31+
- "Write in my journal" → \`create_entry\`
32+
- "Show me my entries" → \`list_entries\` or \`view_journal\`
33+
- "Organize my entries" → \`list_tags\` then \`create_tag\` and \`add_tag_to_entry\`
2634
`.trim(),
2735
},
2836
)

exercises/03.resources/04.problem.completion/src/index.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,19 @@ export class EpicMeMCP {
1919
// 🐨 add completions capability
2020
},
2121
instructions: `
22-
EpicMe is a journaling app that allows users to write about and review their experiences, thoughts, and reflections.
22+
EpicMe: Personal journaling server with AI-powered organization.
2323
24-
These tools are the user's window into their journal. With these tools and your help, they can create, read, and manage their journal entries and associated tags.
24+
## Core Workflow
25+
- Create: \`create_entry\` → \`list_tags\` → \`create_tag\` (if needed) → \`add_tag_to_entry\`
2526
26-
You can also help users add tags to their entries and get all tags for an entry.
27+
## Best Practices
28+
- Check \`list_tags\` before creating new tags to avoid duplicates
29+
- Use \`list_entries\` to find specific entry IDs before \`get_entry\`
30+
31+
## Common Requests
32+
- "Write in my journal" → \`create_entry\`
33+
- "Show me my entries" → \`list_entries\` or \`view_journal\`
34+
- "Organize my entries" → \`list_tags\` then \`create_tag\` and \`add_tag_to_entry\`
2735
`.trim(),
2836
},
2937
)

exercises/03.resources/04.solution.completion/src/index.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,19 @@ export class EpicMeMCP {
1919
completions: {},
2020
},
2121
instructions: `
22-
EpicMe is a journaling app that allows users to write about and review their experiences, thoughts, and reflections.
22+
EpicMe: Personal journaling server with AI-powered organization.
2323
24-
These tools are the user's window into their journal. With these tools and your help, they can create, read, and manage their journal entries and associated tags.
24+
## Core Workflow
25+
- Create: \`create_entry\` → \`list_tags\` → \`create_tag\` (if needed) → \`add_tag_to_entry\`
2526
26-
You can also help users add tags to their entries and get all tags for an entry.
27+
## Best Practices
28+
- Check \`list_tags\` before creating new tags to avoid duplicates
29+
- Use \`list_entries\` to find specific entry IDs before \`get_entry\`
30+
31+
## Common Requests
32+
- "Write in my journal" → \`create_entry\`
33+
- "Show me my entries" → \`list_entries\` or \`view_journal\`
34+
- "Organize my entries" → \`list_tags\` then \`create_tag\` and \`add_tag_to_entry\`
2735
`.trim(),
2836
},
2937
)

exercises/04.resource-tools/01.problem.embedded/src/index.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,19 @@ export class EpicMeMCP {
1919
completions: {},
2020
},
2121
instructions: `
22-
EpicMe is a journaling app that allows users to write about and review their experiences, thoughts, and reflections.
22+
EpicMe: Personal journaling server with AI-powered organization.
2323
24-
These tools are the user's window into their journal. With these tools and your help, they can create, read, and manage their journal entries and associated tags.
24+
## Core Workflow
25+
- Create: \`create_entry\` → \`list_tags\` → \`create_tag\` (if needed) → \`add_tag_to_entry\`
2526
26-
You can also help users add tags to their entries and get all tags for an entry.
27+
## Best Practices
28+
- Check \`list_tags\` before creating new tags to avoid duplicates
29+
- Use \`list_entries\` to find specific entry IDs before \`get_entry\`
30+
31+
## Common Requests
32+
- "Write in my journal" → \`create_entry\`
33+
- "Show me my entries" → \`list_entries\` or \`view_journal\`
34+
- "Organize my entries" → \`list_tags\` then \`create_tag\` and \`add_tag_to_entry\`
2735
`.trim(),
2836
},
2937
)

exercises/04.resource-tools/01.solution.embedded/src/index.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,19 @@ export class EpicMeMCP {
1919
completions: {},
2020
},
2121
instructions: `
22-
EpicMe is a journaling app that allows users to write about and review their experiences, thoughts, and reflections.
22+
EpicMe: Personal journaling server with AI-powered organization.
2323
24-
These tools are the user's window into their journal. With these tools and your help, they can create, read, and manage their journal entries and associated tags.
24+
## Core Workflow
25+
- Create: \`create_entry\` → \`list_tags\` → \`create_tag\` (if needed) → \`add_tag_to_entry\`
2526
26-
You can also help users add tags to their entries and get all tags for an entry.
27+
## Best Practices
28+
- Check \`list_tags\` before creating new tags to avoid duplicates
29+
- Use \`list_entries\` to find specific entry IDs before \`get_entry\`
30+
31+
## Common Requests
32+
- "Write in my journal" → \`create_entry\`
33+
- "Show me my entries" → \`list_entries\` or \`view_journal\`
34+
- "Organize my entries" → \`list_tags\` then \`create_tag\` and \`add_tag_to_entry\`
2735
`.trim(),
2836
},
2937
)

0 commit comments

Comments
 (0)