mcp: align PromptHandler args with other handlers (#348)
The second arg is a GetPromptRequest. Fixes #300.
This commit is contained in:
parent
5fd06ae8b7
commit
e3e8aaf024
1 changed files with 8 additions and 8 deletions
|
|
@ -446,7 +446,7 @@ func (s *Server) getPrompt(ctx context.Context, req *GetPromptRequest) (*GetProm
|
|||
Message: fmt.Sprintf("unknown prompt %q", req.Params.Name),
|
||||
}
|
||||
}
|
||||
return prompt.handler(ctx, req.Session, req.Params)
|
||||
return prompt.handler(ctx, req)
|
||||
}
|
||||
|
||||
func (s *Server) listTools(_ context.Context, req *ListToolsRequest) (*ListToolsResult, error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue