Skip to content

Commit 302e010

Browse files
committed
Add server implementation with icons and metadata
1 parent 699e35d commit 302e010

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

samples/EverythingServer/Program.cs

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,33 @@
2121
ConcurrentDictionary<string, ConcurrentDictionary<string, byte>> subscriptions = new();
2222

2323
builder.Services
24-
.AddMcpServer()
24+
.AddMcpServer(options =>
25+
{
26+
// Configure server implementation details with icons and website
27+
options.ServerInfo = new Implementation
28+
{
29+
Name = "Everything Server",
30+
Version = "1.0.0",
31+
Title = "MCP Everything Server",
32+
Description = "A comprehensive MCP server demonstrating tools, prompts, resources, sampling, and all MCP features",
33+
WebsiteUrl = "https://github.com/modelcontextprotocol/csharp-sdk",
34+
Icons = [
35+
new Icon
36+
{
37+
Source = "https://raw.githubusercontent.com/microsoft/fluentui-emoji/main/assets/Gear/Flat/gear_flat.svg",
38+
MimeType = "image/svg+xml",
39+
Sizes = ["any"],
40+
Theme = "light"
41+
},
42+
new Icon
43+
{
44+
Source = "https://raw.githubusercontent.com/microsoft/fluentui-emoji/main/assets/Gear/3D/gear_3d.png",
45+
MimeType = "image/png",
46+
Sizes = ["256x256"]
47+
}
48+
]
49+
};
50+
})
2551
.WithHttpTransport(options =>
2652
{
2753
// Add a RunSessionHandler to remove all subscriptions for the session when it ends

0 commit comments

Comments
 (0)