mirror of
https://github.com/rersozlu/food402.git
synced 2026-04-25 07:15:49 +03:00
[PR #8] [MERGED] refactor: migrate from deprecated server.tool to registerTool API #10
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/food402#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rersozlu/food402/pull/8
Author: @rersozlu
Created: 2/2/2026
Status: ✅ Merged
Merged: 2/2/2026
Merged by: @rersozlu
Base:
master← Head:feat/migrate-to-registertool-api📝 Commits (3)
7794a1crefactor: migrate from deprecated server.tool to registerTool API743bf75feat: add select_payment prompt for payment card selection82c6733feat: add closed restaurant guidance to search_restaurants tool📊 Changes
3 files changed (+864 additions, -204 deletions)
View changed files
➕
UPGRADE_PLAN.md(+352 -0)📝
remote/src/server.ts(+269 -112)📝
src/index.ts(+243 -92)📄 Description
Summary
server.tool()calls toserver.registerTool()in both local and remote MCP serversserver.prompt()toserver.registerPrompt()in local servertitleproperty to all tools and prompts for improved discoverabilitysearch_restaurantstool description to ensure agents don't recommend closed restaurantsChanges
src/index.tsremote/src/server.tsClosed Restaurant Handling
Updated
search_restaurantstool description in both servers to instruct AI agents to:isClosedfield before recommending restaurantsTest plan
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.