Skip to content

Add heliofleet-mcp to the PyHC project list (requested tier: Bronze) - #403

Open
sr-dash wants to merge 2 commits into
heliophysicsPy:mainfrom
sr-dash:add-heliofleet-mcp
Open

sr-dash wants to merge 2 commits into
heliophysicsPy:mainfrom
sr-dash:add-heliofleet-mcp

Conversation

@sr-dash

@sr-dash sr-dash commented Nov 21, 2026 •

Copy link
Copy Markdown

Project

heliofleet-mcp (https://github.com/sr-dash/heliofleet-mcp) is an MIT-licensed Python package that answers heliophysics spacecraft-geometry questions from the published data of HelioFleet (JPL Horizons ephemerides, 2010 to about 2030, refreshed monthly) and HelioField (daily PFSS products from NSO/GONG and SDO/HMI). It is on PyPI (pip install heliofleet-mcp, or uvx heliofleet-mcp), the documentation is at https://sr-dash.github.io/heliofleet-mcp/, the current release is 0.2.0, and each release is archived on Zenodo (https://doi.org/10.5281/zenodo.24409982).

Scope:

  • Positions. Distance, Stonyhurst and Carrington coordinates, ecliptic J2000 and HEE vectors, light time and Parker-spiral footpoint for Parker Solar Probe, Solar Orbiter, STEREO, BepiColombo, SDO, SOHO, Aditya-L1, the L1 monitors, MAVEN and the inner planets.
  • Alignment search. Windows of radial alignment, quadrature with Earth, solar conjunction and Parker-spiral magnetic connection between any two bodies over a date range.
  • Viewing geometry. Per observer: light-time offset, RSUN_OBS, B0, HGLN_OBS, CRLN_OBS (own light time) and km per arcsecond, for co-aligning images from different viewpoints.
  • Event calendar. Perihelia, alignments, quadratures, conjunctions and eclipses, optionally with DONKI flares, CMEs and storms.
  • Magnetic connectivity (HelioField). PFSS footpoint, expansion factor, distance to the coronal-hole boundary and a WSA-type speed for each spacecraft; space-weather indicators; coronal-field summary.

Every result carries a HelioFleet or HelioField link that opens the same configuration in the browser. The same results are available as a command line that prints JSON, a Python API (from heliofleet_mcp import Fleet, HelioField) and a Model Context Protocol server (listed in the MCP Registry as io.github.sr-dash/heliofleet-mcp).

Requested tier: Bronze

This PR provides the self-evaluation against the PyHC standards that PHEP 4 asks of Bronze-tier packages. The entry uses the current projects.yml format.

Self-evaluation grades

Category Grade
Community Good
Documentation Good
Testing Good
Software Maturity Good
PHEP 3 Good (entered under the python3 key, as all current entries do)
License Good

Evidence

  • Community: developed in the open on GitHub. The code of conduct adopts the Contributor Covenant 2.1 (CODE_OF_CONDUCT.md). CONTRIBUTING.md covers reporting, setup, tests, style and releases, and lists when a contribution is not accepted. Issues and Discussions are open. On duplication: the frame and alignment code is a port of HelioFleet's own JavaScript, so results match the site; it reimplements only the small part of sunpy.coordinates it needs (Stonyhurst and Carrington from the IAU rotation model) to keep the single runtime dependency, and the tests check it against SunPy.
  • Documentation: a documentation site (MkDocs Material) with getting started, the MCP tools, the command line, the Python API, methods and accuracy, contributing and citing, and an API reference built with mkdocstrings. Every public module, class, function and method has a numpydoc docstring with Parameters, Returns (and Raises where relevant) and Examples; ruff's pydocstyle rules (numpy convention) check the format, a test checks that the sections are there, and the 57 examples run as doctests in CI on fixed past dates. The site is rebuilt in strict mode (broken links fail) on every push. CONTRIBUTING.md is the developer guide, AGENTS.md lists the conventions for reporting results, and heliofleet-mcp --help documents each command. The MCP tool docstrings stay in plain prose, since MCP clients show them as tool descriptions.
  • Testing: 198 tests, including the 57 doctests and the docstring checks. Unit tests cover the frames, time parsing and link building. Integration tests start the MCP server over stdio and call every tool through the MCP client, and exercise the command line and the HelioField plugin. Acceptance tests compare with SunPy and JPL Horizons (Stonyhurst and Carrington worst case 0.0004°, limit 0.005°) and with HelioFleet's JavaScript, run under Node, for identical alignment windows. Coverage is measured in CI: 89% (the server module runs end to end in a subprocess, which the coverage figure does not count). CI runs on every push and pull request on Linux (Python 3.10, 3.12, 3.13, 3.14), macOS and Windows (Python 3.14), plus a monthly run after the data refresh.
  • Software maturity: installable with pip and uvx from PyPI. Versions follow semantic versioning (0.x while the interface may change), and releases are tagged and published automatically to PyPI by trusted publishing, then to the MCP Registry and Zenodo. Tested on Linux, macOS and Windows. Git on GitHub. ruff checks PEP 8 (pycodestyle and pyflakes rules) and the docstrings in CI. One runtime dependency (mcp). The only binary files are two README images in docs/. There is no conda-forge package yet; one can follow if there is demand.
  • PHEP 3: phep3-check (pyhc-actions) passes with 0 errors and 1 warning (Python 3.10 support may be dropped). Python 3.10 to 3.14 are supported and tested. There are no upstream core Scientific Python packages at runtime. pyhc-env-compat-check passes with 0 errors and 0 warnings.
  • License: MIT.

Changes since this PR was opened

The first version of this PR graded Documentation as Partially met, with numpydoc docstrings and an API reference planned for 0.2.0. Release 0.2.0 delivers both, so the entry now grades Documentation as Good and points docs to the documentation site.

Links

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant