mcgibs/tests/fixtures/capabilities_sample.xml
Ryan Malloy f7fad32a9e Implement mcgibs FastMCP server for NASA GIBS
Complete implementation of all modules:
- constants.py: GIBS API endpoints, projections, TileMatrixSet defs
- models.py: Pydantic models for layers, colormaps, geocoding
- geo.py: Nominatim geocoding with rate limiting and caching
- capabilities.py: WMTS GetCapabilities XML parser with search
- colormaps.py: Colormap v1.3 parser with natural-language summaries
- client.py: Async GIBS HTTP client wrapping all API interactions
- server.py: FastMCP 3.0 tools, resources, and prompts

11 MCP tools, 3 resources, 2 prompts. 47 tests, all passing.
2026-02-18 14:55:41 -07:00

81 lines
4.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<Capabilities xmlns="http://www.opengis.net/wmts/1.0"
xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:gml="http://www.opengis.net/gml"
version="1.0.0">
<ows:ServiceIdentification>
<ows:Title>NASA GIBS WMTS</ows:Title>
<ows:ServiceType>OGC WMTS</ows:ServiceType>
<ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
</ows:ServiceIdentification>
<Contents>
<Layer>
<ows:Title xml:lang="en">Corrected Reflectance (True Color, Terra/MODIS)</ows:Title>
<ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:2:84">
<ows:LowerCorner>-180 -90</ows:LowerCorner>
<ows:UpperCorner>180 90</ows:UpperCorner>
</ows:WGS84BoundingBox>
<ows:Identifier>MODIS_Terra_CorrectedReflectance_TrueColor</ows:Identifier>
<Style isDefault="true">
<ows:Title xml:lang="en">default</ows:Title>
<ows:Identifier>default</ows:Identifier>
</Style>
<Dimension>
<ows:Identifier>Time</ows:Identifier>
<ows:UOM>ISO8601</ows:UOM>
<Default>2025-12-01</Default>
<Value>2000-02-24/2025-12-01/P1D</Value>
</Dimension>
<TileMatrixSetLink><TileMatrixSet>250m</TileMatrixSet></TileMatrixSetLink>
<Format>image/jpeg</Format>
<ResourceURL template="https://gibs.earthdata.nasa.gov/wmts/epsg4326/best/MODIS_Terra_CorrectedReflectance_TrueColor/default/{Time}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg" format="image/jpeg" resourceType="tile"/>
</Layer>
<Layer>
<ows:Title xml:lang="en">Sea Ice Concentration (AMSR2, Monthly)</ows:Title>
<ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:2:84">
<ows:LowerCorner>-180 -90</ows:LowerCorner>
<ows:UpperCorner>180 90</ows:UpperCorner>
</ows:WGS84BoundingBox>
<ows:Identifier>AMSR2_Sea_Ice_Concentration_12km_Monthly</ows:Identifier>
<ows:Metadata xlink:role="http://earthdata.nasa.gov/gibs/metadata-type/colormap" xlink:href="https://gibs.earthdata.nasa.gov/colormaps/v1.3/AMSR2_Sea_Ice_Concentration_12km.xml" xlink:title="GIBS Colormap: Sea Ice Concentration"/>
<Style isDefault="true">
<ows:Title xml:lang="en">default</ows:Title>
<ows:Identifier>default</ows:Identifier>
<LegendURL width="378" height="86" xlink:href="https://gibs.earthdata.nasa.gov/legends/AMSR2_Sea_Ice_Concentration_12km.png"/>
</Style>
<Dimension>
<ows:Identifier>Time</ows:Identifier>
<ows:UOM>ISO8601</ows:UOM>
<Default>2024-06-01</Default>
<Value>2012-07-01/2024-06-01/P1M</Value>
</Dimension>
<TileMatrixSetLink><TileMatrixSet>2km</TileMatrixSet></TileMatrixSetLink>
<Format>image/png</Format>
<ResourceURL template="https://gibs.earthdata.nasa.gov/wmts/epsg4326/best/AMSR2_Sea_Ice_Concentration_12km_Monthly/default/{Time}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png" format="image/png" resourceType="tile"/>
</Layer>
<Layer>
<ows:Title xml:lang="en">Surface Air Temperature (Daily, Day, AIRS)</ows:Title>
<ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:2:84">
<ows:LowerCorner>-180 -90</ows:LowerCorner>
<ows:UpperCorner>180 90</ows:UpperCorner>
</ows:WGS84BoundingBox>
<ows:Identifier>AIRS_L3_Surface_Air_Temperature_Daily_Day</ows:Identifier>
<ows:Metadata xlink:role="http://earthdata.nasa.gov/gibs/metadata-type/colormap" xlink:href="https://gibs.earthdata.nasa.gov/colormaps/v1.3/AIRS_Surface_Air_Temperature_Daily_Day.xml" xlink:title="GIBS Colormap"/>
<Style isDefault="true">
<ows:Title xml:lang="en">default</ows:Title>
<ows:Identifier>default</ows:Identifier>
<LegendURL width="378" height="86" xlink:href="https://gibs.earthdata.nasa.gov/legends/AIRS_Temperature.png"/>
</Style>
<Dimension>
<ows:Identifier>Time</ows:Identifier>
<ows:UOM>ISO8601</ows:UOM>
<Default>2024-11-15</Default>
<Value>2002-08-30/2024-11-15/P1D</Value>
</Dimension>
<TileMatrixSetLink><TileMatrixSet>2km</TileMatrixSet></TileMatrixSetLink>
<Format>image/png</Format>
</Layer>
</Contents>
</Capabilities>