Files
Jacob HandsandGitHub 8163371186 chore: monorepo housekeeping (#157)
* chore: add --cache flag to fix:format prettier script

* chore: add update-deps script

* This is now a monorepo and does not publish a package from the root

* chore: add Workers Builds to root README.md

* chore: update test-and-check.yml to use package.json script for syncpack lint

(for consistency)

* chore: add fix:deps script to package.json

This makes it more discoverable

* chore: remove pnpx from wrangler deploy script

This is redundant because turbo and pnpm already add the bundled
wrangler command to $PATH

* chore: remove publishConfig from typescript-config/package.json

This did nothing.

* chore: add --frozen-lockfile and --child-concurrency flags to pnpm install in CI

* fix: pass through GITHUB_ACTIONS env var into check:lint

This ensures eslint warnings cause CI to fail

* fix: remove unused imports and variables

Fixes eslint warnings
2025-05-12 17:45:46 -05:00

13 lines
362 B
Bash
Executable File

#!/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" \
"$@"