CoolFace
Apppublic

ghh1125/astronomy

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes
App README

astronomy MCP Service

This deployment package exposes selected Astronomy Engine capabilities through MCP using FastMCP. It supports local stdio usage and HTTP deployment (Docker/HuggingFace Spaces).

Available Tools

  • health_check
  • list_supported_bodies
  • get_body_equatorial
  • get_rise_set_time
  • get_moon_phase
  • get_seasons
  • search_global_solar_eclipse
  • get_constellation

Local stdio Connection

Install dependencies and run the local stdio entrypoint:

bash
cd astronomy/mcp_output
pip install -r requirements.txt
python mcp_plugin/main.py

You can also run:

bash
python start_mcp.py

(default transport is stdio)

HTTP Client Connection

For Docker/HF Spaces, transport is set to HTTP automatically:

  • MCP_TRANSPORT=http
  • MCP_PORT=7860

The MCP endpoint is:

  • https://{host}/mcp

Docker entrypoint runs FastMCP directly:

bash
python astronomy/mcp_output/start_mcp.py

app.py is supplementary for local info/inspection only and is not the Docker entrypoint.