overmind-mcp 2.0.0 → 2.0.1
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/CHANGELOG.md +339 -0
- package/DEPLOYMENT.md +418 -0
- package/README.md +103 -10
- package/SETUP_WINDOWS.md +362 -0
- package/SWARM_USAGE.md +444 -0
- package/docker-compose.overmind.yml +172 -0
- package/package.json +34 -11
- package/scripts/docker-manager.mjs +200 -0
- package/scripts/install-dependencies.mjs +283 -0
- package/scripts/postinstall.mjs +223 -0
- package/scripts/setup-overmind-db.mjs +199 -0
- package/scripts/setup-windows.js +264 -0
- package/scripts/setup.mjs +396 -0
package/SETUP_WINDOWS.md
ADDED
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
# ═══════════════════════════════════════════════════════════════════════════════
|
|
2
|
+
# OVERMIND-MCP: SETUP WINDOWS (PostgreSQL Existant)
|
|
3
|
+
# ═══════════════════════════════════════════════════════════════════════════════
|
|
4
|
+
# Guide de configuration pour OverMind-MCP avec PostgreSQL + pgvector existant
|
|
5
|
+
#
|
|
6
|
+
# Prérequis:
|
|
7
|
+
# - Docker Desktop démarré
|
|
8
|
+
# - PostgreSQL + pgvector en Docker (container: postgres-pgvector)
|
|
9
|
+
# - Node.js 20+ installé
|
|
10
|
+
# - pnpm installé
|
|
11
|
+
# ═══════════════════════════════════════════════════════════════════════════════
|
|
12
|
+
|
|
13
|
+
## 📋 ÉTAPE 1: Configuration de l'environnement
|
|
14
|
+
|
|
15
|
+
### 1.1 Créer le fichier .env
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# Copier l'exemple
|
|
19
|
+
cp .env.example .env
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### 1.2 Éditer .env avec votre configuration PostgreSQL existante
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
# ─── WORKSPACE ───────────────────────────────────────────────────────────────────
|
|
26
|
+
OVERMIND_WORKSPACE=C:/Users/Deamon/Desktop/Backup/Serveur MCP
|
|
27
|
+
|
|
28
|
+
# ─── DATABASE (VOTRE POSTGRESQL EXISTANT) ──────────────────────────────────────
|
|
29
|
+
POSTGRES_HOST=host.docker.internal # ← IMPORTANT pour Docker
|
|
30
|
+
POSTGRES_PORT=5432
|
|
31
|
+
POSTGRES_DATABASE=overmind_memory # Sera créé automatiquement
|
|
32
|
+
POSTGRES_USER=postgres
|
|
33
|
+
POSTGRES_PASSWORD=votre_mot_de_passe_ici # ← CHANGEZ CECI
|
|
34
|
+
POSTGRES_SSL=false
|
|
35
|
+
|
|
36
|
+
# ─── MEMORY ───────────────────────────────────────────────────────────────────────
|
|
37
|
+
OVERMIND_MEMORY_TYPE=postgres
|
|
38
|
+
|
|
39
|
+
# ─── EMBEDDINGS (Qwen 8B - 4096D) ────────────────────────────────────────────────
|
|
40
|
+
OVERMIND_EMBEDDING_URL=https://openrouter.ai/api/v1
|
|
41
|
+
OVERMIND_EMBEDDING_KEY=sk-or-v1-votre_cle_api_ici # ← CHANGEZ CECI
|
|
42
|
+
OVERMIND_EMBEDDING_MODEL=qwen/qwen3-embedding-8b
|
|
43
|
+
OVERMIND_EMBEDDING_DIMENSIONS=4096
|
|
44
|
+
|
|
45
|
+
# ─── MESSAGE BROKER (Docker RabbitMQ) ────────────────────────────────────────────
|
|
46
|
+
OVERMIND_BROKER=rabbitmq
|
|
47
|
+
RABBITMQ_URL=amqp://overmind:overmind_secret_password_change_me@localhost:5672
|
|
48
|
+
|
|
49
|
+
# ─── WORKFLOW (Docker Temporal) ───────────────────────────────────────────────────
|
|
50
|
+
OVERMIND_WORKFLOW=temporal
|
|
51
|
+
TEMPORAL_ADDRESS=localhost:7233
|
|
52
|
+
|
|
53
|
+
# ─── TELEMETRY (Désactivé par défaut) ────────────────────────────────────────────
|
|
54
|
+
OTEL_ENABLED=false
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## 🗄️ ÉTAPE 2: Initialiser la base OverMind
|
|
60
|
+
|
|
61
|
+
### Option A: Script automatique (RECOMMANDÉ)
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# Lancer le script de setup
|
|
65
|
+
node scripts/setup-overmind-db.js
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Le script va:**
|
|
69
|
+
1. Se connecter à votre PostgreSQL existant
|
|
70
|
+
2. Vérifier que pgvector est installé
|
|
71
|
+
3. Créer la base `overmind_memory`
|
|
72
|
+
4. Activer l'extension pgvector
|
|
73
|
+
5. Initialiser les tables
|
|
74
|
+
|
|
75
|
+
### Option B: Manuel
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
# Se connecter à votre PostgreSQL Docker
|
|
79
|
+
docker exec -it postgres-pgvector psql -U postgres
|
|
80
|
+
|
|
81
|
+
# Créer la base de données
|
|
82
|
+
CREATE DATABASE overmind_memory;
|
|
83
|
+
|
|
84
|
+
# Se connecter à la nouvelle base
|
|
85
|
+
\c overmind_memory
|
|
86
|
+
|
|
87
|
+
# Activer pgvector
|
|
88
|
+
CREATE EXTENSION IF NOT EXISTS vector;
|
|
89
|
+
|
|
90
|
+
# Quitter
|
|
91
|
+
\q
|
|
92
|
+
|
|
93
|
+
# Exécuter le script d'initialisation
|
|
94
|
+
docker exec -i postgres-pgvector psql -U postgres -d overmind_memory < init-db.sql
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## 🐳 ÉTAPE 3: Lancer les services Docker OverMind
|
|
100
|
+
|
|
101
|
+
### 3.1 Lancer RabbitMQ + Temporal
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# Lancer les services minimal
|
|
105
|
+
docker-compose -f docker-compose.overmind.yml up -d
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**Services démarrés:**
|
|
109
|
+
- ✅ RabbitMQ (ports 5672, 15672)
|
|
110
|
+
- ✅ Temporal (ports 7233, 8088)
|
|
111
|
+
- ✅ Temporal Web UI
|
|
112
|
+
|
|
113
|
+
### 3.2 Vérifier que tout tourne
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
# Vérifier les containers
|
|
117
|
+
docker ps
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
**Vous devriez voir:**
|
|
121
|
+
```
|
|
122
|
+
postgres-pgvector (déjà existant)
|
|
123
|
+
overmind-rabbitmq (nouveau)
|
|
124
|
+
overmind-temporal (nouveau)
|
|
125
|
+
overmind-temporal-web (nouveau)
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### 3.3 Tester les interfaces
|
|
129
|
+
|
|
130
|
+
- **RabbitMQ Management UI**: http://localhost:15672
|
|
131
|
+
- User: `overmind`
|
|
132
|
+
- Pass: `overmind_secret_password_change_me`
|
|
133
|
+
|
|
134
|
+
- **Temporal Web UI**: http://localhost:8088
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## 🔨 ÉTAPE 4: Builder et démarrer OverMind
|
|
139
|
+
|
|
140
|
+
### 4.1 Builder le projet
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
cd "C:/Users/Deamon/Desktop/Backup/Serveur MCP/Workflow"
|
|
144
|
+
pnpm run build
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### 4.2 Démarrer OverMind
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
# Mode développement (avec watch)
|
|
151
|
+
pnpm run dev
|
|
152
|
+
|
|
153
|
+
# Ou mode production
|
|
154
|
+
pnpm run start
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## ✅ ÉTAPE 5: Vérifier l'installation
|
|
160
|
+
|
|
161
|
+
### 5.1 Tester la connexion PostgreSQL
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
# Lancer un test simple
|
|
165
|
+
node -e "
|
|
166
|
+
const { Client } = require('pg');
|
|
167
|
+
const client = new Client({
|
|
168
|
+
host: 'localhost',
|
|
169
|
+
port: 5432,
|
|
170
|
+
user: 'postgres',
|
|
171
|
+
password: 'votre_mot_de_passe',
|
|
172
|
+
database: 'overmind_memory'
|
|
173
|
+
});
|
|
174
|
+
client.connect().then(() => {
|
|
175
|
+
console.log('✅ Connexion PostgreSQL réussie !');
|
|
176
|
+
return client.query('SELECT version()');
|
|
177
|
+
}).then(res => {
|
|
178
|
+
console.log('PostgreSQL version:', res.rows[0].version);
|
|
179
|
+
return client.end();
|
|
180
|
+
}).catch(err => {
|
|
181
|
+
console.error('❌ Erreur:', err.message);
|
|
182
|
+
process.exit(1);
|
|
183
|
+
});
|
|
184
|
+
"
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### 5.2 Vérifier les services Docker
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
# Vérifier RabbitMQ
|
|
191
|
+
curl http://localhost:15672/api/overview
|
|
192
|
+
# User: overmind
|
|
193
|
+
# Pass: overmind_secret_password_change_me
|
|
194
|
+
|
|
195
|
+
# Vérifier Temporal
|
|
196
|
+
curl http://localhost:7233
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## 🧪 ÉTAPE 6: Premier test
|
|
202
|
+
|
|
203
|
+
### 6.1 Créer un agent de test
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
# Via l'interface MCP (Cursor, Claude Code, etc.)
|
|
207
|
+
|
|
208
|
+
create_agent({
|
|
209
|
+
name: 'test-agent',
|
|
210
|
+
prompt: 'Tu es un agent de test pour vérifier l\'installation',
|
|
211
|
+
runner: 'claude'
|
|
212
|
+
})
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### 6.2 Tester la mémoire
|
|
216
|
+
|
|
217
|
+
```bash
|
|
218
|
+
# Stocker une connaissance
|
|
219
|
+
memory_store({
|
|
220
|
+
text: 'OverMind-MCP est installé sur Windows avec PostgreSQL existant',
|
|
221
|
+
source: 'setup',
|
|
222
|
+
agentName: 'system'
|
|
223
|
+
})
|
|
224
|
+
|
|
225
|
+
# Rechercher
|
|
226
|
+
memory_search({
|
|
227
|
+
query: 'installation Windows',
|
|
228
|
+
limit: 5
|
|
229
|
+
})
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
## 📊 ÉTAPE 7: Monitoring (Optionnel)
|
|
235
|
+
|
|
236
|
+
Si vous voulez activer l'observabilité, décommentez les services Prometheus et Grafana dans `docker-compose.overmind.yml`:
|
|
237
|
+
|
|
238
|
+
```bash
|
|
239
|
+
# Arrêter les services
|
|
240
|
+
docker-compose -f docker-compose.overmind.yml down
|
|
241
|
+
|
|
242
|
+
# Éditer docker-compose.overmind.yml
|
|
243
|
+
# Décommentez les sections prometheus et grafana
|
|
244
|
+
|
|
245
|
+
# Relancer
|
|
246
|
+
docker-compose -f docker-compose.overmind.yml up -d
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
**Interfaces disponibles:**
|
|
250
|
+
- Prometheus: http://localhost:9090
|
|
251
|
+
- Grafana: http://localhost:3000 (admin/grafana_password_change_me)
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
## 🛠️ COMMANDES UTILES
|
|
256
|
+
|
|
257
|
+
### Docker
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
# Voir les logs
|
|
261
|
+
docker-compose -f docker-compose.overmind.yml logs -f
|
|
262
|
+
|
|
263
|
+
# Arrêter les services
|
|
264
|
+
docker-compose -f docker-compose.overmind.yml down
|
|
265
|
+
|
|
266
|
+
# Redémarrer un service
|
|
267
|
+
docker-compose -f docker-compose.overmind.yml restart rabbitmq
|
|
268
|
+
|
|
269
|
+
# Voir l'état
|
|
270
|
+
docker-compose -f docker-compose.overmind.yml ps
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
### OverMind
|
|
274
|
+
|
|
275
|
+
```bash
|
|
276
|
+
# Builder
|
|
277
|
+
pnpm run build
|
|
278
|
+
|
|
279
|
+
# Linter
|
|
280
|
+
pnpm run lint
|
|
281
|
+
|
|
282
|
+
# Tests
|
|
283
|
+
pnpm run test
|
|
284
|
+
|
|
285
|
+
# Démarrer
|
|
286
|
+
pnpm run dev # Développement
|
|
287
|
+
pnpm run start # Production
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
---
|
|
291
|
+
|
|
292
|
+
## 🐛 DÉPANNAGE
|
|
293
|
+
|
|
294
|
+
### Problème: "ECONNREFUSED" PostgreSQL
|
|
295
|
+
|
|
296
|
+
**Solution:**
|
|
297
|
+
```bash
|
|
298
|
+
# Vérifier que PostgreSQL tourne
|
|
299
|
+
docker ps | grep postgres-pgvector
|
|
300
|
+
|
|
301
|
+
# Vérifier le port
|
|
302
|
+
docker port postgres-pgvector
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
### Problème: "pgvector not installed"
|
|
306
|
+
|
|
307
|
+
**Solution:**
|
|
308
|
+
```bash
|
|
309
|
+
# Se connecter au container
|
|
310
|
+
docker exec -it postgres-pgvector psql -U postgres
|
|
311
|
+
|
|
312
|
+
# Installer pgvector
|
|
313
|
+
CREATE EXTENSION IF NOT EXISTS vector;
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
### Problème: "RabbitMQ connection refused"
|
|
317
|
+
|
|
318
|
+
**Solution:**
|
|
319
|
+
```bash
|
|
320
|
+
# Vérifier que RabbitMQ tourne
|
|
321
|
+
docker ps | grep overmind-rabbitmq
|
|
322
|
+
|
|
323
|
+
# Voir les logs
|
|
324
|
+
docker logs overmind-rabbitmq
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
### Problème: "Temporal can't connect to PostgreSQL"
|
|
328
|
+
|
|
329
|
+
**Solution:**
|
|
330
|
+
```bash
|
|
331
|
+
# Vérifier .env
|
|
332
|
+
# POSTGRES_HOST doit être "host.docker.internal"
|
|
333
|
+
# POSTGRES_PASSWORD doit être correct
|
|
334
|
+
|
|
335
|
+
# Redémarrer Temporal
|
|
336
|
+
docker-compose -f docker-compose.overmind.yml restart temporal
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
341
|
+
## 🎯 RÉSUMÉ
|
|
342
|
+
|
|
343
|
+
**Setup minimal:**
|
|
344
|
+
- ✅ PostgreSQL existant réutilisé
|
|
345
|
+
- ✅ RabbitMQ (message broker)
|
|
346
|
+
- ✅ Temporal (workflow orchestrator)
|
|
347
|
+
- ✅ OverMind agents (Node.js natif)
|
|
348
|
+
|
|
349
|
+
**Services disponibles:**
|
|
350
|
+
- 📊 RabbitMQ Management UI: http://localhost:15672
|
|
351
|
+
- 📈 Temporal Web UI: http://localhost:8088
|
|
352
|
+
- 🗄️ PostgreSQL: localhost:5432
|
|
353
|
+
- 🤖 OverMind Agents: Processus Node.js
|
|
354
|
+
|
|
355
|
+
**Prochaine étape:**
|
|
356
|
+
Créer vos agents et workflows personnalisés ! 🚀
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
**Pour plus d'informations:**
|
|
361
|
+
- Documentation: https://deamondev888.github.io/overmind-mcp/
|
|
362
|
+
- Support: https://discord.gg/4AR82phtBz
|