Skip to content

Commit 4e80d76

Browse files
chore: fix example snippet imports
1 parent c959300 commit 4e80d76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/mcp-server/src/local-docs-search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ const EMBEDDED_METHODS: MethodEntry[] = [
934934
typescript: {
935935
method: 'client.files.upload',
936936
example:
937-
"import Writer from 'writer-sdk';\n\nconst client = new Writer({\n apiKey: process.env['WRITER_API_KEY'], // This is the default and can be omitted\n});\n\nconst file = await client.files.upload({\n content: fs.createReadStream('path/to/file'),\n 'Content-Disposition': 'Content-Disposition',\n});\n\nconsole.log(file.id);",
937+
"import fs from 'fs';\nimport Writer from 'writer-sdk';\n\nconst client = new Writer({\n apiKey: process.env['WRITER_API_KEY'], // This is the default and can be omitted\n});\n\nconst file = await client.files.upload({\n content: fs.createReadStream('path/to/file'),\n 'Content-Disposition': 'Content-Disposition',\n});\n\nconsole.log(file.id);",
938938
},
939939
},
940940
},

0 commit comments

Comments
 (0)