@anyproto/anytype-mcp 1.0.7 → 1.0.8
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/ci.yml +4 -4
- package/.github/workflows/release.yml +4 -5
- package/README.md +5 -5
- package/bin/cli.mjs +100 -58
- package/package.json +28 -28
- package/scripts/tools.json +857 -219
- package/server.json +1 -1
- package/src/client/__tests__/http-client.test.ts +23 -17
- package/src/openapi/__tests__/parser.test.ts +136 -0
- package/src/openapi/parser.ts +6 -21
package/.github/workflows/ci.yml
CHANGED
|
@@ -25,7 +25,7 @@ jobs:
|
|
|
25
25
|
node-version: "22"
|
|
26
26
|
|
|
27
27
|
- name: Install dependencies
|
|
28
|
-
run: npm
|
|
28
|
+
run: npm ci
|
|
29
29
|
|
|
30
30
|
- name: Run linter
|
|
31
31
|
run: npm run lint
|
|
@@ -43,7 +43,7 @@ jobs:
|
|
|
43
43
|
node-version: "22"
|
|
44
44
|
|
|
45
45
|
- name: Install dependencies
|
|
46
|
-
run: npm
|
|
46
|
+
run: npm ci
|
|
47
47
|
|
|
48
48
|
- name: Run type checks
|
|
49
49
|
run: npm run typecheck
|
|
@@ -61,7 +61,7 @@ jobs:
|
|
|
61
61
|
node-version: "22"
|
|
62
62
|
|
|
63
63
|
- name: Install dependencies
|
|
64
|
-
run: npm
|
|
64
|
+
run: npm ci
|
|
65
65
|
|
|
66
66
|
- name: Build extension
|
|
67
67
|
run: npm run build
|
|
@@ -79,7 +79,7 @@ jobs:
|
|
|
79
79
|
node-version: "22"
|
|
80
80
|
|
|
81
81
|
- name: Install dependencies
|
|
82
|
-
run: npm
|
|
82
|
+
run: npm ci
|
|
83
83
|
|
|
84
84
|
- name: Run tests
|
|
85
85
|
run: npm run test
|
|
@@ -8,6 +8,7 @@ on:
|
|
|
8
8
|
permissions:
|
|
9
9
|
contents: write
|
|
10
10
|
packages: write
|
|
11
|
+
id-token: write
|
|
11
12
|
|
|
12
13
|
jobs:
|
|
13
14
|
release:
|
|
@@ -15,12 +16,12 @@ jobs:
|
|
|
15
16
|
|
|
16
17
|
steps:
|
|
17
18
|
- name: Checkout code
|
|
18
|
-
uses: actions/checkout@
|
|
19
|
+
uses: actions/checkout@v6
|
|
19
20
|
|
|
20
21
|
- name: Setup Node.js
|
|
21
|
-
uses: actions/setup-node@
|
|
22
|
+
uses: actions/setup-node@v6
|
|
22
23
|
with:
|
|
23
|
-
node-version: "
|
|
24
|
+
node-version: "24"
|
|
24
25
|
registry-url: https://registry.npmjs.org/
|
|
25
26
|
|
|
26
27
|
- name: Install dependencies
|
|
@@ -37,8 +38,6 @@ jobs:
|
|
|
37
38
|
|
|
38
39
|
- name: Publish to npm
|
|
39
40
|
run: npm publish --access public
|
|
40
|
-
env:
|
|
41
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
42
41
|
|
|
43
42
|
- name: Create Release
|
|
44
43
|
uses: softprops/action-gh-release@v2
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Anytype MCP Server
|
|
2
2
|
|
|
3
3
|
<a href="https://npmjs.org/package/@anyproto/anytype-mcp"><img src="https://img.shields.io/npm/v/@anyproto/anytype-mcp.svg" alt="NPM version" height="20" /></a>
|
|
4
|
-
<a href="https://cursor.com/install-mcp?name=anytype&config=
|
|
5
|
-
<a href="https://lmstudio.ai/install-mcp?name=anytype&config=
|
|
4
|
+
<a href="https://cursor.com/en-US/install-mcp?name=anytype&config=eyJlbnYiOnsiT1BFTkFQSV9NQ1BfSEVBREVSUyI6IntcIkF1dGhvcml6YXRpb25cIjpcIkJlYXJlciA8WU9VUl9BUElfS0VZPlwiLCBcIkFueXR5cGUtVmVyc2lvblwiOlwiMjAyNS0xMS0wOFwifSJ9LCJjb21tYW5kIjoibnB4IC15IEBhbnlwcm90by9hbnl0eXBlLW1jcCJ9"><img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Add anytype MCP server to Cursor" height="20" /></a>
|
|
5
|
+
<a href="https://lmstudio.ai/install-mcp?name=anytype&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBhbnlwcm90by9hbnl0eXBlLW1jcCJdLCJlbnYiOnsiT1BFTkFQSV9NQ1BfSEVBREVSUyI6IntcIkF1dGhvcml6YXRpb25cIjpcIkJlYXJlciA8WU9VUl9BUElfS0VZPlwiLCBcIkFueXR5cGUtVmVyc2lvblwiOlwiMjAyNS0xMS0wOFwifSJ9fQ%3D%3D"><img src="https://files.lmstudio.ai/deeplink/mcp-install-light.svg" alt="Add MCP Server anytype to LM Studio" height="20" /></a>
|
|
6
6
|
|
|
7
7
|
The Anytype MCP Server is a [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server enabling AI assistants to seamlessly interact with [Anytype's API](https://github.com/anyproto/anytype-api) through natural language.
|
|
8
8
|
|
|
@@ -49,7 +49,7 @@ Add the following configuration to your MCP client settings after replacing `<YO
|
|
|
49
49
|
"command": "npx",
|
|
50
50
|
"args": ["-y", "@anyproto/anytype-mcp"],
|
|
51
51
|
"env": {
|
|
52
|
-
"OPENAPI_MCP_HEADERS": "{\"Authorization\":\"Bearer <YOUR_API_KEY>\", \"Anytype-Version\":\"2025-
|
|
52
|
+
"OPENAPI_MCP_HEADERS": "{\"Authorization\":\"Bearer <YOUR_API_KEY>\", \"Anytype-Version\":\"2025-11-08\"}"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -63,7 +63,7 @@ Add the following configuration to your MCP client settings after replacing `<YO
|
|
|
63
63
|
Run this command to add the Anytype MCP server after replacing `<YOUR_API_KEY>` with your actual API key:
|
|
64
64
|
|
|
65
65
|
```bash
|
|
66
|
-
claude mcp add anytype -e OPENAPI_MCP_HEADERS='{"Authorization":"Bearer <YOUR_API_KEY>", "Anytype-Version":"2025-
|
|
66
|
+
claude mcp add anytype -e OPENAPI_MCP_HEADERS='{"Authorization":"Bearer <YOUR_API_KEY>", "Anytype-Version":"2025-11-08"}' -s user -- npx -y @anyproto/anytype-mcp
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
<details>
|
|
@@ -85,7 +85,7 @@ npm install -g @anyproto/anytype-mcp
|
|
|
85
85
|
"anytype": {
|
|
86
86
|
"command": "anytype-mcp",
|
|
87
87
|
"env": {
|
|
88
|
-
"OPENAPI_MCP_HEADERS": "{\"Authorization\":\"Bearer <YOUR_API_KEY>\", \"Anytype-Version\":\"2025-
|
|
88
|
+
"OPENAPI_MCP_HEADERS": "{\"Authorization\":\"Bearer <YOUR_API_KEY>\", \"Anytype-Version\":\"2025-11-08\"}"
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}
|