You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ModelContextProtocol/Protocol/Types/ResourcesCapability.cs
+10-20
Original file line number
Diff line number
Diff line change
@@ -92,27 +92,17 @@ public class ResourcesCapability
92
92
/// Gets or sets a collection of resources served by the server.
93
93
/// </summary>
94
94
/// <remarks>
95
-
/// Resources will specified via <see cref="ResourceCollection"/> augment the <see cref="ListResourcesHandler"/> and
96
-
/// <see cref="ReadResourceHandler"/>, if provided. ListResources requests will output information about every resource
97
-
/// in <see cref="ResourceCollection"/> and then also any resources output by <see cref="ListResourcesHandler"/>, if it's
98
-
/// non-<see langword="null"/>. ReadResource requests will first check <see cref="ResourceCollection"/> for the exact resource
99
-
/// being requested, will then fall back to <see cref="ResourceTemplateCollection"/> if no exact match could be found, and if the resource
100
-
/// is still not found, any specified <see cref="ReadResourceHandler"/> will be invoked as a fallback.
95
+
/// <para>
96
+
/// Resources specified via <see cref="ResourceCollection"/> augment the <see cref="ListResourcesHandler"/>, <see cref="ListResourceTemplatesHandler"/>
97
+
/// and <see cref="ReadResourceHandler"/> handlers, if provided. Resources with template expressions in their URI templates are considered resource templates
98
+
/// and are listed via ListResourceTemplate, whereas resources without template parameters are considered static resources and are listed with ListResources.
99
+
/// </para>
100
+
/// <para>
101
+
/// ReadResource requests will first check the <see cref="ResourceCollection"/> for the exact resource being requested. If no match is found, they'll proceed to
102
+
/// try to match the resource against each resource template in <see cref="ResourceCollection"/>. If no match is still found, the request will fall back to
103
+
/// any handler registered for <see cref="ReadResourceHandler"/>.
0 commit comments