Skip to content

Commit 7ce6c7d

Browse files
committed
fix: resolve descriptions
1 parent 1e464f3 commit 7ce6c7d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mcp/protocol.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,8 @@ type ElicitParams struct {
899899
Meta `json:"_meta,omitempty"`
900900
// A human-readable message describing what information is being requested.
901901
Message string `json:"message"`
902-
// A JSON Schema object defining the structure of the requested data.
902+
// A restricted subset of JSON Schema.
903+
// Only top-level properties are allowed, without nesting.
903904
RequestedSchema *jsonschema.Schema `json:"requestedSchema"`
904905
}
905906

@@ -913,8 +914,8 @@ type ElicitResult struct {
913914
Meta `json:"_meta,omitempty"`
914915
// The action taken by the user: "accept", "decline", or "cancel".
915916
Action string `json:"action"`
916-
// The data provided by the user if action is "accept". This should conform
917-
// to the requested schema.
917+
// The submitted form data, only present when action is "accept".
918+
// Contains values matching the requested schema.
918919
Content map[string]any `json:"content,omitempty"`
919920
}
920921

0 commit comments

Comments
 (0)