knowmind 0.1.12 → 0.1.14

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 CHANGED
@@ -1,19 +1,19 @@
1
1
  # knowmind
2
2
 
3
- Kommandozeile und lokale MCP-Vermittlung für Knowmind — das Gedächtnis für Ihre KI.
3
+ Kommandozeile und lokaler MCP-Server für Knowmind — das Gedächtnis für Ihre KI.
4
4
 
5
- ## Installation
5
+ <!-- mcp-name: io.github.whosoeverm8/knowmind -->
6
6
 
7
- ```
8
- npm install -g https://knowmind.de/cli/knowmind-0.1.4.tgz
9
- ```
7
+ [![npm](https://img.shields.io/npm/v/knowmind)](https://www.npmjs.com/package/knowmind) · Apache-2.0 · [knowmind.de](https://knowmind.de)
10
8
 
11
- Oder direkt aus dem Monorepo lokal:
9
+ ## Installation
12
10
 
13
11
  ```
14
- npm link
12
+ npm install -g knowmind
15
13
  ```
16
14
 
15
+ Oder ohne Installation direkt als MCP-Server: `npx -y knowmind mcp`
16
+
17
17
  ## Setup
18
18
 
19
19
  1. Token auf knowmind.de anlegen: Dashboard → API-Tokens
@@ -40,22 +40,60 @@ knowmind health
40
40
  knowmind config
41
41
  ```
42
42
 
43
- ## MCP-Stdio-Modus
43
+ ## MCP-Server einrichten
44
44
 
45
- Klassischer MCP-Server über stdin/stdout — bindet Knowmind in Claude Code, Claude Desktop, Cursor, ChatGPT-Desktop ein.
45
+ knowmind ist ein MCP-Server (`npx -y knowmind mcp`, stdio). Token aus dem knowmind.de-Dashboard
46
+ (→ API-Tokens) als `KNOWMIND_TOKEN`; optional `KNOWMIND_API_URL` (Standard `https://knowmind.de`).
46
47
 
47
- In `.claude/mcp-servers.json` oder `claude_desktop_config.json`:
48
+ **Claude Code**
49
+ ```
50
+ claude mcp add knowmind --env KNOWMIND_TOKEN=kmt_xxx --env KNOWMIND_API_URL=https://knowmind.de -- npx -y knowmind mcp
51
+ ```
48
52
 
53
+ **Claude Desktop / Cursor / Windsurf / Cline / Continue / Goose / Zed** (`claude_desktop_config.json`, `~/.cursor/mcp.json`, …)
49
54
  ```json
50
55
  {
51
- "knowmind": {
52
- "command": "knowmind",
53
- "args": ["mcp"]
56
+ "mcpServers": {
57
+ "knowmind": {
58
+ "command": "npx",
59
+ "args": ["-y", "knowmind", "mcp"],
60
+ "env": { "KNOWMIND_TOKEN": "kmt_xxx", "KNOWMIND_API_URL": "https://knowmind.de" }
61
+ }
54
62
  }
55
63
  }
56
64
  ```
65
+ > Windows-Hinweis: falls `npx` nicht direkt startet, `"command": "cmd"`, `"args": ["/c", "npx", "-y", "knowmind", "mcp"]`.
66
+
67
+ **VS Code / GitHub Copilot** (`.vscode/mcp.json` — Top-Level `servers` + `inputs`)
68
+ ```json
69
+ {
70
+ "inputs": [{ "id": "knowmind_token", "type": "promptString", "description": "Knowmind API token", "password": true }],
71
+ "servers": {
72
+ "knowmind": {
73
+ "command": "npx",
74
+ "args": ["-y", "knowmind", "mcp"],
75
+ "env": { "KNOWMIND_TOKEN": "${input:knowmind_token}", "KNOWMIND_API_URL": "https://knowmind.de" }
76
+ }
77
+ }
78
+ }
79
+ ```
80
+
81
+ **Codex CLI** (`~/.codex/config.toml`)
82
+ ```toml
83
+ [mcp_servers.knowmind]
84
+ command = "npx"
85
+ args = ["-y", "knowmind", "mcp"]
86
+ env = { KNOWMIND_TOKEN = "kmt_xxx", KNOWMIND_API_URL = "https://knowmind.de" }
87
+ ```
88
+
89
+ **Gemini CLI** (`~/.gemini/settings.json`) — gleiche `mcpServers`-Struktur wie Claude Desktop.
90
+
91
+ **Remote (ohne lokale Installation)** — für Clients mit HTTP-MCP-Support direkt der gehostete Endpoint:
92
+ ```json
93
+ { "type": "http", "url": "https://knowmind.de/api/mcp/v1", "headers": { "Authorization": "Bearer kmt_xxx" } }
94
+ ```
57
95
 
58
- Token kommt aus `~/.knowmind/config.json` oder `KNOWMIND_TOKEN`.
96
+ Token kann statt per `env` auch lokal via `knowmind login --token kmt_xxx` (→ `~/.knowmind/config.json`) hinterlegt werden.
59
97
 
60
98
  ## Tools (im MCP-Modus)
61
99
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "knowmind",
3
- "version": "0.1.12",
4
- "mcpName": "io.github.whosoeverm8/knowmind",
3
+ "version": "0.1.14",
4
+ "mcpName": "io.github.WhoSoEverM8/knowmind",
5
5
  "description": "Kommandozeile und lokale MCP-Vermittlung für Knowmind — das Gedächtnis für Ihre KI.",
6
6
  "type": "module",
7
7
  "license": "Apache-2.0",
package/src/mcp-stdio.js CHANGED
@@ -10,7 +10,7 @@
10
10
  * Protokoll: stdio mit zeilenweise JSON (NDJSON-Style). Jedes Frame ist ein
11
11
  * vollständiges JSON-RPC-Objekt.
12
12
  */
13
- import { loadConfig } from "./config.js";
13
+ import { loadConfig, VERSION } from "./config.js";
14
14
  import { createInterface } from "node:readline";
15
15
 
16
16
  // Typisierte Beziehungen zwischen Erinnerungen. Diese Liste ist die einzige
@@ -410,7 +410,7 @@ export async function runStdioServer() {
410
410
  id: req.id ?? null,
411
411
  result: {
412
412
  protocolVersion: "2025-06-18",
413
- serverInfo: { name: "knowmind", version: "0.1.5" },
413
+ serverInfo: { name: "knowmind", version: VERSION },
414
414
  capabilities: { tools: {} },
415
415
  },
416
416
  });