Skip to content

Commit d63a860

Browse files
authored
Fixing WithPromptsFromAssembly
Was looking for tools
1 parent 96fa96c commit d63a860

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ModelContextProtocol/Configuration/McpServerBuilderExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public static IMcpServerBuilder WithPrompts(this IMcpServerBuilder builder, para
176176
}
177177

178178
/// <summary>
179-
/// Adds types marked with the <see cref="McpServerToolTypeAttribute"/> attribute from the given assembly as prompts to the server.
179+
/// Adds types marked with the <see cref="McpServerPromptTypeAttribute"/> attribute from the given assembly as prompts to the server.
180180
/// </summary>
181181
/// <param name="builder">The builder instance.</param>
182182
/// <param name="promptAssembly">The assembly to load the types from. Null to get the current assembly</param>
@@ -190,7 +190,7 @@ public static IMcpServerBuilder WithPromptsFromAssembly(this IMcpServerBuilder b
190190

191191
return builder.WithPrompts(
192192
from t in promptAssembly.GetTypes()
193-
where t.GetCustomAttribute<McpServerToolTypeAttribute>() is not null
193+
where t.GetCustomAttribute<McpServerPromptTypeAttribute>() is not null
194194
select t);
195195
}
196196
#endregion

0 commit comments

Comments
 (0)