Skip to content

Commit 2b13474

Browse files
Fix broken link
1 parent fce0169 commit 2b13474

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.MD

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ The official C# SDK for the [Model Context Protocol](https://modelcontextprotoco
1010
The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). It enables secure integration between LLMs and various data sources and tools.
1111

1212
For more information about MCP:
13+
1314
- [Official Documentation](https://modelcontextprotocol.io/)
1415
- [Protocol Specification](https://spec.modelcontextprotocol.io/)
1516
- [GitHub Organization](https://github.com/modelcontextprotocol)
@@ -19,12 +20,13 @@ For more information about MCP:
1920
To get started writing a client, the `McpClientFactory.CreateAsync` method is used to instantiate and connect an `IMcpClient`
2021
to a server, with details about the client and server specified in `McpClientOptions` and `McpServerConfig` objects.
2122
Once you have an `IMcpClient`, you can interact with it, such as to enumerate all available tools and invoke tools.
23+
2224
```csharp
2325
McpClientOptions options = new()
2426
{
2527
ClientInfo = new() { Name = "TestClient", Version = "1.0.0" }
2628
};
27-
29+
2830
McpServerConfig config = new()
2931
{
3032
Id = "everything",
@@ -36,7 +38,7 @@ McpServerConfig config = new()
3638
["arguments"] = "-y @modelcontextprotocol/server-everything",
3739
}
3840
};
39-
41+
4042
var client = await McpClientFactory.CreateAsync(config, options);
4143

4244
// Print the list of tools available from the server.
@@ -55,11 +57,12 @@ var result = await client.CallToolAsync(
5557
Console.WriteLine(result.Content.First(c => c.Type == "text").Text);
5658
```
5759

58-
You can find samples demonstrating how to use ModelContextProtocol with an LLM SDK in the [samples](samples) directory, and also refer to the [IntegrationTests](test/ModelContextProtocol.IntegrationTests) project for more examples. Additional examples and documentation will be added as in the near future.
60+
You can find samples demonstrating how to use ModelContextProtocol with an LLM SDK in the [samples](samples) directory, and also refer to the [tests](tests/ModelContextProtocol.Tests) project for more examples. Additional examples and documentation will be added as in the near future.
5961

6062
Clients can connect to any MCP server, not just ones created using this library. The protocol is designed to be server-agnostic, so you can use this library to connect to any compliant server.
6163

6264
Tools can be exposed easily as `AIFunction` instances so that they are immediately usable with `IChatClient`s.
65+
6366
```csharp
6467
// Get available functions.
6568
IList<AIFunction> tools = await client.GetAIFunctionsAsync();
@@ -103,6 +106,7 @@ public static class EchoTool
103106
```
104107

105108
More control is also available, with fine-grained control over configuring the server and how it should handle client requests. For example:
109+
106110
```csharp
107111
using ModelContextProtocol.Protocol.Transport;
108112
using ModelContextProtocol.Protocol.Types;

0 commit comments

Comments
 (0)