Skip to content

Conversation

@angaither
Copy link
Contributor

@angaither angaither commented Dec 2, 2025

override the data_search sdk method to hopefully fix issues with claude desktop not using search filters correctly.

I still added the method to the 'sdk' mcp server, this is up for review if it should be it's own or not.

need someone with claude desktop to confirm fix this has been done!

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a custom data_search tool to override the SDK's default implementation, aiming to resolve issues with Claude Desktop not properly applying search filters. The new implementation explicitly constructs date range and cloud cover filters and passes them to the Planet SDK.

Key changes:

  • Adds a new search.py server module with a custom data_search tool that manually constructs search filters
  • Removes data_search from the SDK's signature override list and adds it to the ignore list
  • Updates the tool description to document the new start_date and end_date parameters
  • Updates tests to work with the new tool signature

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/planet_mcp/servers/search.py New custom data_search implementation with explicit date and cloud cover filters
src/planet_mcp/servers/sdk.py Moves data_search from signature override to ignore list to prevent conflicts
src/planet_mcp/servers/descriptions.py Updates documentation to reflect new date parameter requirements
src/planet_mcp/servers/init.py Registers the new search server module
tests/test_server.py Updates test to use new parameters and expected output format

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@angaither angaither force-pushed the ag/modify-search branch 2 times, most recently from 58b1c75 to 356d976 Compare December 4, 2025 16:42
datefilter is optional, and only used if user provided
)
async def data_search(
item_types: list[str],
start_date: str,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
start_date: str,
start_date: str | None,

the type hint (used for validation) still requires a value

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.

3 participants