From 974aaead674b6b62f7e6545c24033b1491b64997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=8E=E5=8B=87?= Date: Wed, 28 May 2025 09:50:55 +0800 Subject: [PATCH] Rename mcp.json to server.json --- .vscode/launch.json | 2 +- tools/publisher/README.md | 6 +++--- tools/publisher/main.go | 2 +- tools/publisher/{mcp.json => server.json} | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename tools/publisher/{mcp.json => server.json} (100%) diff --git a/.vscode/launch.json b/.vscode/launch.json index d16ff0595..aba777853 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -21,7 +21,7 @@ "program": "${workspaceFolder}/tools/publisher/main.go", "args": [ "-registry-url=http://localhost:8080", - "-mcp-file=${workspaceFolder}/tools/publisher/mcp.json", + "-mcp-file=${workspaceFolder}/tools/publisher/server.json", ], } ] diff --git a/tools/publisher/README.md b/tools/publisher/README.md index 4f0e23668..b87e6a26b 100644 --- a/tools/publisher/README.md +++ b/tools/publisher/README.md @@ -46,7 +46,7 @@ _NOTE_ : Authentication is made on behalf of a OAuth App which you must authoriz ## Example -1. Prepare your `mcp.json` file with your server details: +1. Prepare your `server.json` file with your server details: ```json { @@ -89,7 +89,7 @@ _NOTE_ : Authentication is made on behalf of a OAuth App which you must authoriz 2. Run the publisher tool: ```bash -./bin/mcp-publisher --registry-url "https://mcp-registry.example.com" --mcp-file "./mcp.json" +./bin/mcp-publisher --registry-url "https://mcp-registry.example.com" --mcp-file "./server.json" ``` 3. Follow the authentication instructions in the terminal if prompted. @@ -101,4 +101,4 @@ _NOTE_ : Authentication is made on behalf of a OAuth App which you must authoriz - The GitHub Client ID is automatically retrieved from the registry's health endpoint - The authentication token is saved in a file named `.mcpregistry_token` in the current directory - The tool requires an active internet connection to authenticate with GitHub and communicate with the registry -- Make sure the repository and package mentioned in your `mcp.json` file exist and are accessible +- Make sure the repository and package mentioned in your `server.json` file exist and are accessible diff --git a/tools/publisher/main.go b/tools/publisher/main.go index dcde22960..dd74aa6d3 100644 --- a/tools/publisher/main.go +++ b/tools/publisher/main.go @@ -308,7 +308,7 @@ func publishToRegistry(registryURL string, mcpData []byte, token string) error { var mcpDetails map[string]interface{} err := json.Unmarshal(mcpData, &mcpDetails) if err != nil { - return fmt.Errorf("error parsing mcp.json file: %w", err) + return fmt.Errorf("error parsing server.json file: %w", err) } // Create the publish request payload (without authentication) diff --git a/tools/publisher/mcp.json b/tools/publisher/server.json similarity index 100% rename from tools/publisher/mcp.json rename to tools/publisher/server.json