#!/usr/bin/env bash
set -e
# Create NEAR keystore directory for the specified network
mkdir -p /root/.near-keystore/${NEAR_NETWORK}
# If required environment variables are present, set up the keystore
if [ ! -z "${NEAR_KEYSTOREDATA}" ] && [ ! -z "${NEAR_NETWORK}" ] && [ ! -z "${NEAR_ACCOUNT_ID}" ]; then
echo "${NEAR_KEYSTOREDATA}" | base64 -d > /root/.near-keystore/${NEAR_NETWORK}/${NEAR_ACCOUNT_ID}.json
echo "Keystore data written to /root/.near-keystore/${NEAR_NETWORK}/${NEAR_ACCOUNT_ID}.json"
fi
# Start the application
cd /app && exec bun run cli run --remote --port 3001
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/nearai/near-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server