aiquila-mcp 0.3.2 → 0.3.3

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.
@@ -21,7 +21,10 @@ export async function fetchNotesAPI(endpoint, options = {}) {
21
21
  Accept: 'application/json',
22
22
  };
23
23
  if (options.ifMatch) {
24
- headers['If-Match'] = options.ifMatch;
24
+ // Notes API returns etag as an unquoted hash in JSON but requires a quoted
25
+ // value in the If-Match header per RFC 7232. Wrap if not already quoted.
26
+ const tag = options.ifMatch;
27
+ headers['If-Match'] = tag.startsWith('"') ? tag : `"${tag}"`;
25
28
  }
26
29
  let body;
27
30
  if (options.body !== undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiquila-mcp",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "AIquila - MCP server for Nextcloud integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",