Skip to content

Commit 1719da6

Browse files
committed
revert #22
1 parent 2877765 commit 1719da6

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ agent.server.registerResource(
1818
resources: names.map((name) => ({
1919
name,
2020
uri: `hello://${name}`,
21+
// NOTE: this mimeType is whatever the client should expect if it retrieves the resource
2122
mimeType: 'text/plain',
2223
// note this does not include the contents of the resource
2324
})),

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ test('Resource List - Tags', async () => {
201201
expect.objectContaining({
202202
name: expect.any(String),
203203
uri: expect.stringMatching(/epicme:\/\/tags\/\d+/),
204-
mimeType: 'text/plain',
204+
mimeType: 'application/json',
205205
}),
206206
)
207207
})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ test('Resource List - Tags', async () => {
201201
expect.objectContaining({
202202
name: expect.any(String),
203203
uri: expect.stringMatching(/epicme:\/\/tags\/\d+/),
204-
mimeType: 'text/plain',
204+
mimeType: 'application/json',
205205
}),
206206
)
207207
})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function initializeResources(agent: EpicMeMCP) {
3333
resources: tags.map((tag) => ({
3434
name: tag.name,
3535
uri: `epicme://tags/${tag.id}`,
36-
mimeType: 'text/plain',
36+
mimeType: 'application/json',
3737
})),
3838
}
3939
},

0 commit comments

Comments
 (0)