#!/bin/bash
# Extract name and version from package.json using jq
NAME=$(jq -r '.name' package.json)
VERSION=$(jq -r '.version' package.json)
# Deploy with wrangler using the extracted values as binding variables
echo "Deploying MCP server $NAME version $VERSION"
wrangler deploy \
--var MCP_SERVER_NAME:"$NAME" \
--var MCP_SERVER_VERSION:"$VERSION" \
"$@"
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cloudflare/mcp-server-cloudflare'
If you have feedback or need assistance with the MCP directory API, please join our Discord server