cookbook-co-mcp 0.2.3 → 0.2.4
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/dist/cookbook-mcp.js +5 -2
- package/package.json +1 -1
package/dist/cookbook-mcp.js
CHANGED
|
@@ -269020,8 +269020,11 @@ var ImagesApi = class {
|
|
|
269020
269020
|
const form = new FormData();
|
|
269021
269021
|
for (const [name5, value] of Object.entries(data)) form.append(name5, String(value));
|
|
269022
269022
|
form.append("file", new Blob([new Uint8Array(bytes)]), `upload.${ext}`);
|
|
269023
|
+
const encoded = new Response(form);
|
|
269024
|
+
const body = Buffer.from(await encoded.arrayBuffer());
|
|
269023
269025
|
const res = await this.http.post(url2, {
|
|
269024
|
-
body
|
|
269026
|
+
body,
|
|
269027
|
+
headers: { "content-type": encoded.headers.get("content-type") ?? "" },
|
|
269025
269028
|
responseType: "text",
|
|
269026
269029
|
timeout: { request: TRANSFER_TIMEOUT_MS },
|
|
269027
269030
|
...retryPost
|
|
@@ -274008,7 +274011,7 @@ function createServerFactory(log) {
|
|
|
274008
274011
|
};
|
|
274009
274012
|
const create2 = () => {
|
|
274010
274013
|
const server = new McpServer(
|
|
274011
|
-
{ name: "cookbook", version: "0.2.
|
|
274014
|
+
{ name: "cookbook", version: "0.2.4" },
|
|
274012
274015
|
{ instructions: serverInstructions(config2) }
|
|
274013
274016
|
);
|
|
274014
274017
|
registerTools(server, context);
|