Skip to content

Commit 81621b7

Browse files
committed
fix: add type info
1 parent f13e14c commit 81621b7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

TODO.md

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ NEXT:
1313
ImageContent
1414
EmbeddedResource
1515
PromptMessage
16-
1716
BlobResourceContents
1817
TextResourceContents
1918
ResourceContents

index.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ mcp.template({
1919
name: "An optional name", // Optional
2020
description: "An optional description", // Optional
2121
mimeType: "text/plain", // Optional
22-
fn: addMetadata(async ({ filename, id }) => {
23-
return `file://${filename}/${id}.txt`;
24-
}),
22+
fn: addMetadata(
23+
async ({ filename, id }: { filename: string; id: string }) => {
24+
return `file://${filename}/${id}.txt`;
25+
},
26+
),
2527
});
2628

2729
function addMetadata(fn: Function) {

0 commit comments

Comments
 (0)