We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/docdyhr/simplenote-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
name: Verify PyPI Token
on:
workflow_dispatch:
inputs:
fail_if_missing:
description: "Fail the workflow if the token is missing"
required: false
default: true
type: boolean
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Check secret presence
id: check
run: |
if [ -n "${PYPI_API_TOKEN}" ]; then
echo "✅ PYPI_API_TOKEN is set (length masked)"
echo "present=true" >> $GITHUB_OUTPUT
else
echo "❌ PYPI_API_TOKEN is NOT set"
echo "present=false" >> $GITHUB_OUTPUT
fi
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
- name: Fail if missing (optional)
if: ${{ steps.check.outputs.present != 'true' && inputs.fail_if_missing }}
run: |
echo "Token missing and fail_if_missing=true. Failing." >&2
exit 1
- name: Summary
run: |
if [ "${{ steps.check.outputs.present }}" = "true" ]; then
echo "PYPI_API_TOKEN present. Ready to enable publish in release workflow."
else
echo "PYPI_API_TOKEN absent. Add it in repository Settings > Secrets and rerun."