Skip to content

Commit 048b9e4

Browse files
committed
add completions capability
1 parent ed8953a commit 048b9e4

File tree

13 files changed

+14
-0
lines changed

13 files changed

+14
-0
lines changed

exercises/03.resources/03.problem.completion/README.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ agent.server.resource(
3535
},
3636
)
3737
```
38+
39+
You'll also want to add a `completions` capability to your server.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export class EpicMeMCP {
1515
capabilities: {
1616
tools: {},
1717
resources: {},
18+
// 🐨 add completions capability
1819
},
1920
instructions: `
2021
EpicMe is a journaling app that allows users to write about and review their experiences, thoughts, and reflections.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export class EpicMeMCP {
1515
capabilities: {
1616
tools: {},
1717
resources: {},
18+
completions: {},
1819
},
1920
instructions: `
2021
EpicMe is a journaling app that allows users to write about and review their experiences, thoughts, and reflections.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export class EpicMeMCP {
1515
capabilities: {
1616
tools: {},
1717
resources: {},
18+
completions: {},
1819
},
1920
instructions: `
2021
EpicMe is a journaling app that allows users to write about and review their experiences, thoughts, and reflections.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export class EpicMeMCP {
1515
capabilities: {
1616
tools: {},
1717
resources: {},
18+
completions: {},
1819
},
1920
instructions: `
2021
EpicMe is a journaling app that allows users to write about and review their experiences, thoughts, and reflections.

exercises/04.prompts/01.problem.prompts/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export class EpicMeMCP {
1717
capabilities: {
1818
tools: {},
1919
resources: {},
20+
completions: {},
2021
// 🐨 add prompts capabilities here:
2122
},
2223
instructions: `

exercises/04.prompts/01.solution.prompts/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export class EpicMeMCP {
1616
capabilities: {
1717
tools: {},
1818
resources: {},
19+
completions: {},
1920
prompts: {},
2021
},
2122
instructions: `

exercises/04.prompts/02.problem.optimized-prompt/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export class EpicMeMCP {
1616
capabilities: {
1717
tools: {},
1818
resources: {},
19+
completions: {},
1920
prompts: {},
2021
},
2122
instructions: `

exercises/04.prompts/02.solution.optimized-prompt/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export class EpicMeMCP {
1616
capabilities: {
1717
tools: {},
1818
resources: {},
19+
completions: {},
1920
prompts: {},
2021
},
2122
instructions: `

exercises/05.sampling/01.problem.simple/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export class EpicMeMCP {
1616
capabilities: {
1717
tools: {},
1818
resources: {},
19+
completions: {},
1920
prompts: {},
2021
},
2122
instructions: `

0 commit comments

Comments
 (0)