Skip to content

Add guided cook prompts to the MCP server#291

Merged
jongio merged 3 commits into
mainfrom
idea/mcp-prompts
Jul 13, 2026
Merged

Add guided cook prompts to the MCP server#291
jongio merged 3 commits into
mainfrom
idea/mcp-prompts

Conversation

@jongio

@jongio jongio commented Jul 13, 2026

Copy link
Copy Markdown
Owner

What

Adds three guided prompts to the MCP server using the prompts API:

  • diagnose_cook (optional serial): reads the live snapshot and recent history, then reports whether temps are climbing, stalled, or need attention.
  • when_to_wrap (optional serial, channel): checks the meat probe against the stall band and calls whether to wrap now, wait, or that the stall already broke.
  • food_safety_check (optional serial): confirms the cook cleared the danger zone in time and reached a safe internal temp for the cut.

Prompts are user-initiated templates that return a step-by-step plan naming the existing tools to call (get_live_cook_snapshot, get_temperature_history, get_temperature_guide, get_eta). They add guidance without adding tools, so the server stays at 21 tools.

How

  • registerPrompt calls in packages/mcp/src/server.ts with a small userPrompt helper and a shared deviceClause for the optional serial argument.
  • Prompt callbacks build text only; they do no network calls. The assistant runs the returned plan.

Tests

  • 11 new tests in packages/mcp/tests/server.test.ts: each prompt is registered, the tool count stays at 21, callbacks return a user message referencing the expected tools, and the serial and channel arguments are honored (including blank-string fallback).
  • Full MCP suite: 59 passing. pnpm lint clean.

Closes #290

Register three MCP prompts (diagnose_cook, when_to_wrap, food_safety_check)
that return step-by-step plans composing the existing read tools. Prompts
give the assistant a guided starting point for common cook questions without
adding any new tools, so the server stays at 21 tools.

Closes #290

Co-authored-by: Copilot App <[email protected]>
@jongio jongio added the idea Feature idea from the idea pipeline label Jul 13, 2026
@jongio jongio self-assigned this Jul 13, 2026
@jongio jongio merged commit 88b1e83 into main Jul 13, 2026
2 checks passed
@jongio jongio deleted the idea/mcp-prompts branch July 13, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

idea Feature idea from the idea pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add guided cook prompts to the MCP server

1 participant