How midatm1234/prithvi-wxc-skills works
Prithvi WxC Downscaling is an agent-driven MCP product for reproducing weather downscaling runs on a local machine. The principal workflow checks machine readiness, obtains pinned inputs and code, configures and preflights a run, then executes preprocessing, scalar computation, training, inference, and evaluation; NARR refinement is an additional branch. Analysis and run replay are separate capabilities. The graph reflects README-documented stages and indexed source references; unsampled implementation details are not inferred, and optional HTTP serving is shown separately.
Main entry points: mcp_downscaling_tools.py Tool dispatcher · job_manager.py Job orchestration · download_pipeline_data.py Input acquisition · provenance.py Preflight and manifests
Components 19
Agent interaction
- Agent skills
skills - Stdio transport
mcp/mcp_stdio.py - HTTP/SSE transport
mcp/mcp_server.py - Tool dispatcher
mcp/mcp_downscaling_tools.py
Setup and inputs
- Machine readiness
mcp/setup_tools.py - Paths and pins
mcp/config.py - Input acquisition
mcp/download_pipeline_data.py - Dataset downloaders
mcp/downloaders - Inputs and weights
Downscaling execution
- Run configuration
mcp/yaml_tools.py - Preflight and manifests
mcp/provenance.py - Job orchestration
mcp/job_manager.py - Pinned training code
- Run outputs
Analysis and replay
- Data analysis
mcp/analyzer.py - Run replay
mcp/provenance.py - Workflow knowledge
playbooks
Other components
- Agent / MCP host
- Data providers
Connections 26
- Agent / MCP host → Stdio transport: sends MCP calls
mcp/mcp_stdio.py - Agent / MCP host → HTTP/SSE transport: sends HTTP/SSE calls
README.md - Agent skills → Agent / MCP host: guides tool order
README.md - Workflow knowledge → Agent / MCP host: documents workflows
README.md - Stdio transport → Tool dispatcher: dispatches tools
mcp/mcp_stdio.py - HTTP/SSE transport → Tool dispatcher: dispatches tools
mcp/mcp_server.py - Tool dispatcher → Machine readiness: checks readiness
mcp/mcp_downscaling_tools.py - Tool dispatcher → Input acquisition: starts downloads
mcp/mcp_downscaling_tools.py - Tool dispatcher → Run configuration: creates configs
mcp/mcp_downscaling_tools.py - Tool dispatcher → Job orchestration: starts and polls
mcp/mcp_downscaling_tools.py - Tool dispatcher → Data analysis: invokes analysis
mcp/mcp_downscaling_tools.py - Tool dispatcher → Preflight and manifests: checks and replays
mcp/mcp_downscaling_tools.py - Machine readiness → Paths and pins: reads paths and pins
mcp/setup_tools.py - Input acquisition → Paths and pins: reads paths and pins
mcp/download_pipeline_data.py - Input acquisition → Dataset downloaders: selects dataset fetchers
- Input acquisition → Data providers: fetches pinned data
README.md - Input acquisition → Inputs and weights: writes downloaded inputs
README.md - Run configuration → Paths and pins: localizes paths
mcp/yaml_tools.py - Job orchestration → Run configuration: reads run config
mcp/job_manager.py - Job orchestration → Preflight and manifests: writes run manifest
mcp/job_manager.py - Preflight and manifests → Paths and pins: checks pinned inputs
mcp/provenance.py - Job orchestration → Pinned training code: runs pipeline stages
README.md - Job orchestration → Inputs and weights: uses pipeline inputs
README.md - Job orchestration → Run outputs: writes run artifacts
README.md - Data analysis → Run outputs: reads run outputs
- Preflight and manifests → Job orchestration: relaunches recorded run
mcp/provenance.py