Skip to content

Commit 07d353b

Browse files
authored
Update examples.md for more realism (#332)
## Summary - Updates all server.json examples to use `io.github` namespace instead of `com.github` - Fixes validator test case to use proper domain format - Aligns with standard reverse domain name convention for GitHub-hosted projects This change improves consistency across documentation examples and follows established naming conventions.
1 parent 218b0b4 commit 07d353b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/server-json/examples.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Suppose your MCP server application requires a `mcp start` CLI arguments to star
4949

5050
```json
5151
{
52-
"name": "com.github.joelverhagen/knapcode-samplemcpserver",
52+
"name": "io.github.joelverhagen/knapcode-samplemcpserver",
5353
"description": "Sample NuGet MCP server for a random number and random weather",
5454
"version_detail": {
5555
"version": "0.4.0-beta"
@@ -92,7 +92,7 @@ This will essentially instruct the MCP client to execute `dnx Knapcode.SampleMcp
9292
```json
9393
{
9494
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-07-09/server.schema.json",
95-
"name": "com.github.modelcontextprotocol/filesystem",
95+
"name": "io.github.modelcontextprotocol/filesystem",
9696
"description": "Node.js server implementing Model Context Protocol (MCP) for filesystem operations.",
9797
"status": "active",
9898
"repository": {
@@ -130,7 +130,7 @@ This will essentially instruct the MCP client to execute `dnx Knapcode.SampleMcp
130130
{
131131
"registry_type": "oci",
132132
"registry_base_url": "https://docker.io",
133-
"identifier": "mcp/filesystem:1.0.2",
133+
"identifier": "mcp/filesystem",
134134
"version": "1.0.2",
135135
"runtime_arguments": [
136136
{
@@ -224,7 +224,7 @@ This will essentially instruct the MCP client to execute `dnx Knapcode.SampleMcp
224224

225225
```json
226226
{
227-
"name": "com.github.example/weather-mcp",
227+
"name": "io.github.example/weather-mcp",
228228
"description": "Python MCP server for weather data access",
229229
"repository": {
230230
"url": "https://github.com/example/weather-mcp",
@@ -277,7 +277,7 @@ The `dnx` tool ships with the .NET 10 SDK, starting with Preview 6.
277277

278278
```json
279279
{
280-
"name": "com.github.joelverhagen/knapcode-samplemcpserver",
280+
"name": "io.github.joelverhagen/knapcode-samplemcpserver",
281281
"description": "Sample NuGet MCP server for a random number and random weather",
282282
"repository": {
283283
"url": "https://github.com/joelverhagen/Knapcode.SampleMcpServer",
@@ -324,7 +324,7 @@ The `dnx` tool ships with the .NET 10 SDK, starting with Preview 6.
324324

325325
```json
326326
{
327-
"name": "com.github.example/database-manager",
327+
"name": "io.github.example/database-manager",
328328
"description": "MCP server for database operations with support for multiple database types",
329329
"repository": {
330330
"url": "https://github.com/example/database-manager-mcp",
@@ -557,7 +557,7 @@ This example shows an MCPB (MCP Bundle) package that:
557557

558558
```json
559559
{
560-
"name": "com.github.example/old-weather",
560+
"name": "io.github.example/old-weather",
561561
"description": "Legacy weather server - DEPRECATED: Use weather-v2 instead for new projects",
562562
"status": "deprecated",
563563
"repository": {

internal/validators/validators_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ func TestValidate_ServerNameFormat(t *testing.T) {
395395
{
396396
name: "valid complex namespace",
397397
serverDetail: apiv0.ServerJSON{
398-
Name: "com.github.microsoft.azure/webapp-server",
398+
Name: "com.microsoft.azure.service/webapp-server",
399399
},
400400
expectError: false,
401401
},

0 commit comments

Comments
 (0)