@cosmosos/mcp-ephemeris 0.2.0 → 0.2.2

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.
Files changed (4) hide show
  1. package/LICENSE +216 -91
  2. package/README.md +127 -110
  3. package/dist/index.js +20 -20
  4. package/package.json +12 -5
package/LICENSE CHANGED
@@ -1,91 +1,216 @@
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.
1
+ The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0.
2
+
3
+ Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License.
4
+
5
+ No rights beyond those granted by the applicable original license are conveyed for such contributions.
6
+
7
+ ---
8
+
9
+ Apache License
10
+ Version 2.0, January 2004
11
+ http://www.apache.org/licenses/
12
+
13
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
14
+
15
+ 1. Definitions.
16
+
17
+ "License" shall mean the terms and conditions for use, reproduction,
18
+ and distribution as defined by Sections 1 through 9 of this document.
19
+
20
+ "Licensor" shall mean the copyright owner or entity authorized by
21
+ the copyright owner that is granting the License.
22
+
23
+ "Legal Entity" shall mean the union of the acting entity and all
24
+ other entities that control, are controlled by, or are under common
25
+ control with that entity. For the purposes of this definition,
26
+ "control" means (i) the power, direct or indirect, to cause the
27
+ direction or management of such entity, whether by contract or
28
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
29
+ outstanding shares, or (iii) beneficial ownership of such entity.
30
+
31
+ "You" (or "Your") shall mean an individual or Legal Entity
32
+ exercising permissions granted by this License.
33
+
34
+ "Source" form shall mean the preferred form for making modifications,
35
+ including but not limited to software source code, documentation
36
+ source, and configuration files.
37
+
38
+ "Object" form shall mean any form resulting from mechanical
39
+ transformation or translation of a Source form, including but
40
+ not limited to compiled object code, generated documentation,
41
+ and conversions to other media types.
42
+
43
+ "Work" shall mean the work of authorship, whether in Source or
44
+ Object form, made available under the License, as indicated by a
45
+ copyright notice that is included in or attached to the work
46
+ (an example is provided in the Appendix below).
47
+
48
+ "Derivative Works" shall mean any work, whether in Source or Object
49
+ form, that is based on (or derived from) the Work and for which the
50
+ editorial revisions, annotations, elaborations, or other modifications
51
+ represent, as a whole, an original work of authorship. For the purposes
52
+ of this License, Derivative Works shall not include works that remain
53
+ separable from, or merely link (or bind by name) to the interfaces of,
54
+ the Work and Derivative Works thereof.
55
+
56
+ "Contribution" shall mean any work of authorship, including
57
+ the original version of the Work and any modifications or additions
58
+ to that Work or Derivative Works thereof, that is intentionally
59
+ submitted to the Licensor for inclusion in the Work by the copyright
60
+ owner or by an individual or Legal Entity authorized to submit on behalf
61
+ of the copyright owner. For the purposes of this definition, "submitted"
62
+ means any form of electronic, verbal, or written communication sent
63
+ to the Licensor or its representatives, including but not limited to
64
+ communication on electronic mailing lists, source code control systems,
65
+ and issue tracking systems that are managed by, or on behalf of, the
66
+ Licensor for the purpose of discussing and improving the Work, but
67
+ excluding communication that is conspicuously marked or otherwise
68
+ designated in writing by the copyright owner as "Not a Contribution."
69
+
70
+ "Contributor" shall mean Licensor and any individual or Legal Entity
71
+ on behalf of whom a Contribution has been received by Licensor and
72
+ subsequently incorporated within the Work.
73
+
74
+ 2. Grant of Copyright License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ copyright license to reproduce, prepare Derivative Works of,
78
+ publicly display, publicly perform, sublicense, and distribute the
79
+ Work and such Derivative Works in Source or Object form.
80
+
81
+ 3. Grant of Patent License. Subject to the terms and conditions of
82
+ this License, each Contributor hereby grants to You a perpetual,
83
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
84
+ (except as stated in this section) patent license to make, have made,
85
+ use, offer to sell, sell, import, and otherwise transfer the Work,
86
+ where such license applies only to those patent claims licensable
87
+ by such Contributor that are necessarily infringed by their
88
+ Contribution(s) alone or by combination of their Contribution(s)
89
+ with the Work to which such Contribution(s) was submitted. If You
90
+ institute patent litigation against any entity (including a
91
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
92
+ or a Contribution incorporated within the Work constitutes direct
93
+ or contributory patent infringement, then any patent licenses
94
+ granted to You under this License for that Work shall terminate
95
+ as of the date such litigation is filed.
96
+
97
+ 4. Redistribution. You may reproduce and distribute copies of the
98
+ Work or Derivative Works thereof in any medium, with or without
99
+ modifications, and in Source or Object form, provided that You
100
+ meet the following conditions:
101
+
102
+ (a) You must give any other recipients of the Work or
103
+ Derivative Works a copy of this License; and
104
+
105
+ (b) You must cause any modified files to carry prominent notices
106
+ stating that You changed the files; and
107
+
108
+ (c) You must retain, in the Source form of any Derivative Works
109
+ that You distribute, all copyright, patent, trademark, and
110
+ attribution notices from the Source form of the Work,
111
+ excluding those notices that do not pertain to any part of
112
+ the Derivative Works; and
113
+
114
+ (d) If the Work includes a "NOTICE" text file as part of its
115
+ distribution, then any Derivative Works that You distribute must
116
+ include a readable copy of the attribution notices contained
117
+ within such NOTICE file, excluding those notices that do not
118
+ pertain to any part of the Derivative Works, in at least one
119
+ of the following places: within a NOTICE text file distributed
120
+ as part of the Derivative Works; within the Source form or
121
+ documentation, if provided along with the Derivative Works; or,
122
+ within a display generated by the Derivative Works, if and
123
+ wherever such third-party notices normally appear. The contents
124
+ of the NOTICE file are for informational purposes only and
125
+ do not modify the License. You may add Your own attribution
126
+ notices within Derivative Works that You distribute, alongside
127
+ or as an addendum to the NOTICE text from the Work, provided
128
+ that such additional attribution notices cannot be construed
129
+ as modifying the License.
130
+
131
+ You may add Your own copyright statement to Your modifications and
132
+ may provide additional or different license terms and conditions
133
+ for use, reproduction, or distribution of Your modifications, or
134
+ for any such Derivative Works as a whole, provided Your use,
135
+ reproduction, and distribution of the Work otherwise complies with
136
+ the conditions stated in this License.
137
+
138
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
139
+ any Contribution intentionally submitted for inclusion in the Work
140
+ by You to the Licensor shall be under the terms and conditions of
141
+ this License, without any additional terms or conditions.
142
+ Notwithstanding the above, nothing herein shall supersede or modify
143
+ the terms of any separate license agreement you may have executed
144
+ with Licensor regarding such Contributions.
145
+
146
+ 6. Trademarks. This License does not grant permission to use the trade
147
+ names, trademarks, service marks, or product names of the Licensor,
148
+ except as required for reasonable and customary use in describing the
149
+ origin of the Work and reproducing the content of the NOTICE file.
150
+
151
+ 7. Disclaimer of Warranty. Unless required by applicable law or
152
+ agreed to in writing, Licensor provides the Work (and each
153
+ Contributor provides its Contributions) on an "AS IS" BASIS,
154
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
155
+ implied, including, without limitation, any warranties or conditions
156
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
157
+ PARTICULAR PURPOSE. You are solely responsible for determining the
158
+ appropriateness of using or redistributing the Work and assume any
159
+ risks associated with Your exercise of permissions under this License.
160
+
161
+ 8. Limitation of Liability. In no event and under no legal theory,
162
+ whether in tort (including negligence), contract, or otherwise,
163
+ unless required by applicable law (such as deliberate and grossly
164
+ negligent acts) or agreed to in writing, shall any Contributor be
165
+ liable to You for damages, including any direct, indirect, special,
166
+ incidental, or consequential damages of any character arising as a
167
+ result of this License or out of the use or inability to use the
168
+ Work (including but not limited to damages for loss of goodwill,
169
+ work stoppage, computer failure or malfunction, or any and all
170
+ other commercial damages or losses), even if such Contributor
171
+ has been advised of the possibility of such damages.
172
+
173
+ 9. Accepting Warranty or Additional Liability. While redistributing
174
+ the Work or Derivative Works thereof, You may choose to offer,
175
+ and charge a fee for, acceptance of support, warranty, indemnity,
176
+ or other liability obligations and/or rights consistent with this
177
+ License. However, in accepting such obligations, You may act only
178
+ on Your own behalf and on Your sole responsibility, not on behalf
179
+ of any other Contributor, and only if You agree to indemnify,
180
+ defend, and hold each Contributor harmless for any liability
181
+ incurred by, or claims asserted against, such Contributor by reason
182
+ of your accepting any such warranty or additional liability.
183
+
184
+ END OF TERMS AND CONDITIONS
185
+
186
+ ---
187
+
188
+ MIT License
189
+
190
+ Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
191
+
192
+ Permission is hereby granted, free of charge, to any person obtaining a copy
193
+ of this software and associated documentation files (the "Software"), to deal
194
+ in the Software without restriction, including without limitation the rights
195
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
196
+ copies of the Software, and to permit persons to whom the Software is
197
+ furnished to do so, subject to the following conditions:
198
+
199
+ The above copyright notice and this permission notice shall be included in all
200
+ copies or substantial portions of the Software.
201
+
202
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
203
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
204
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
205
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
206
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
207
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
208
+ SOFTWARE.
209
+
210
+ ---
211
+
212
+ Creative Commons Attribution 4.0 International (CC-BY-4.0)
213
+
214
+ Documentation in this project (excluding specifications) is licensed under
215
+ CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for
216
+ the full license text.
package/README.md CHANGED
@@ -1,136 +1,153 @@
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&nbsp;; 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&nbsp;:
15
-
16
- ```json
17
- {
18
- "mcpServers": {
19
- "llmastro": {
20
- "command": "npx",
21
- "args": ["-y", "@cosmosos/mcp-ephemeris"]
22
- }
23
- }
24
- }
1
+ # MCP Registry
2
+
3
+ The MCP registry provides MCP clients with a list of MCP servers, like an app store for MCP servers.
4
+
5
+ [**📤 Publish my MCP server**](docs/modelcontextprotocol-io/quickstart.mdx) | [**⚡️ Live API docs**](https://registry.modelcontextprotocol.io/docs) | [**👀 Ecosystem vision**](docs/design/ecosystem-vision.md) | 📖 **[Full documentation](./docs)**
6
+
7
+ ## Development Status
8
+
9
+ **2025-10-24 update**: The Registry API has entered an **API freeze (v0.1)** 🎉. For the next month or more, the API will remain stable with no breaking changes, allowing integrators to confidently implement support. This freeze applies to v0.1 while development continues on v0. We'll use this period to validate the API in real-world integrations and gather feedback to shape v1 for general availability. Thank you to everyone for your contributions and patience—your involvement has been key to getting us here!
10
+
11
+ **2025-09-08 update**: The registry has launched in preview 🎉 ([announcement blog post](https://blog.modelcontextprotocol.io/posts/2025-09-08-mcp-registry-preview/)). While the system is now more stable, this is still a preview release and breaking changes or data resets may occur. A general availability (GA) release will follow later. We'd love your feedback in [GitHub discussions](https://github.com/modelcontextprotocol/registry/discussions/new?category=ideas) or in the [#registry-dev Discord](https://discord.com/channels/1358869848138059966/1369487942862504016) ([joining details here](https://modelcontextprotocol.io/community/communication)).
12
+
13
+ Registry Working Group:
14
+ - **Tadas Antanavicius** (PulseMCP) [@tadasant](https://github.com/tadasant)
15
+ - **Radoslav (Rado) Dimitrov** (Stacklok) [@rdimitrov](https://github.com/rdimitrov)
16
+ - **Bob Dickinson** (TeamSpark) [@BobDickinson](https://github.com/BobDickinson)
17
+ - **Preeti (Pree) Dewani** (Ravenmail) [@pree-dew](https://github.com/pree-dew)
18
+
19
+ ## Contributing
20
+
21
+ We use multiple channels for collaboration - see [modelcontextprotocol.io/community/communication](https://modelcontextprotocol.io/community/communication).
22
+
23
+ Often (but not always) ideas flow through this pipeline:
24
+
25
+ - **[Discord](https://modelcontextprotocol.io/community/communication)** - Real-time community discussions
26
+ - **[Discussions](https://github.com/modelcontextprotocol/registry/discussions)** - Propose and discuss product/technical requirements
27
+ - **[Issues](https://github.com/modelcontextprotocol/registry/issues)** - Track well-scoped technical work
28
+ - **[Pull Requests](https://github.com/modelcontextprotocol/registry/pulls)** - Contribute work towards issues
29
+
30
+ ### Quick start:
31
+
32
+ #### Pre-requisites
33
+
34
+ - **Docker**
35
+ - **Go 1.24.x**
36
+ - **ko** - Container image builder for Go ([installation instructions](https://ko.build/install/))
37
+ - **golangci-lint v2.4.0**
38
+
39
+ #### Running the server
40
+
41
+ ```bash
42
+ # Start full development environment
43
+ make dev-compose
25
44
  ```
26
45
 
27
- Quittez complètement Claude Desktop (barre des tâches) et relancez-le. Demandez
28
- ensuite&nbsp;: *« Quelle est la phase de la Lune aujourd'hui ? »* — Claude appelle
29
- le serveur et répond à partir de positions réellement calculées.
46
+ This starts the registry at [`localhost:8080`](http://localhost:8080) with PostgreSQL. The database uses ephemeral storage and is reset each time you restart the containers, ensuring a clean state for development and testing.
30
47
 
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.
48
+ **Note:** The registry uses [ko](https://ko.build) to build container images. The `make dev-compose` command automatically builds the registry image with ko and loads it into your local Docker daemon before starting the services.
34
49
 
35
- ## Outils exposés
50
+ By default, the registry seeds from the production API with a filtered subset of servers (to keep startup fast). This ensures your local environment mirrors production behavior and all seed data passes validation. For offline development you can seed from a file without validation with `MCP_REGISTRY_SEED_FROM=data/seed.json MCP_REGISTRY_ENABLE_REGISTRY_VALIDATION=false make dev-compose`.
36
51
 
37
- **19 outils**, tous adossés au même moteur calculé côté serveur.
52
+ The setup can be configured with environment variables in [docker-compose.yml](./docker-compose.yml) - see [.env.example](./.env.example) for a reference.
38
53
 
39
- ### Positions & ciel
40
- | Outil | Entrée | Sortie |
41
- |---|---|---|
42
- | `get_planet_positions` | `datetime` (ISO UTC) | positions écliptiques de tous les corps (signe, degré, rétro) |
43
- | `get_moon_phase` | `datetime` (ISO UTC) | phase lunaire, illumination %, description |
44
- | `get_current_sky` | `latitude`, `longitude` | le ciel maintenant (transits du moment) pour un lieu |
45
- | `get_aspects` | `datetime` (ISO UTC) | grille d'aspects majeurs+mineurs entre les corps |
54
+ <details>
55
+ <summary>Alternative: Running a pre-built Docker image</summary>
46
56
 
47
- ### Thème natal & relations
48
- | Outil | Entrée | Sortie |
49
- |---|---|---|
50
- | `get_natal_chart` | naissance + `zodiac` (tropical/sidéral), `houseSystem` (7 systèmes) | thème complet : maisons, aspects, ASC/MC, phase lunaire, Lots hermétiques |
51
- | `get_transits` | naissance + `datetime` optionnel | aspects transit→natal, triés par orbe |
52
- | `get_synastry` | deux naissances | aspects inter-thèmes + résumé harmonie/tension |
53
- | `get_composite_chart` | deux naissances | thème composite par mi-points |
54
- | `get_secondary_progressions` | naissance + `targetDate` | positions progressées (« un jour = un an ») |
55
- | `get_solar_return` | naissance + `year` (+ lieu optionnel) | instant + thème du retour solaire |
56
- | `get_lunar_return` | naissance + `after` optionnel | instant + thème du prochain retour lunaire |
57
+ Pre-built Docker images are automatically published to GitHub Container Registry. Note that the image does not bundle PostgreSQL, so you need to run your own and point the registry at it via `MCP_REGISTRY_DATABASE_URL` (see [docker-compose.yml](./docker-compose.yml) for a working example):
57
58
 
58
- ### Événements célestes
59
- | Outil | Entrée | Sortie |
60
- |---|---|---|
61
- | `get_ingresses` | `body`, `start`, `end` | dates de changement de signe (robuste au rétrograde) |
62
- | `get_retrograde_windows` | `body`, `start`, `end` | stations rétrograde/directe sur la période |
63
- | `get_eclipse_details` | `datetime`, `kind` | magnitude, obscuration, Saros d'une éclipse connue *(swisseph)* |
64
- | `get_next_eclipse` | `from`, `kind`, `backward` optionnel | prochaine/précédente éclipse : maximum, type, contacts *(swisseph)* |
59
+ ```bash
60
+ # Run latest stable release
61
+ docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:latest
65
62
 
66
- ### Astrocartographie, numérologie, autorité
67
- | Outil | Entrée | Sortie |
68
- |---|---|---|
69
- | `get_astrocartography` | `datetime` (ISO UTC) | lignes planétaires MC/IC + parans (croisements) |
70
- | `get_life_path` | `date` (YYYY-MM-DD) | nombre du chemin de vie (numérologie) |
71
- | `get_engine_diagnostic` | — | moteur actif, chargement de l'addon natif, précision réelle |
72
- | `validate_against_horizons` | `datetime`, `bodies` optionnel | écart de nos positions vs JPL Horizons (NASA) en secondes d'arc — réseau requis |
63
+ # Run latest from main branch (continuous deployment)
64
+ docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:main
73
65
 
74
- *(swisseph)* = nécessite l'addon natif Swiss Ephemeris ; renvoie `null` en repli AstraCore.
66
+ # Run specific release version
67
+ docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:v1.0.0
75
68
 
76
- ## Précision
69
+ # Run development build from main branch
70
+ docker run -p 8080:8080 ghcr.io/modelcontextprotocol/registry:main-20250906-abc123d
71
+ ```
77
72
 
78
- Sous [Swiss Ephemeris](https://www.astro.com/swisseph/), les positions
79
- correspondent à la référence mondiale **JPL Horizons (NASA)** à moins d'une
80
- seconde d'arc (mesuré au 2026-07-19) :
73
+ **Available tags:**
74
+ - **Releases**: `latest`, `v1.0.0`, `v1.1.0`, etc.
75
+ - **Continuous**: `main` (latest main branch build)
76
+ - **Development**: `main-<date>-<sha>` (specific commit builds)
81
77
 
82
- | Corps | Écart vs NASA |
83
- |---|---|
84
- | Soleil | 0,2″ |
85
- | Lune | 1,5″ |
86
- | Jupiter | 0,1″ |
87
- | Pluton | 0,4″ |
78
+ </details>
88
79
 
89
- Vérifiez-le vous-même avec l'outil `validate_against_horizons`.
80
+ #### Publishing a server
90
81
 
91
- ## Deux moteurs
82
+ To publish a server, we've built a simple CLI. You can use it with:
92
83
 
93
- Le calcul est routé selon la variable `ASTRO_ENGINE` :
84
+ ```bash
85
+ # Build the latest CLI
86
+ make publisher
94
87
 
95
- - **`swisseph`** (par défaut) — Swiss Ephemeris, addon natif, précision
96
- sub-arcseconde. Se compile automatiquement là où une chaîne de build C++ est
97
- présente (Linux, macOS, la plupart des serveurs).
98
- - **`astracore`** — moteur maison pur TypeScript (VSOP/Meeus), **sans binaire
99
- natif**. Utilisé en repli automatique quand `swisseph` n'a pas pu être compilé
100
- (fréquent sous Windows). Soleil et Lune restent précis&nbsp;; les planètes
101
- externes dérivent de quelques minutes d'arc.
88
+ # Use it!
89
+ ./bin/mcp-publisher --help
90
+ ```
102
91
 
103
- Pour forcer un moteur : `ASTRO_ENGINE=swisseph` ou `ASTRO_ENGINE=astracore`.
92
+ See [the publisher guide](./docs/modelcontextprotocol-io/quickstart.mdx) for more details.
93
+
94
+ #### Other commands
95
+
96
+ ```bash
97
+ # Run lint, unit tests and integration tests
98
+ make check
99
+ ```
104
100
 
105
- ## Confidentialité
101
+ There are also a few more helpful commands for development. Run `make help` to learn more, or look in [Makefile](./Makefile).
102
+
103
+ <!--
104
+ For Claude and other AI tools: Always prefer make targets over custom commands where possible.
105
+ -->
106
+
107
+ ## Architecture
108
+
109
+ ### Project Structure
110
+
111
+ ```
112
+ ├── cmd/ # Application entry points
113
+ │ └── publisher/ # Server publishing tool
114
+ ├── data/ # Seed data
115
+ ├── deploy/ # Deployment configuration (Pulumi)
116
+ ├── docs/ # Documentation
117
+ ├── internal/ # Private application code
118
+ │ ├── api/ # HTTP handlers and routing
119
+ │ ├── auth/ # Authentication (GitHub OAuth, JWT, namespace blocking)
120
+ │ ├── config/ # Configuration management
121
+ │ ├── database/ # Data persistence (PostgreSQL)
122
+ │ ├── service/ # Business logic
123
+ │ ├── telemetry/ # Metrics and monitoring
124
+ │ └── validators/ # Input validation
125
+ ├── pkg/ # Public packages
126
+ │ ├── api/ # API types and structures
127
+ │ │ └── v0/ # Version 0 API types
128
+ │ └── model/ # Data models for server.json
129
+ ├── scripts/ # Development and testing scripts
130
+ ├── tests/ # Integration tests
131
+ └── tools/ # CLI tools and utilities
132
+ └── validate-*.sh # Schema validation tools
133
+ ```
106
134
 
107
- Le serveur tourne **sur votre machine** : vos données de naissance ne sont
108
- envoyées nulle part. Seul `validate_against_horizons` effectue une requête
109
- sortante (vers l'API publique de la NASA).
135
+ ### Authentication
110
136
 
111
- ## Prérequis
137
+ Publishing supports multiple authentication methods:
138
+ - **GitHub OAuth** - For publishing by logging into GitHub
139
+ - **GitHub OIDC** - For publishing from GitHub Actions
140
+ - **DNS verification** - For proving ownership of a domain and its subdomains
141
+ - **HTTP verification** - For proving ownership of a domain
112
142
 
113
- - Node.js 20.
114
- - Pour la précision maximale (`swisseph`) : une chaîne de build C++
115
- (`python3`, `make`, un compilateur) sur la machine. Sinon, repli automatique
116
- sur `astracore`, sans configuration.
143
+ The registry validates namespace ownership when publishing. E.g. to publish...:
144
+ - `io.github.domdomegg/my-cool-mcp` you must login to GitHub as `domdomegg`, or be in a GitHub Action on domdomegg's repos
145
+ - `me.adamjones/my-cool-mcp` you must prove ownership of `adamjones.me` via DNS or HTTP challenge
117
146
 
118
- ## À propos
147
+ ## Community Projects
119
148
 
120
- Propulsé par le moteur d'astrologie de [Llmastro](https://llmastro.com). En
121
- savoir plus sur la précision et l'architecture :
122
- <https://llmastro.com/notre-moteur>.
149
+ Check out [community projects](docs/community-projects.md) to explore notable registry-related work created by the community.
123
150
 
124
- ## Licence
151
+ ## More documentation
125
152
 
126
- **Gratuit pour un usage non commercial** (personnel, recherche, éducation,
127
- organisations à but non lucratif) — sous licence
128
- [PolyForm Noncommercial 1.0.0](./LICENSE).
129
-
130
- **Usage commercial / professionnel : licence payante requise.** Pour l'obtenir,
131
- contactez KAIROSAST LTD via <https://llmastro.com/contact>.
132
-
133
- À noter : la dépendance optionnelle `swisseph` (Swiss Ephemeris, Astrodienst) a
134
- sa propre licence (AGPL ou licence commerciale Swiss Ephemeris) et n'est pas
135
- couverte par la présente. Les usages professionnels doivent s'y conformer
136
- séparément.
153
+ See the [documentation](./docs) for more details if your question has not been answered here!
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
13
13
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
14
14
  import { z } from "zod";
15
15
 
16
- // ../ephemeris/src/astrocartography.ts
16
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/astrocartography.ts
17
17
  var DEG = Math.PI / 180;
18
18
  var RAD = 180 / Math.PI;
19
19
  function norm360(x) {
@@ -136,7 +136,7 @@ function findParans(lines, dedupDeg = 1.5) {
136
136
  return kept;
137
137
  }
138
138
 
139
- // ../ephemeris/src/numerology.ts
139
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/numerology.ts
140
140
  function computeLifePath(localBirthDate) {
141
141
  function reduceToDigit(n) {
142
142
  while (n > 9) {
@@ -162,7 +162,7 @@ function computeLifePath(localBirthDate) {
162
162
  }
163
163
  }
164
164
 
165
- // ../ephemeris/src/engine-core.ts
165
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/engine-core.ts
166
166
  var PI = Math.PI;
167
167
  var R = PI / 180;
168
168
  var D = 180 / PI;
@@ -189,7 +189,7 @@ function solveKepler(Mdeg, e) {
189
189
  return E;
190
190
  }
191
191
 
192
- // ../ephemeris/src/vsop.ts
192
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/vsop.ts
193
193
  var PE = {
194
194
  earth: { L0: 100.46646, L1: 36000.76983, p0: 102.937, p1: 1198, e0: 0.01671, e1: -42e-6, a: 1, i: 0, Om: 0 },
195
195
  mercury: { L0: 252.2503, L1: 149472.675, p0: 77.456, p1: 5719, e0: 0.20563, e1: 204e-7, a: 0.3871, i: 7.005, Om: 48.331 },
@@ -260,7 +260,7 @@ function isRetrograde(key, JD) {
260
260
  return v !== void 0 && v < 0;
261
261
  }
262
262
 
263
- // ../ephemeris/src/solar-lunar.ts
263
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/solar-lunar.ts
264
264
  function sunGeo(T) {
265
265
  const L0 = n360(280.46646 + 36000.76983 * T + 3032e-7 * T * T);
266
266
  const M = n360(357.52911 + 35999.05029 * T - 1537e-7 * T * T);
@@ -346,7 +346,7 @@ function moonPhase(JD) {
346
346
  };
347
347
  }
348
348
 
349
- // ../ephemeris/src/houses.ts
349
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/houses.ts
350
350
  function gmst(JD) {
351
351
  const T = (JD - 2451545) / 36525;
352
352
  return n360(280.46061837 + 360.98564736629 * (JD - 2451545) + 387933e-9 * T * T - T * T * T / 3871e4);
@@ -503,7 +503,7 @@ function houseOfLongitude(lon, cusps) {
503
503
  return 1;
504
504
  }
505
505
 
506
- // ../ephemeris/src/aspects.ts
506
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/aspects.ts
507
507
  var ASPECT_TYPES = [
508
508
  { type: "conjunction", nameFr: "Conjonction", angle: 0, orb: 8, tone: "n", symbol: "\u260C" },
509
509
  { type: "sextile", nameFr: "Sextile", angle: 60, orb: 6, tone: "h", symbol: "\u26B9" },
@@ -560,7 +560,7 @@ function calculateAspects(pos) {
560
560
  return out.sort((a, b) => a.orb - b.orb);
561
561
  }
562
562
 
563
- // ../ephemeris/src/lots.ts
563
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/lots.ts
564
564
  function partOfFortune(sunLon, moonLon, asc, isNight) {
565
565
  return isNight ? n360(asc + sunLon - moonLon) : n360(asc + moonLon - sunLon);
566
566
  }
@@ -579,7 +579,7 @@ function computeHermeticLots(asc, planets, isNight, fortune) {
579
579
  };
580
580
  }
581
581
 
582
- // ../ephemeris/src/astro-engine.ts
582
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/astro-engine.ts
583
583
  function deltaTSeconds(JD) {
584
584
  const year = 2e3 + (JD - 2451545) / 365.25;
585
585
  const longTerm = (y) => {
@@ -805,7 +805,7 @@ function computeCurrentSky(lat, lng, opts = {}) {
805
805
  return computeChartFromJD(JD, lat, lng, opts);
806
806
  }
807
807
 
808
- // ../ephemeris/src/swiss-engine.ts
808
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/swiss-engine.ts
809
809
  import { createRequire } from "module";
810
810
  import { join } from "path";
811
811
  var _swe = null;
@@ -1229,7 +1229,7 @@ function findNextLunarEclipseSwiss(jdStart, backward = false) {
1229
1229
  }
1230
1230
  }
1231
1231
 
1232
- // ../ephemeris/src/engine-router.ts
1232
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/engine-router.ts
1233
1233
  var _activeEngine = null;
1234
1234
  var _resolutionLog = null;
1235
1235
  function resolveEngine() {
@@ -1306,7 +1306,7 @@ function computeAstrocartography(JD, opts = {}) {
1306
1306
  return { jd: JD, gst, bodies, lines, parans };
1307
1307
  }
1308
1308
 
1309
- // ../ephemeris/src/types.ts
1309
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/types.ts
1310
1310
  var CityNotFoundError = class extends Error {
1311
1311
  constructor(query, suggestions = []) {
1312
1312
  super(
@@ -1320,7 +1320,7 @@ var CityNotFoundError = class extends Error {
1320
1320
  suggestions;
1321
1321
  };
1322
1322
 
1323
- // ../ephemeris/src/planting-calendar.ts
1323
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/planting-calendar.ts
1324
1324
  function R2(a, b) {
1325
1325
  const out = [];
1326
1326
  let m = a;
@@ -1417,7 +1417,7 @@ var FLOWERS = [
1417
1417
  ];
1418
1418
  var PLANTING_CALENDAR = [...VEGETABLES, ...FLOWERS];
1419
1419
 
1420
- // ../ephemeris/src/dignities.ts
1420
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/dignities.ts
1421
1421
  var TABLE = {
1422
1422
  sun: { domicile: [4], exaltation: [0], detriment: [10], fall: [6] },
1423
1423
  moon: { domicile: [3], exaltation: [1], detriment: [9], fall: [7] },
@@ -1448,7 +1448,7 @@ function essentialDignity(planetKey, signIdx) {
1448
1448
  return null;
1449
1449
  }
1450
1450
 
1451
- // ../ephemeris/src/natal-weight.ts
1451
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/natal-weight.ts
1452
1452
  var TRADITIONAL_RULER = [
1453
1453
  "mars",
1454
1454
  // 0 Bélier
@@ -1575,7 +1575,7 @@ function computeNatalWeight(chart) {
1575
1575
  return { byPlanet, top, chartRuler };
1576
1576
  }
1577
1577
 
1578
- // ../ephemeris/src/natal-patterns.ts
1578
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/natal-patterns.ts
1579
1579
  var MAJORS = ["sun", "moon", "mercury", "venus", "mars", "jupiter", "saturn", "uranus", "neptune", "pluto"];
1580
1580
  var ORB = {
1581
1581
  grandTrine: 8,
@@ -1704,7 +1704,7 @@ function detectNatalPatterns(input) {
1704
1704
  return out;
1705
1705
  }
1706
1706
 
1707
- // ../ephemeris/src/planetary-ages.ts
1707
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/planetary-ages.ts
1708
1708
  var AGE_BANDS = [
1709
1709
  { maxAge: 7, planetKey: "moon", fr: "l'enfance, le lien affectif et le besoin de s\xE9curit\xE9", en: "childhood, emotional bonding and the need for security" },
1710
1710
  { maxAge: 14, planetKey: "mercury", fr: "l'apprentissage, la curiosit\xE9 et les premiers \xE9changes", en: "learning, curiosity and first exchanges" },
@@ -1715,7 +1715,7 @@ var AGE_BANDS = [
1715
1715
  { maxAge: Number.POSITIVE_INFINITY, planetKey: "saturn", fr: "le bilan, la sagesse et l'essentiel", en: "reckoning, wisdom and the essential" }
1716
1716
  ];
1717
1717
 
1718
- // ../ephemeris/src/birth-lunation.ts
1718
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/birth-lunation.ts
1719
1719
  var LUNATION_TYPES = [
1720
1720
  { key: "new", nameFr: "Nouvelle Lune", nameEn: "New Moon", glossFr: "instinct, \xE9lan spontan\xE9, commencement subjectif", glossEn: "instinct, spontaneous drive, subjective beginnings" },
1721
1721
  { key: "crescent", nameFr: "Croissant", nameEn: "Crescent", glossFr: "l'effort d'\xE9merger, s'arracher au pass\xE9, volont\xE9 d'avancer", glossEn: "the effort to emerge, breaking from the past, will to advance" },
@@ -1733,7 +1733,7 @@ function lunationType(sunLon, moonLon) {
1733
1733
  return LUNATION_TYPES[idx];
1734
1734
  }
1735
1735
 
1736
- // ../ephemeris/src/time-utc.service.ts
1736
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/time-utc.service.ts
1737
1737
  import { DateTime } from "luxon";
1738
1738
  var TimezoneError = class extends Error {
1739
1739
  constructor(message, code, details) {
@@ -1868,7 +1868,7 @@ function buildResult(dt, resolution) {
1868
1868
  };
1869
1869
  }
1870
1870
 
1871
- // ../ephemeris/src/service.ts
1871
+ // node_modules/.pnpm/@astro-platform+ephemeris@file+vendor+ephemeris/node_modules/@astro-platform/ephemeris/src/service.ts
1872
1872
  import { createHash } from "crypto";
1873
1873
  var _redis = null;
1874
1874
  async function getRedis() {
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@cosmosos/mcp-ephemeris",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
+ "mcpName": "io.github.kairosastro-sketch/mcp-ephemeris",
4
5
  "type": "module",
5
- "description": "Serveur MCP exposant des positions planétaires calculées côté serveur (Swiss Ephemeris) validées contre JPL Horizons (NASA). Branchez n'importe quel LLM/agent au vrai ciel.",
6
+ "description": "MCP server exposing server-computed planetary positions (Swiss Ephemeris), validated against JPL Horizons (NASA). Plug any LLM/agent into the real sky — 19 astrology tools, never hallucinated.",
6
7
  "keywords": [
7
8
  "mcp",
8
9
  "model-context-protocol",
@@ -17,6 +18,13 @@
17
18
  ],
18
19
  "license": "PolyForm-Noncommercial-1.0.0",
19
20
  "homepage": "https://llmastro.com/notre-moteur",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/kairosastro-sketch/mcp-ephemeris.git"
24
+ },
25
+ "bugs": {
26
+ "url": "https://github.com/kairosastro-sketch/mcp-ephemeris/issues"
27
+ },
20
28
  "bin": {
21
29
  "cosmosos-mcp-ephemeris": "dist/index.js"
22
30
  },
@@ -45,12 +53,11 @@
45
53
  "swisseph": "^0.5.17"
46
54
  },
47
55
  "devDependencies": {
48
- "@modelcontextprotocol/inspector": "^0.14.0",
56
+ "@astro-platform/ephemeris": "file:vendor/ephemeris",
49
57
  "@types/node": "^25.9.3",
50
58
  "tsup": "^8.5.0",
51
59
  "tsx": "^4.19.0",
52
- "typescript": "^6.0.3",
53
- "@astro-platform/ephemeris": "0.1.0"
60
+ "typescript": "^6.0.3"
54
61
  },
55
62
  "scripts": {
56
63
  "build": "tsup",