Skip to content

adding 2 prompts #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SHELL=/bin/bash

.PHONY: clean build

VERSION = "0.0.2"
VERSION = "0.0.3"

default: all ## Default target is all.

Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,19 @@ The server offers 2 tools.
- bounding_box (tuple): (Optional) Bounding box in the format (lower_left_lon, lower_left_lat, upper_right_lon, upper_right_lat).
- Returns: List of data granules.

## Prompts

1. `sealevel_rise_dataset`
- Search for datasets related to sea level rise worldwide.
- Input:
- `start_year` (int): Start year to consider.
- `end_year` (int): End year to consider.
- Returns: Prompt correctly formatted.

2. `ask_datasets_format`
- To ask about the format of the datasets.
- Returns: Prompt correctly formatted.

## Building

```bash
Expand Down
2 changes: 1 addition & 1 deletion earthdata_mcp_server/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

"""Earthdata MCP Server."""

__version__ = "0.1.1"
__version__ = "0.1.2"
10 changes: 10 additions & 0 deletions earthdata_mcp_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,15 @@ def search_earth_datagranules(short_name: str, count: int, temporal: tuple | Non
return datagranules


@mcp.prompt()
def sealevel_rise_dataset(start_year: int, end_year: int) -> str:
return f"I’m interested in datasets about sealevel rise worldwide from {start_year} to {end_year}. Can you list relevant datasets?"


@mcp.prompt()
def ask_datasets_format() -> str:
return "What are the data formats of those datasets?"


if __name__ == "__main__":
mcp.run(transport='stdio')