Repository navigation
Conversation
- Rename the TypeScript tools to get_alerts and get_forecast, matching
the other four servers and docs, and update the READMEs and AGENTS.md.
- Give both tools the same title, description and input limits in all
five servers: state exactly 2 characters, latitude -90..90,
longitude -180..180.
- Use one set of error messages everywhere, without raw HTTP bodies or
exception text, and "No active alerts for {STATE}." when there are none.
- Check for an empty forecast period list in the Rust server.
- Note in the Rust and Python READMEs where those SDKs differ: rmcp
doesn't check input limits, and the Python SDK prefixes tool errors.
Assisted by Claude Code, reviewed by me.
There was a problem hiding this comment.
🟡 Changes recommended
The Python weather server still omits explicit no-active-alerts text for an empty features list, leaving cross-server normalization incomplete.
1 open issue
What changed in this PR
This PR addresses part of #268 by aligning tool metadata and error handling across the five weather-server examples.
Changes:
- Standardizes tool names, titles, descriptions, and declared input limits.
- Normalizes error messages and adds Rust’s empty-forecast check.
- Updates documentation for shared names and SDK differences.
| File | Description |
|---|---|
| weather-server-typescript/src/index.ts | Renames tools and aligns metadata and errors. |
| weather-server-typescript/README.md | Documents underscore tool names. |
| weather-server-rust/src/main.rs | Adds titles, input limits, and empty-forecast handling. |
| weather-server-rust/README.md | Explains input-validation limitations. |
| weather-server-ruby/weather.rb | Aligns metadata, limits, and error responses. |
| weather-server-python/weather.py | Adds titles and constrained parameter metadata. |
| weather-server-python/README.md | Documents SDK error prefixes. |
| weather-server-go/main.go | Adds explicit input schemas and normalizes errors. |
| README.md | Documents shared tool names. |
| AGENTS.md | Updates the language-convention example. |
Review effort: Balanced
There was a problem hiding this comment.
🟡 Changes recommended
Malformed points responses can now raise an uncaught TypeError instead of returning the expected forecast error message because response structure validation falls outside the narrowed rescue.
1 open issue
1 resolved since last review
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Motivation and Context
Address issue #268, part 1
How Has This Been Tested?
Breaking Changes
N/a
Types of changes
Checklist
Additional context
Assisted by Claude Code, reviewed by me.