@anyproto/anytype-mcp 1.2.4 → 1.2.6
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/.github/workflows/release.yml +7 -7
- package/bin/cli.mjs +57 -51
- package/package.json +15 -15
- package/src/auth/get-key.ts +2 -2
- package/src/client/http-client.ts +1 -1
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"mcp",
|
|
8
8
|
"server"
|
|
9
9
|
],
|
|
10
|
-
"version": "1.2.
|
|
10
|
+
"version": "1.2.6",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"scripts": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"anytype-mcp": "bin/cli.mjs"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@modelcontextprotocol/sdk": "1.
|
|
29
|
-
"axios": "1.
|
|
28
|
+
"@modelcontextprotocol/sdk": "1.29.0",
|
|
29
|
+
"axios": "1.15.0",
|
|
30
30
|
"form-data": "4.0.5",
|
|
31
31
|
"mustache": "4.2.0",
|
|
32
32
|
"node-fetch": "3.3.2",
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
"zod": "4.3.6"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@anthropic-ai/sdk": "0.
|
|
40
|
-
"@eslint/js": "
|
|
39
|
+
"@anthropic-ai/sdk": "0.90.0",
|
|
40
|
+
"@eslint/js": "10.0.1",
|
|
41
41
|
"@types/json-schema": "7.0.15",
|
|
42
42
|
"@types/mustache": "4.2.6",
|
|
43
|
-
"@types/node": "25.
|
|
43
|
+
"@types/node": "25.6.0",
|
|
44
44
|
"@types/which": "3.0.4",
|
|
45
|
-
"@vitest/coverage-v8": "4.
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
47
|
-
"@typescript-eslint/parser": "8.
|
|
48
|
-
"eslint": "
|
|
49
|
-
"esbuild": "0.
|
|
50
|
-
"openai": "6.
|
|
51
|
-
"prettier": "3.8.
|
|
45
|
+
"@vitest/coverage-v8": "4.1.4",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "8.58.2",
|
|
47
|
+
"@typescript-eslint/parser": "8.58.2",
|
|
48
|
+
"eslint": "10.2.1",
|
|
49
|
+
"esbuild": "0.28.0",
|
|
50
|
+
"openai": "6.34.0",
|
|
51
|
+
"prettier": "3.8.3",
|
|
52
52
|
"prettier-plugin-organize-imports": "4.3.0",
|
|
53
53
|
"tsx": "4.21.0",
|
|
54
|
-
"typescript": "
|
|
55
|
-
"vitest": "4.
|
|
54
|
+
"typescript": "6.0.3",
|
|
55
|
+
"vitest": "4.1.4"
|
|
56
56
|
},
|
|
57
57
|
"description": "Official MCP server for Anytype API",
|
|
58
58
|
"repository": {
|
package/src/auth/get-key.ts
CHANGED
|
@@ -60,7 +60,7 @@ export class ApiKeyGenerator {
|
|
|
60
60
|
return response.data.challenge_id;
|
|
61
61
|
} catch (error) {
|
|
62
62
|
console.error("Authentication error:", error instanceof Error ? error.message : error);
|
|
63
|
-
throw new Error("Failed to start authentication");
|
|
63
|
+
throw new Error("Failed to start authentication", { cause: error });
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -87,7 +87,7 @@ export class ApiKeyGenerator {
|
|
|
87
87
|
return { apiKey: response.data.api_key, anytypeVersion: response.headers["anytype-version"] };
|
|
88
88
|
} catch (error) {
|
|
89
89
|
console.error("Authentication error:", error instanceof Error ? error.message : error);
|
|
90
|
-
throw new Error("Failed to complete authentication");
|
|
90
|
+
throw new Error("Failed to complete authentication", { cause: error });
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -89,7 +89,7 @@ export class HttpClient {
|
|
|
89
89
|
const fileStream = fs.createReadStream(filePath);
|
|
90
90
|
formData.append(name, fileStream);
|
|
91
91
|
} catch (error) {
|
|
92
|
-
throw new Error(`Failed to read file at ${filePath}: ${error}
|
|
92
|
+
throw new Error(`Failed to read file at ${filePath}: ${error}`, { cause: error });
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
}
|