Skip to content

Commit b8bd283

Browse files
committed
Fix private key extraction to get 32-byte seed for MCP publisher
1 parent af1ffc3 commit b8bd283

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ jobs:
5959
6060
- name: Login to MCP Registry (DNS auth)
6161
run: |
62-
# Convert PEM private key to hex format
63-
echo "${{ secrets.MCP_PRIVATE_KEY }}" | openssl pkey -outform DER | xxd -p -c 256 > private_key_hex.txt
64-
PRIVATE_KEY_HEX=$(cat private_key_hex.txt)
62+
# Extract 32-byte private key seed from PEM format
63+
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)
6565
./mcp-publisher login dns --domain pipeboard.co --private-key "$PRIVATE_KEY_HEX"
66-
rm -f private_key_hex.txt
66+
rm -f temp_key.pem
6767
6868
- name: Publish to MCP Registry
6969
run: ./mcp-publisher publish

0 commit comments

Comments
 (0)