|
7 | 7 | version: |
8 | 8 | description: "Version to publish (must already exist on PyPI and Docker Hub)" |
9 | 9 | required: true |
10 | | - default: "1.1.1" |
| 10 | + default: "1.2.0" |
11 | 11 |
|
12 | 12 | # Security: Explicit permissions following principle of least privilege |
13 | 13 | permissions: |
@@ -116,44 +116,39 @@ jobs: |
116 | 116 | exit 1 |
117 | 117 | fi |
118 | 118 |
|
119 | | - - name: Install MCP Publisher CLI |
| 119 | + - name: Install MCP Publisher CLI v1.2.3 |
120 | 120 | run: | |
121 | | - echo "Installing MCP Publisher CLI..." |
122 | | - curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_linux_amd64.tar.gz" | tar xz |
| 121 | + echo "Installing MCP Publisher CLI v1.2.3..." |
| 122 | + curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.2.3/mcp-publisher_1.2.3_linux_amd64.tar.gz" | tar xz |
123 | 123 | chmod +x mcp-publisher |
124 | 124 | sudo mv mcp-publisher /usr/local/bin/ |
125 | | - mcp-publisher --version || echo "MCP Publisher installed successfully" |
| 125 | + echo "Installed version:" |
| 126 | + mcp-publisher --version |
126 | 127 |
|
127 | 128 | - name: Publish to MCP Registry |
128 | 129 | env: |
129 | 130 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
130 | | - ACTIONS_ID_TOKEN_REQUEST_URL: ${{ env.ACTIONS_ID_TOKEN_REQUEST_URL }} |
131 | | - ACTIONS_ID_TOKEN_REQUEST_TOKEN: ${{ env.ACTIONS_ID_TOKEN_REQUEST_TOKEN }} |
132 | 131 | run: | |
133 | | - echo "Publishing to MCP Registry using GitHub OIDC authentication..." |
| 132 | + echo "Publishing to MCP Registry..." |
134 | 133 | echo "Server: io.github.neverinfamous/postgres-mcp-server" |
135 | 134 | echo "Version: ${{ steps.version.outputs.VERSION }}" |
136 | 135 | |
137 | | - # Attempt GitHub login first |
138 | | - echo "Authenticating with GitHub..." |
139 | | - if echo "$GITHUB_TOKEN" | mcp-publisher login github --token-stdin; then |
140 | | - echo "✅ GitHub authentication successful" |
141 | | - else |
142 | | - echo "⚠️ GitHub login failed, trying direct publish with OIDC..." |
143 | | - fi |
144 | | - |
145 | | - # Publish using the configured authentication |
| 136 | + # MCP Publisher v1.2.3+ supports GitHub Actions OIDC automatically |
| 137 | + # when running in GitHub Actions with id-token: write permission |
146 | 138 | if mcp-publisher publish --verbose; then |
147 | 139 | echo "✅ Successfully published to MCP Registry!" |
148 | 140 | else |
149 | | - echo "❌ Failed to publish to MCP Registry" |
150 | 141 | echo "" |
151 | | - echo "This might be due to:" |
152 | | - echo " 1. Registry authentication issues" |
153 | | - echo " 2. Package validation failures" |
154 | | - echo " 3. Version already exists in registry" |
155 | | - echo " 4. PyPI package description doesn't contain MCP name marker" |
156 | | - echo " 5. Docker image doesn't have MCP label" |
| 142 | + echo "❌ MCP Registry publish failed." |
| 143 | + echo "" |
| 144 | + echo "If this is a new server registration, you may need to:" |
| 145 | + echo " 1. Run 'mcp-publisher login github' locally first" |
| 146 | + echo " 2. Then run 'mcp-publisher publish --verbose' locally" |
| 147 | + echo "" |
| 148 | + echo "Common issues:" |
| 149 | + echo " - Registry authentication (try local publish first)" |
| 150 | + echo " - Package validation failures" |
| 151 | + echo " - Version already exists in registry" |
157 | 152 | exit 1 |
158 | 153 | fi |
159 | 154 |
|
|
0 commit comments