Skip to content

Commit a3b987f

Browse files
committed
Address feedback
1 parent a28e2c7 commit a3b987f

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/ModelContextProtocol/Server/McpServerPrompt.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ namespace ModelContextProtocol.Server;
1818
/// to <see cref="Prompt"/>, which provides the protocol representation of a prompt, and <see cref="McpClientPrompt"/>, which
1919
/// provides a client-side representation of a prompt). Instances of <see cref="McpServerPrompt"/> can be added into a
2020
/// <see cref="IServiceCollection"/> to be picked up automatically when <see cref="McpServerFactory"/> is used to create
21-
/// an <see cref="IMcpServer"/>, or added into a <see cref="McpServerPrimitiveCollection{McpServerPrompt}"/> to be used as
22-
/// a <see cref="PromptsCapability.PromptCollection"/>.
21+
/// an <see cref="IMcpServer"/>, or added into a <see cref="McpServerPrimitiveCollection{McpServerPrompt}"/>.
2322
/// </para>
2423
/// <para>
2524
/// Most commonly, <see cref="McpServerPrompt"/> instances are created using the static <see cref="M:McpServerPrompt.Create"/> methods.
@@ -67,7 +66,8 @@ namespace ModelContextProtocol.Server;
6766
/// <description>
6867
/// When the <see cref="McpServerPrompt"/> is constructed, it may be passed an <see cref="IServiceProvider"/> via
6968
/// <see cref="McpServerPromptCreateOptions.Services"/>. Any parameter that can be satisfied by that <see cref="IServiceProvider"/>
70-
/// will be resolved from the <see cref="IServiceProvider"/> provided to <see cref="GetAsync"/> rather than from the argument collection.
69+
/// according to <see cref="IServiceProviderIsService"/> will be resolved from the <see cref="IServiceProvider"/> provided to
70+
/// <see cref="GetAsync"/> rather than from the argument collection.
7171
/// </description>
7272
/// </item>
7373
/// <item>

src/ModelContextProtocol/Server/McpServerPromptAttribute.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ namespace ModelContextProtocol.Server;
5555
/// <description>
5656
/// When the <see cref="McpServerPrompt"/> is constructed, it may be passed an <see cref="IServiceProvider"/> via
5757
/// <see cref="McpServerPromptCreateOptions.Services"/>. Any parameter that can be satisfied by that <see cref="IServiceProvider"/>
58-
/// will be resolved from the <see cref="IServiceProvider"/> provided to the prompt invocation rather than from the argument collection.
58+
/// according to <see cref="IServiceProviderIsService"/> will be resolved from the <see cref="IServiceProvider"/> provided to the
59+
/// prompt invocation rather than from the argument collection.
5960
/// </description>
6061
/// </item>
6162
/// <item>

src/ModelContextProtocol/Server/McpServerTool.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ namespace ModelContextProtocol.Server;
1919
/// to <see cref="Tool"/>, which provides the protocol representation of a tool, and <see cref="McpClientTool"/>, which
2020
/// provides a client-side representation of a tool). Instances of <see cref="McpServerTool"/> can be added into a
2121
/// <see cref="IServiceCollection"/> to be picked up automatically when <see cref="McpServerFactory"/> is used to create
22-
/// an <see cref="IMcpServer"/>, or added into a <see cref="McpServerPrimitiveCollection{McpServerTool}"/> to be used as
23-
/// a <see cref="ToolsCapability.ToolCollection"/>.
22+
/// an <see cref="IMcpServer"/>, or added into a <see cref="McpServerPrimitiveCollection{McpServerTool}"/>.
2423
/// </para>
2524
/// <para>
2625
/// Most commonly, <see cref="McpServerTool"/> instances are created using the static <see cref="M:McpServerTool.Create"/> methods.
@@ -70,8 +69,8 @@ namespace ModelContextProtocol.Server;
7069
/// <description>
7170
/// When the <see cref="McpServerTool"/> is constructed, it may be passed an <see cref="IServiceProvider"/> via
7271
/// <see cref="McpServerToolCreateOptions.Services"/>. Any parameter that can be satisfied by that <see cref="IServiceProvider"/>
73-
/// will not be included in the generated JSON schema and will be resolved from the <see cref="IServiceProvider"/> provided to
74-
/// <see cref="InvokeAsync"/> rather than from the argument collection.
72+
/// according to <see cref="IServiceProviderIsService"/> will not be included in the generated JSON schema and will be resolved
73+
/// from the <see cref="IServiceProvider"/> provided to <see cref="InvokeAsync"/> rather than from the argument collection.
7574
/// </description>
7675
/// </item>
7776
/// <item>

src/ModelContextProtocol/Server/McpServerToolAttribute.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ namespace ModelContextProtocol.Server;
5858
/// <description>
5959
/// When the <see cref="McpServerTool"/> is constructed, it may be passed an <see cref="IServiceProvider"/> via
6060
/// <see cref="McpServerToolCreateOptions.Services"/>. Any parameter that can be satisfied by that <see cref="IServiceProvider"/>
61-
/// will not be included in the generated JSON schema and will be resolved from the <see cref="IServiceProvider"/> provided to
62-
/// when the tool is invoked rather than from the argument collection.
61+
/// according to <see cref="IServiceProviderIsService"/> will not be included in the generated JSON schema and will be resolved
62+
/// from the <see cref="IServiceProvider"/> provided to when the tool is invoked rather than from the argument collection.
6363
/// </description>
6464
/// </item>
6565
/// <item>

0 commit comments

Comments
 (0)