server

command
v1.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Command prompts-demo is the Phase 28 worked example for the Dockyard prompts API (D-151).

It registers three MCP Prompts via runtime/server.AddPrompt:

  • summarize_for_review — a careful summary primer (system + user)
  • code_review — review a diff against a rubric (4 messages)
  • explain_error — explain a runtime error in plain language

And one tool (`summarize_text`) so the manifest is valid and the example also showcases the tool / prompt distinction side by side.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL