mcp: align PromptHandler args with other handlers (#348)

The second arg is a GetPromptRequest.

Fixes #300.
This commit is contained in:
Jonathan Amsterdam 2025-08-22 10:44:05 -04:00 • committed by GitHub
commit e3e8aaf024
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,7 @@ import (
)
// A PromptHandler handles a call to prompts/get.
type PromptHandler func(context.Context, *ServerSession, *GetPromptParams) (*GetPromptResult, error)
type PromptHandler func(context.Context, *GetPromptRequest) (*GetPromptResult, error)
type serverPrompt struct {
prompt *Prompt