File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -467,6 +467,8 @@ type ServerCapabilities struct {
467
467
Experimental map [string ]any `json:"experimental,omitempty"`
468
468
// Present if the server supports sending log messages to the client.
469
469
Logging * struct {} `json:"logging,omitempty"`
470
+ // Present if the server supports autocompletion for prompt and resource template arguments.
471
+ Completion * struct {} `json:"completion,omitempty"`
470
472
// Present if the server offers any prompt templates.
471
473
Prompts * struct {
472
474
// Whether this server supports notifications for changes to the prompt list.
Original file line number Diff line number Diff line change @@ -589,6 +589,10 @@ func (s *MCPServer) handleInitialize(
589
589
capabilities .Logging = & struct {}{}
590
590
}
591
591
592
+ if s .capabilities .completions != nil && * s .capabilities .completions {
593
+ capabilities .Completion = & struct {}{}
594
+ }
595
+
592
596
result := mcp.InitializeResult {
593
597
ProtocolVersion : s .protocolVersion (request .Params .ProtocolVersion ),
594
598
ServerInfo : mcp.Implementation {
You can’t perform that action at this time.
0 commit comments