@cosmosos/mcp-ephemeris 0.1.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 +91 -0
- package/README.md +107 -0
- package/dist/index.js +1808 -0
- package/package.json +60 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# License — @cosmosos/mcp-ephemeris
|
|
2
|
+
|
|
3
|
+
Required Notice: Copyright 2026 KAIROSAST LTD (https://llmastro.com)
|
|
4
|
+
|
|
5
|
+
------------------------------------------------------------------------
|
|
6
|
+
This software is **free for noncommercial use** (personal, research,
|
|
7
|
+
education, non-profit organizations) under the PolyForm Noncommercial
|
|
8
|
+
License 1.0.0, reproduced below.
|
|
9
|
+
|
|
10
|
+
**Commercial / professional use requires a separate, paid license.**
|
|
11
|
+
To obtain one, contact KAIROSAST LTD via https://llmastro.com/contact.
|
|
12
|
+
|
|
13
|
+
Note: the optional `swisseph` dependency (Swiss Ephemeris, by Astrodienst)
|
|
14
|
+
is licensed separately (AGPL or a commercial Swiss Ephemeris license) and
|
|
15
|
+
is NOT covered by this license. Commercial users must comply with
|
|
16
|
+
Astrodienst's terms independently.
|
|
17
|
+
------------------------------------------------------------------------
|
|
18
|
+
|
|
19
|
+
# PolyForm Noncommercial License 1.0.0
|
|
20
|
+
|
|
21
|
+
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
22
|
+
|
|
23
|
+
## Acceptance
|
|
24
|
+
|
|
25
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
26
|
+
|
|
27
|
+
## Copyright License
|
|
28
|
+
|
|
29
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
|
|
30
|
+
|
|
31
|
+
## Distribution License
|
|
32
|
+
|
|
33
|
+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
|
|
34
|
+
|
|
35
|
+
## Notices
|
|
36
|
+
|
|
37
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
38
|
+
|
|
39
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
40
|
+
|
|
41
|
+
## Changes and New Works License
|
|
42
|
+
|
|
43
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
44
|
+
|
|
45
|
+
## Patent License
|
|
46
|
+
|
|
47
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
48
|
+
|
|
49
|
+
## Noncommercial Purposes
|
|
50
|
+
|
|
51
|
+
Any noncommercial purpose is a permitted purpose.
|
|
52
|
+
|
|
53
|
+
## Personal Uses
|
|
54
|
+
|
|
55
|
+
Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
|
|
56
|
+
|
|
57
|
+
## Noncommercial Organizations
|
|
58
|
+
|
|
59
|
+
Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
|
|
60
|
+
|
|
61
|
+
## Fair Use
|
|
62
|
+
|
|
63
|
+
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
64
|
+
|
|
65
|
+
## No Other Rights
|
|
66
|
+
|
|
67
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
68
|
+
|
|
69
|
+
## Patent Defense
|
|
70
|
+
|
|
71
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
72
|
+
|
|
73
|
+
## Violations
|
|
74
|
+
|
|
75
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
76
|
+
|
|
77
|
+
## No Liability
|
|
78
|
+
|
|
79
|
+
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
80
|
+
|
|
81
|
+
## Definitions
|
|
82
|
+
|
|
83
|
+
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
84
|
+
|
|
85
|
+
**You** refers to the individual or entity agreeing to these terms.
|
|
86
|
+
|
|
87
|
+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
88
|
+
|
|
89
|
+
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
90
|
+
|
|
91
|
+
**Use** means anything you do with the software requiring one of your licenses.
|
package/README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# @cosmosos/mcp-ephemeris
|
|
2
|
+
|
|
3
|
+
**Le vrai ciel, pour votre IA.** Un serveur [MCP](https://modelcontextprotocol.io)
|
|
4
|
+
qui donne à n'importe quel assistant (Claude, Cursor, agents) des **positions
|
|
5
|
+
planétaires calculées** — jamais devinées — grâce au moteur d'éphémérides
|
|
6
|
+
[Swiss Ephemeris](https://www.astro.com/swisseph/), et **validées contre
|
|
7
|
+
JPL Horizons (NASA)** à moins d'une seconde d'arc.
|
|
8
|
+
|
|
9
|
+
> **Principe cardinal : le LLM ne calcule jamais.** Ce serveur est une façade sur
|
|
10
|
+
> un moteur d'éphémérides. Le modèle interprète ; le ciel, lui, est un fait.
|
|
11
|
+
|
|
12
|
+
## Démarrage rapide (Claude Desktop)
|
|
13
|
+
|
|
14
|
+
Ouvrez **Réglages → Développeur → Modifier la configuration**, puis ajoutez :
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
{
|
|
18
|
+
"mcpServers": {
|
|
19
|
+
"llmastro": {
|
|
20
|
+
"command": "npx",
|
|
21
|
+
"args": ["-y", "@cosmosos/mcp-ephemeris"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Quittez complètement Claude Desktop (barre des tâches) et relancez-le. Demandez
|
|
28
|
+
ensuite : *« Quelle est la phase de la Lune aujourd'hui ? »* — Claude appelle
|
|
29
|
+
le serveur et répond à partir de positions réellement calculées.
|
|
30
|
+
|
|
31
|
+
**Cursor / Windsurf / autres** : ajoutez la même entrée `llmastro`
|
|
32
|
+
(`command: npx`, `args: ["-y", "@cosmosos/mcp-ephemeris"]`) dans la configuration
|
|
33
|
+
MCP de votre client.
|
|
34
|
+
|
|
35
|
+
## Outils exposés
|
|
36
|
+
|
|
37
|
+
| Outil | Entrée | Sortie |
|
|
38
|
+
|---|---|---|
|
|
39
|
+
| `get_planet_positions` | `datetime` (ISO UTC) | positions écliptiques de tous les corps (signe, degré, rétro) |
|
|
40
|
+
| `get_moon_phase` | `datetime` (ISO UTC) | phase lunaire, illumination %, description |
|
|
41
|
+
| `get_natal_chart` | `date`, `time`, `timezone` (IANA), `latitude`, `longitude` | thème complet : planètes en maisons, aspects, ASC/MC, phase lunaire |
|
|
42
|
+
| `get_current_sky` | `latitude`, `longitude` | le ciel maintenant (transits du moment) pour un lieu |
|
|
43
|
+
| `get_astrocartography` | `datetime` (ISO UTC) | lignes planétaires MC/IC + parans (croisements) |
|
|
44
|
+
| `get_transits` | naissance + `datetime` optionnel | aspects transit→natal, triés par orbe (cœur des « prévisions ») |
|
|
45
|
+
| `validate_against_horizons` | `datetime` (ISO UTC), `bodies` optionnel | écart de nos positions vs JPL Horizons (NASA) en secondes d'arc — réseau requis |
|
|
46
|
+
|
|
47
|
+
## Précision
|
|
48
|
+
|
|
49
|
+
Sous [Swiss Ephemeris](https://www.astro.com/swisseph/), les positions
|
|
50
|
+
correspondent à la référence mondiale **JPL Horizons (NASA)** à moins d'une
|
|
51
|
+
seconde d'arc (mesuré au 2026-07-19) :
|
|
52
|
+
|
|
53
|
+
| Corps | Écart vs NASA |
|
|
54
|
+
|---|---|
|
|
55
|
+
| Soleil | 0,2″ |
|
|
56
|
+
| Lune | 1,5″ |
|
|
57
|
+
| Jupiter | 0,1″ |
|
|
58
|
+
| Pluton | 0,4″ |
|
|
59
|
+
|
|
60
|
+
Vérifiez-le vous-même avec l'outil `validate_against_horizons`.
|
|
61
|
+
|
|
62
|
+
## Deux moteurs
|
|
63
|
+
|
|
64
|
+
Le calcul est routé selon la variable `ASTRO_ENGINE` :
|
|
65
|
+
|
|
66
|
+
- **`swisseph`** (par défaut) — Swiss Ephemeris, addon natif, précision
|
|
67
|
+
sub-arcseconde. Se compile automatiquement là où une chaîne de build C++ est
|
|
68
|
+
présente (Linux, macOS, la plupart des serveurs).
|
|
69
|
+
- **`astracore`** — moteur maison pur TypeScript (VSOP/Meeus), **sans binaire
|
|
70
|
+
natif**. Utilisé en repli automatique quand `swisseph` n'a pas pu être compilé
|
|
71
|
+
(fréquent sous Windows). Soleil et Lune restent précis ; les planètes
|
|
72
|
+
externes dérivent de quelques minutes d'arc.
|
|
73
|
+
|
|
74
|
+
Pour forcer un moteur : `ASTRO_ENGINE=swisseph` ou `ASTRO_ENGINE=astracore`.
|
|
75
|
+
|
|
76
|
+
## Confidentialité
|
|
77
|
+
|
|
78
|
+
Le serveur tourne **sur votre machine** : vos données de naissance ne sont
|
|
79
|
+
envoyées nulle part. Seul `validate_against_horizons` effectue une requête
|
|
80
|
+
sortante (vers l'API publique de la NASA).
|
|
81
|
+
|
|
82
|
+
## Prérequis
|
|
83
|
+
|
|
84
|
+
- Node.js ≥ 20.
|
|
85
|
+
- Pour la précision maximale (`swisseph`) : une chaîne de build C++
|
|
86
|
+
(`python3`, `make`, un compilateur) sur la machine. Sinon, repli automatique
|
|
87
|
+
sur `astracore`, sans configuration.
|
|
88
|
+
|
|
89
|
+
## À propos
|
|
90
|
+
|
|
91
|
+
Propulsé par le moteur d'astrologie de [Llmastro](https://llmastro.com). En
|
|
92
|
+
savoir plus sur la précision et l'architecture :
|
|
93
|
+
<https://llmastro.com/notre-moteur>.
|
|
94
|
+
|
|
95
|
+
## Licence
|
|
96
|
+
|
|
97
|
+
**Gratuit pour un usage non commercial** (personnel, recherche, éducation,
|
|
98
|
+
organisations à but non lucratif) — sous licence
|
|
99
|
+
[PolyForm Noncommercial 1.0.0](./LICENSE).
|
|
100
|
+
|
|
101
|
+
**Usage commercial / professionnel : licence payante requise.** Pour l'obtenir,
|
|
102
|
+
contactez KAIROSAST LTD via <https://llmastro.com/contact>.
|
|
103
|
+
|
|
104
|
+
À noter : la dépendance optionnelle `swisseph` (Swiss Ephemeris, Astrodienst) a
|
|
105
|
+
sa propre licence (AGPL ou licence commerciale Swiss Ephemeris) et n'est pas
|
|
106
|
+
couverte par la présente. Les usages professionnels doivent s'y conformer
|
|
107
|
+
séparément.
|