Skip to content

Commit 7b0bb40

Browse files
committed
Fix private key extraction using official MCP publisher method
1 parent 20c91ed commit 7b0bb40

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/publish-mcp.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ jobs:
5959
6060
- name: Login to MCP Registry (DNS auth)
6161
run: |
62-
# Extract 32-byte private key seed from PEM format
62+
# Extract private key using official MCP publisher method
6363
echo "${{ secrets.MCP_PRIVATE_KEY }}" > temp_key.pem
64-
PRIVATE_KEY_HEX=$(openssl pkey -in temp_key.pem -noout -text | awk '/priv:/{getline; gsub(/[^0-9a-f]/,""); print}' | head -c 64)
64+
PRIVATE_KEY_HEX=$(openssl pkey -in temp_key.pem -noout -text | grep -A3 "priv:" | tail -n +2 | tr -d ' :\n')
6565
./mcp-publisher login dns --domain pipeboard.co --private-key "$PRIVATE_KEY_HEX"
6666
rm -f temp_key.pem
6767

0 commit comments

Comments
 (0)