Skip to content

Commit 4e9be47

Browse files
committed
docs: Simplify publisher CLI installation instructions
- Use uname to auto-detect platform for one-line install on macOS/Linux - Use PowerShell platform detection for Windows - Remove unnecessary chmod +x (permissions preserved in tar) - Move build-from-source option to collapsible details section - Add WSL to supported platforms
1 parent da2965f commit 4e9be47

File tree

1 file changed

+12
-29
lines changed

1 file changed

+12
-29
lines changed

docs/guides/publishing/publish-server.md

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -17,42 +17,23 @@ By the end of this tutorial, you'll have:
1717

1818
## Step 1: Install the Publisher CLI
1919

20-
You can either download a pre-built binary or build from source.
21-
22-
### Option A: Download Pre-built Binary (Recommended)
23-
24-
Download the latest release for your platform:
20+
**macOS/Linux/WSL:**
2521

2622
```bash
27-
# macOS Apple Silicon (M1/M2/M3)
28-
curl -L https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_darwin_arm64.tar.gz | tar xz
29-
30-
# macOS Intel
31-
curl -L https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_darwin_amd64.tar.gz | tar xz
32-
33-
# Linux x86_64
34-
curl -L https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_linux_amd64.tar.gz | tar xz
35-
36-
# Linux ARM64
37-
curl -L https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_linux_arm64.tar.gz | tar xz
38-
39-
# Windows x86_64 (PowerShell)
40-
Invoke-WebRequest -Uri "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_windows_amd64.tar.gz" -OutFile "mcp-publisher.tar.gz"
41-
tar xf mcp-publisher.tar.gz
42-
43-
# Windows ARM64 (PowerShell)
44-
Invoke-WebRequest -Uri "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_windows_arm64.tar.gz" -OutFile "mcp-publisher.tar.gz"
45-
tar xf mcp-publisher.tar.gz
23+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz && sudo mv mcp-publisher /usr/local/bin/
24+
```
4625

47-
# Add to PATH (macOS/Linux)
48-
chmod +x mcp-publisher && sudo mv mcp-publisher /usr/local/bin/
26+
**Windows (PowerShell):**
4927

50-
# Add to PATH (Windows): Move mcp-publisher.exe to a directory in your PATH
28+
```powershell
29+
$arch = if ([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture -eq "Arm64") { "arm64" } else { "amd64" }; Invoke-WebRequest -Uri "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_windows_$arch.tar.gz" -OutFile "mcp-publisher.tar.gz"; tar xf mcp-publisher.tar.gz
30+
# Move mcp-publisher.exe to a directory in your PATH
5131
```
5232

53-
### Option B: Build from Source
33+
<details>
34+
<summary>Alternative: Build from Source</summary>
5435

55-
If you prefer to build from source (requires Go 1.24+):
36+
If you prefer to build from source (requires Git, Make and Go 1.24+):
5637

5738
```bash
5839
# Clone the registry repository
@@ -64,6 +45,8 @@ make publisher
6445
export PATH=$PATH:$(pwd)/bin
6546
```
6647

48+
</details>
49+
6750
## Step 2: Initialize Your server.json
6851

6952
Navigate to your server's directory and create a template:

0 commit comments

Comments
 (0)