mcp: fix the type of the Complete handler
The Complete handler was returning an abstract Result type, rather than concrete CompleteResult type. Fixes #375
This commit is contained in:
parent
a76bae3a11
commit
f6118aaace
1 changed files with 34 additions and 1 deletions
|
|
@ -407,7 +407,7 @@ func (s *Server) capabilities() *ServerCapabilities {
|
|||
return caps
|
||||
}
|
||||
|
||||
func (s *Server) complete(ctx context.Context, req *CompleteRequest) (Result, error) {
|
||||
func (s *Server) complete(ctx context.Context, req *CompleteRequest) (*CompleteResult, error) {
|
||||
if s.opts.CompletionHandler == nil {
|
||||
return nil, jsonrpc2.ErrMethodNotFound
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue