| 1 | // Copyright 2025 The Go MCP SDK Authors. All rights reserved. |
| 2 | // Use of this source code is governed by an MIT-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package mcp |
| 6 | |
| 7 | import ( |
| 8 | "context" |
| 9 | ) |
| 10 | |
| 11 | // A PromptHandler handles a call to prompts/get. |
| 12 | type PromptHandler func(context.Context, *GetPromptRequest) (*GetPromptResult, error) |
| 13 | |
| 14 | type serverPrompt struct { |
| 15 | prompt *Prompt |
| 16 | handler PromptHandler |
| 17 | } |