@ankimcp/anki-mcp-server 0.8.0 → 0.8.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.
- package/README.md +13 -13
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -124,7 +124,7 @@ Then configure:
|
|
|
124
124
|
{
|
|
125
125
|
"mcpServers": {
|
|
126
126
|
"anki-mcp": {
|
|
127
|
-
"command": "
|
|
127
|
+
"command": "ankimcp",
|
|
128
128
|
"args": ["--stdio"],
|
|
129
129
|
"env": {
|
|
130
130
|
"ANKI_CONNECT_URL": "http://localhost:8765"
|
|
@@ -176,14 +176,14 @@ npx @ankimcp/anki-mcp-server --anki-connect http://localhost:8765
|
|
|
176
176
|
npm install -g @ankimcp/anki-mcp-server
|
|
177
177
|
|
|
178
178
|
# Run the server
|
|
179
|
-
|
|
179
|
+
ankimcp
|
|
180
180
|
|
|
181
181
|
# With ngrok tunnel (recommended for web-based AI)
|
|
182
|
-
|
|
182
|
+
ankimcp --ngrok
|
|
183
183
|
|
|
184
184
|
# With custom options
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
ankimcp --port 8080 --host 0.0.0.0
|
|
186
|
+
ankimcp --anki-connect http://localhost:8765
|
|
187
187
|
```
|
|
188
188
|
|
|
189
189
|
**Method 3: Install from source (for development)**
|
|
@@ -197,7 +197,7 @@ npm run start:prod:http
|
|
|
197
197
|
**CLI Options:**
|
|
198
198
|
|
|
199
199
|
```bash
|
|
200
|
-
|
|
200
|
+
ankimcp [options]
|
|
201
201
|
|
|
202
202
|
Options:
|
|
203
203
|
--stdio Run in STDIO mode (for MCP clients)
|
|
@@ -215,10 +215,10 @@ Usage with npx (no installation needed):
|
|
|
215
215
|
|
|
216
216
|
Usage with global installation:
|
|
217
217
|
npm install -g @ankimcp/anki-mcp-server # Install once
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
218
|
+
ankimcp # HTTP mode
|
|
219
|
+
ankimcp --port 8080 # Custom port
|
|
220
|
+
ankimcp --stdio # STDIO mode
|
|
221
|
+
ankimcp --ngrok # HTTP mode with ngrok tunnel
|
|
222
222
|
```
|
|
223
223
|
|
|
224
224
|
**Using with ngrok:**
|
|
@@ -231,7 +231,7 @@ npm install -g ngrok
|
|
|
231
231
|
ngrok config add-authtoken <your-token> # Get token from https://dashboard.ngrok.com
|
|
232
232
|
|
|
233
233
|
# Start server with ngrok tunnel in one command:
|
|
234
|
-
|
|
234
|
+
ankimcp --ngrok
|
|
235
235
|
|
|
236
236
|
# The tunnel URL will be displayed in the startup banner
|
|
237
237
|
# Example output:
|
|
@@ -242,7 +242,7 @@ ngrok config add-authtoken <your-token> # Get token from https://dashboard.ngro
|
|
|
242
242
|
|
|
243
243
|
```bash
|
|
244
244
|
# Terminal 1: Start the server
|
|
245
|
-
|
|
245
|
+
ankimcp
|
|
246
246
|
|
|
247
247
|
# Terminal 2: Create tunnel
|
|
248
248
|
ngrok http 3000
|
|
@@ -255,7 +255,7 @@ ngrok http 3000
|
|
|
255
255
|
- ✅ One command instead of two terminals
|
|
256
256
|
- ✅ Automatic cleanup when you press Ctrl+C
|
|
257
257
|
- ✅ URL displayed directly in the startup banner
|
|
258
|
-
- ✅ Works with custom ports:
|
|
258
|
+
- ✅ Works with custom ports: `ankimcp --port 8080 --ngrok`
|
|
259
259
|
|
|
260
260
|
**Security note:** Anyone with your ngrok URL can access your Anki, so keep that URL private!
|
|
261
261
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankimcp/anki-mcp-server",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "Model Context Protocol server for Anki - enables AI assistants to interact with your Anki flashcards",
|
|
5
5
|
"author": "Anatoly Tarnavsky",
|
|
6
6
|
"private": false,
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"inspector:http": "./node_modules/.bin/mcp-inspector --config mcp-inspector-config.json --server http-server",
|
|
37
37
|
"sync-version": "node scripts/sync-version.js",
|
|
38
38
|
"mcpb:clean": "rm -f *.mcpb",
|
|
39
|
-
"mcpb:bundle": "npm run sync-version && npm run mcpb:clean && npm run build && mcpb pack . \"
|
|
39
|
+
"mcpb:bundle": "npm run sync-version && npm run mcpb:clean && npm run build && mcpb pack . \"anki-mcp-server-$npm_package_version.mcpb\"",
|
|
40
40
|
"pack:local": "rm -f *.tgz && npm run build && npm pack",
|
|
41
41
|
"install:local": "npm install -g ./@ankimcp-anki-mcp-server-*.tgz",
|
|
42
42
|
"uninstall:local": "npm uninstall -g @ankimcp/anki-mcp-server",
|