fastmail-mcp-server 0.4.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -814,7 +814,7 @@ server.tool(
|
|
|
814
814
|
// Images - return as image content (resize if >1MB for model limits)
|
|
815
815
|
if (result.type.startsWith("image/")) {
|
|
816
816
|
const MAX_SIZE = 1024 * 1024; // 1MB
|
|
817
|
-
let imageData = result.data;
|
|
817
|
+
let imageData: Buffer | Uint8Array = result.data;
|
|
818
818
|
let mimeType = result.type;
|
|
819
819
|
let resized = false;
|
|
820
820
|
|
|
@@ -869,7 +869,7 @@ server.tool(
|
|
|
869
869
|
{
|
|
870
870
|
type: "image" as const,
|
|
871
871
|
data: base64,
|
|
872
|
-
mimeType
|
|
872
|
+
mimeType,
|
|
873
873
|
},
|
|
874
874
|
],
|
|
875
875
|
};
|