beeswax-mcp 1.3.0 → 1.3.1
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/client.js +7 -0
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -120,6 +120,13 @@ export class BeeswaxClient {
|
|
|
120
120
|
const message = parsed && typeof parsed === "object" && parsed.error ? parsed.error : res.statusText;
|
|
121
121
|
throw new Error(`Beeswax API ${res.status} on ${method} ${path}: ${message}`);
|
|
122
122
|
}
|
|
123
|
+
// Every API destroy answers `head :no_content` (204, empty body). Returning
|
|
124
|
+
// `undefined` here made index.ts JSON.stringify to a non-string, which the
|
|
125
|
+
// MCP SDK rejected — so every successful delete surfaced as "Tool execution
|
|
126
|
+
// failed" after the record was already gone. Always hand back an object.
|
|
127
|
+
if (parsed === undefined) {
|
|
128
|
+
return { ok: true, status: res.status, method, path };
|
|
129
|
+
}
|
|
123
130
|
return parsed;
|
|
124
131
|
}
|
|
125
132
|
}
|
package/dist/index.js
CHANGED
|
@@ -34,7 +34,9 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
34
34
|
}
|
|
35
35
|
try {
|
|
36
36
|
const result = await tool.handler(client, request.params.arguments ?? {});
|
|
37
|
-
|
|
37
|
+
// JSON.stringify(undefined) is undefined, not a string — a text-less
|
|
38
|
+
// content block fails the SDK's result schema and reads as a failed call.
|
|
39
|
+
let text = JSON.stringify(result ?? { ok: true }, null, 2) ?? "{}";
|
|
38
40
|
const update = client.updateAvailable;
|
|
39
41
|
if (update && !updateNoticeShown && request.params.name !== "check_beeswax_connection") {
|
|
40
42
|
updateNoticeShown = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beeswax-mcp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Official MCP server for Beeswax (beeswaxapp.com) — query invoices, quotes, expenses, payments, journals, time entries, projects, products & services and tax returns from Claude and other MCP clients, and build quotes priced from your catalogue.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://www.beeswaxapp.com/support/mcp-setup",
|