@anyproto/anytype-mcp 1.0.1 → 1.0.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.
@@ -0,0 +1,64 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - "**"
7
+ pull_request:
8
+ branches:
9
+ - "**"
10
+
11
+ jobs:
12
+ lint:
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v4
18
+
19
+ - name: Set up Node.js
20
+ uses: actions/setup-node@v4
21
+ with:
22
+ node-version: "22"
23
+
24
+ - name: Install dependencies
25
+ run: npm install
26
+
27
+ - name: Run linter
28
+ run: npm run lint
29
+
30
+ type-check:
31
+ runs-on: ubuntu-latest
32
+
33
+ steps:
34
+ - name: Checkout code
35
+ uses: actions/checkout@v4
36
+
37
+ - name: Set up Node.js
38
+ uses: actions/setup-node@v4
39
+ with:
40
+ node-version: "22"
41
+
42
+ - name: Install dependencies
43
+ run: npm install
44
+
45
+ - name: Run type checks
46
+ run: npm run type-check
47
+
48
+ build:
49
+ runs-on: ubuntu-latest
50
+
51
+ steps:
52
+ - name: Checkout code
53
+ uses: actions/checkout@v4
54
+
55
+ - name: Set up Node.js
56
+ uses: actions/setup-node@v4
57
+ with:
58
+ node-version: "22"
59
+
60
+ - name: Install dependencies
61
+ run: npm install
62
+
63
+ - name: Build extension
64
+ run: npm run build
@@ -0,0 +1,40 @@
1
+ name: Create release and publish to npmjs.com
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v[0-9]+.[0-9]+.[0-9]+'
7
+
8
+ jobs:
9
+ release:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - name: Checkout code
14
+ uses: actions/checkout@v4
15
+
16
+ - name: Setup Node.js
17
+ uses: actions/setup-node@v4
18
+ with:
19
+ node-version: "22"
20
+ registry-url: https://registry.npmjs.org/
21
+
22
+ - name: Install dependencies
23
+ run: npm install
24
+
25
+ - name: Run type checks
26
+ run: npm run type-check
27
+
28
+ - name: Publish to npm
29
+ run: npm publish --access public
30
+ env:
31
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32
+
33
+ - name: create release
34
+ uses: softprops/action-gh-release@v2
35
+ with:
36
+ name: ${{ github.ref_name }}
37
+ generate_release_notes: true
38
+ draft: false
39
+ prerelease: false
40
+ token: ${{ secrets.GITHUB_TOKEN }}
package/.prettierrc ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "printWidth": 120,
3
+ "singleQuote": false,
4
+ "plugins": ["prettier-plugin-organize-imports"]
5
+ }
package/README.md CHANGED
@@ -12,9 +12,27 @@ It bridges the gap between AI and Anytype's powerful features by converting Anyt
12
12
  - Properties & Tags
13
13
  - Types & Templates
14
14
 
15
- ## Usage
15
+ ## Quick Start
16
16
 
17
- ### 1. Configure in your MCP client
17
+ ### 1. Get Your API Key
18
+
19
+ 1. Open Anytype
20
+ 2. Go to Settings
21
+ 3. Navigate to API Keys
22
+ 4. Create a new API key
23
+
24
+ <details>
25
+ <summary>Alternative: Get API key via CLI</summary>
26
+
27
+ You can also get your API key using the command line:
28
+
29
+ ```bash
30
+ npx -y @anyproto/anytype-mcp get-key
31
+ ```
32
+
33
+ </details>
34
+
35
+ ### 2. Configure Your MCP Client
18
36
 
19
37
  Add the following configuration to your MCP client settings:
20
38
 
@@ -32,21 +50,8 @@ Add the following configuration to your MCP client settings:
32
50
  }
33
51
  ```
34
52
 
35
- To get your Anytype API key, you can either:
36
-
37
- 1. Use the command line:
38
-
39
- ```bash
40
- npx -y @anyproto/anytype-mcp get-key
41
- ```
42
-
43
- 2. Or get it from the Anytype desktop client:
44
- - Open Anytype
45
- - Go to Settings
46
- - Navigate to API Keys
47
- - Create a new API key
48
-
49
- ### 2. Alternative: Global Installation
53
+ <details>
54
+ <summary>Alternative: Global Installation</summary>
50
55
 
51
56
  If you prefer to install the package globally:
52
57
 
@@ -71,36 +76,6 @@ npm install -g @anyproto/anytype-mcp
71
76
  }
72
77
  ```
73
78
 
74
- <details>
75
- <summary>Development: Installation from source</summary>
76
-
77
- If you need to install from source:
78
-
79
- 1. Clone the repository:
80
-
81
- ```bash
82
- git clone https://github.com/anyproto/anytype-mcp.git
83
- cd anytype-mcp
84
- ```
85
-
86
- 2. Install dependencies:
87
-
88
- ```bash
89
- npm install -D
90
- ```
91
-
92
- 3. Build the project:
93
-
94
- ```bash
95
- npm run build
96
- ```
97
-
98
- 4. Link the package globally:
99
-
100
- ```bash
101
- npm link
102
- ```
103
-
104
79
  </details>
105
80
 
106
81
  ## Example Interactions
@@ -114,6 +89,8 @@ Here are some examples of how you can interact with your Anytype:
114
89
 
115
90
  ## Development
116
91
 
92
+ ### Installation from Source
93
+
117
94
  1. Clone the repository:
118
95
 
119
96
  ```bash
@@ -133,6 +110,12 @@ npm install -D
133
110
  npm run build
134
111
  ```
135
112
 
113
+ 4. Link the package globally (optional):
114
+
115
+ ```bash
116
+ npm link
117
+ ```
118
+
136
119
  ## Contribution
137
120
 
138
121
  Thank you for your desire to develop Anytype together!