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.
This commit is contained in:
adam jones 2025-09-01 22:58:55 +01:00 • committed by GitHub
commit 07d353ba92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View file

@ -49,7 +49,7 @@ Suppose your MCP server application requires a `mcp start` CLI arguments to star
```json ```json
{ {
"name": "com.github.joelverhagen/knapcode-samplemcpserver", "name": "io.github.joelverhagen/knapcode-samplemcpserver",
"description": "Sample NuGet MCP server for a random number and random weather", "description": "Sample NuGet MCP server for a random number and random weather",
"version_detail": { "version_detail": {
"version": "0.4.0-beta" "version": "0.4.0-beta"
@ -92,7 +92,7 @@ This will essentially instruct the MCP client to execute `dnx Knapcode.SampleMcp
```json ```json
{ {
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-07-09/server.schema.json", "$schema": "https://static.modelcontextprotocol.io/schemas/2025-07-09/server.schema.json",
"name": "com.github.modelcontextprotocol/filesystem", "name": "io.github.modelcontextprotocol/filesystem",
"description": "Node.js server implementing Model Context Protocol (MCP) for filesystem operations.", "description": "Node.js server implementing Model Context Protocol (MCP) for filesystem operations.",
"status": "active", "status": "active",
"repository": { "repository": {
@ -130,7 +130,7 @@ This will essentially instruct the MCP client to execute `dnx Knapcode.SampleMcp
{ {
"registry_type": "oci", "registry_type": "oci",
"registry_base_url": "https://docker.io", "registry_base_url": "https://docker.io",
"identifier": "mcp/filesystem:1.0.2", "identifier": "mcp/filesystem",
"version": "1.0.2", "version": "1.0.2",
"runtime_arguments": [ "runtime_arguments": [
{ {
@ -224,7 +224,7 @@ This will essentially instruct the MCP client to execute `dnx Knapcode.SampleMcp
```json ```json
{ {
"name": "com.github.example/weather-mcp", "name": "io.github.example/weather-mcp",
"description": "Python MCP server for weather data access", "description": "Python MCP server for weather data access",
"repository": { "repository": {
"url": "https://github.com/example/weather-mcp", "url": "https://github.com/example/weather-mcp",
@ -277,7 +277,7 @@ The `dnx` tool ships with the .NET 10 SDK, starting with Preview 6.
```json ```json
{ {
"name": "com.github.joelverhagen/knapcode-samplemcpserver", "name": "io.github.joelverhagen/knapcode-samplemcpserver",
"description": "Sample NuGet MCP server for a random number and random weather", "description": "Sample NuGet MCP server for a random number and random weather",
"repository": { "repository": {
"url": "https://github.com/joelverhagen/Knapcode.SampleMcpServer", "url": "https://github.com/joelverhagen/Knapcode.SampleMcpServer",
@ -324,7 +324,7 @@ The `dnx` tool ships with the .NET 10 SDK, starting with Preview 6.
```json ```json
{ {
"name": "com.github.example/database-manager", "name": "io.github.example/database-manager",
"description": "MCP server for database operations with support for multiple database types", "description": "MCP server for database operations with support for multiple database types",
"repository": { "repository": {
"url": "https://github.com/example/database-manager-mcp", "url": "https://github.com/example/database-manager-mcp",
@ -557,7 +557,7 @@ This example shows an MCPB (MCP Bundle) package that:
```json ```json
{ {
"name": "com.github.example/old-weather", "name": "io.github.example/old-weather",
"description": "Legacy weather server - DEPRECATED: Use weather-v2 instead for new projects", "description": "Legacy weather server - DEPRECATED: Use weather-v2 instead for new projects",
"status": "deprecated", "status": "deprecated",
"repository": { "repository": {

View file

@ -395,7 +395,7 @@ func TestValidate_ServerNameFormat(t *testing.T) {
{ {
name: "valid complex namespace", name: "valid complex namespace",
serverDetail: apiv0.ServerJSON{ serverDetail: apiv0.ServerJSON{
Name: "com.github.microsoft.azure/webapp-server", Name: "com.microsoft.azure.service/webapp-server",
}, },
expectError: false, expectError: false,
}, },