Skip to content

Commit afca59d

Browse files
author
Mike Kistler
committed
Fix markdown link errors maybe?
1 parent 659b609 commit afca59d

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

docs/concepts/elicitation/elicitation.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To help distinguish multiple inputs, each input has a unique name.
2525

2626
The following example demonstrates how a server could request a boolean response from the user.
2727

28-
[!code-csharp[](samples/server/Tools/InteractiveTools.cs?name=snippet_GuessTheNumber)]
28+
[!code-csharp[](./samples/server/Tools/InteractiveTools.cs?name=snippet_GuessTheNumber)]
2929

3030
## Client Support for Elicitation
3131

@@ -34,7 +34,7 @@ Elicitation is an optional feature so clients declare their support for it in th
3434
[ElicitationHandler]: https://modelcontextprotocol.github.io/csharp-sdk/api/ModelContextProtocol.Protocol.ElicitationCapability.html#ModelContextProtocol_Protocol_ElicitationCapability_ElicitationHandler
3535
[McpClientOptions]: https://modelcontextprotocol.github.io/csharp-sdk/api/ModelContextProtocol.Client.McpClientOptions.html
3636

37-
[!code-csharp[](samples/client/Program.cs?name=snippet_McpInitialize)]
37+
[!code-csharp[](./samples/client/Program.cs?name=snippet_McpInitialize)]
3838

3939
The ElicitationHandler is an asynchronous method that will be called when the server requests additional information.
4040
The ElicitationHandler must request input from the user and return the data in a format that matches the requested schema.
@@ -43,7 +43,9 @@ This will be highly dependent on the client application and how it interacts wit
4343
If the user provides the requested information, the ElicitationHandler should return an [ElicitResult] with the action set to "accept" and the content containing the user's input.
4444
If the user does not provide the requested information, the ElicitationHandler should return an [ElicitResult] with the action set to "reject" and no content.
4545

46+
[ElicitResult]: https://modelcontextprotocol.github.io/csharp-sdk/api/ModelContextProtocol.Protocol.ElicitResult.html
47+
4648
Below is an example of how a console application might handle elicitation requests.
4749
Here's an example implementation:
4850

49-
[!code-csharp[](samples/client/Program.cs?name=snippet_ElicitationHandler)]
51+
[!code-csharp[](./samples/client/Program.cs?name=snippet_ElicitationHandler)]

docs/concepts/elicitation/samples/client/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
};
2929

3030
await using var mcpClient = await McpClientFactory.CreateAsync(clientTransport, options);
31-
// </snippet_McpClientUsage>
31+
// </snippet_McpInitialize>
3232

3333
var tools = await mcpClient.ListToolsAsync();
3434
foreach (var tool in tools)

0 commit comments

Comments
 (0)