@ogygie/mcp 0.9.0
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/LICENSE +21 -0
- package/README.md +66 -0
- package/dist/mcp.js +1328 -0
- package/dist/server.js +1304 -0
- package/package.json +37 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 x10sion LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# @ogygie/mcp
|
|
2
|
+
|
|
3
|
+
Serveur MCP du framework Ogygie : il donne à un espace de conception
|
|
4
|
+
(claude.ai, Claude Desktop, Claude Code) un accès **en lecture** aux fichiers
|
|
5
|
+
de gouvernance et aux features de N repos Ogygie — sans copie, sans recherche
|
|
6
|
+
sémantique, sans connaître le produit. **Le manifeste est l'index** : une
|
|
7
|
+
feature qu'il ne déclare pas n'existe pas.
|
|
8
|
+
|
|
9
|
+
## Lancement
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# Depuis un projet Ogygie, sur le projet courant
|
|
13
|
+
pnpm add -D @ogygie/mcp@<version d'@ogygie/cli> # lockstep D2
|
|
14
|
+
pnpm ogygie mcp
|
|
15
|
+
|
|
16
|
+
# Sur un hôte, sans projet Ogygie, en servant plusieurs repos
|
|
17
|
+
npx @ogygie/mcp --config ogygie-mcp.config.json --http --port 3010
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Le registre nomme les repos servis :
|
|
21
|
+
|
|
22
|
+
```json
|
|
23
|
+
{
|
|
24
|
+
"repos": [
|
|
25
|
+
{ "id": "mon-produit", "rootPath": "/srv/clones/mon-produit" },
|
|
26
|
+
{ "id": "autre-produit", "rootPath": "/srv/clones/autre-produit" }
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Sans `--config`, le serveur sert le projet courant sous l'id `local`.
|
|
32
|
+
|
|
33
|
+
## Outils
|
|
34
|
+
|
|
35
|
+
| Outil | Ce qu'il rend |
|
|
36
|
+
|---|---|
|
|
37
|
+
| `ogygie_list_repos` | les repos servis, leur version Ogygie, le ref git lu |
|
|
38
|
+
| `ogygie_read_manifest` | le manifeste validé — l'index du repo |
|
|
39
|
+
| `ogygie_list_specs` | les specs (id, statut, priorité, dépendances, différés) |
|
|
40
|
+
| `ogygie_read_spec` | une spec entière : frontmatter parsé + corps |
|
|
41
|
+
| `ogygie_read_decisions` | une décision `D<n>`, ou les deux fichiers entiers |
|
|
42
|
+
| `ogygie_read_governance` | `AGENTS.md`, `AGENTS.product.md` ou `FAILURES.md` |
|
|
43
|
+
| `ogygie_read_feature` | les fichiers d'une feature, ou l'un d'eux |
|
|
44
|
+
|
|
45
|
+
Chaque réponse porte sa provenance `{ repo, path, ref }` : ce qui a été lu, où,
|
|
46
|
+
et à quel commit.
|
|
47
|
+
|
|
48
|
+
## Transport HTTP
|
|
49
|
+
|
|
50
|
+
`OGYGIE_MCP_TOKEN` est **obligatoire** (32 caractères au moins) : sans lui, le
|
|
51
|
+
serveur refuse de démarrer. Les requêtes portent `Authorization: Bearer <token>`
|
|
52
|
+
et sont refusées avant toute lecture. Le serveur n'écoute que `127.0.0.1` tant
|
|
53
|
+
qu'un `--host` n'est pas écrit à la main. La synchronisation des clones
|
|
54
|
+
(`git fetch`) est un problème d'hébergement : le serveur lit ce que le disque
|
|
55
|
+
porte, et le date par `ref`.
|
|
56
|
+
|
|
57
|
+
## Ce qu'il ne fait pas
|
|
58
|
+
|
|
59
|
+
Aucune écriture — pas de spec créée ni amendée, pas de commit. Aucune exécution
|
|
60
|
+
de code du repo servi. Aucun accès hors carte : `.env`, secrets et artefacts de
|
|
61
|
+
build sont inatteignables par construction, pas par liste noire. Aucun cache :
|
|
62
|
+
chaque lecture touche le disque, la fraîcheur est l'objectif.
|
|
63
|
+
|
|
64
|
+
## Licence
|
|
65
|
+
|
|
66
|
+
MIT — voir `LICENSE`.
|