Skip to main content
Glama
build.sh1.16 kB
#!/bin/bash # 微信公众号MCP项目构建脚本 # Build script for WeChat Official Account MCP project set -e # 遇到错误时退出 echo "🚀 开始构建微信公众号MCP项目..." echo "🚀 Starting WeChat Official Account MCP project build..." # 清理之前的构建 echo "🧹 清理构建目录..." rm -rf dist # 检查TypeScript配置 echo "🔍 检查TypeScript配置..." npm run check # 运行linting echo "🔍 运行代码检查..." echo "🔍 Running code checks..." echo "⚠️ 跳过lint检查以专注打包测试" echo "⚠️ Skipping lint check to focus on packaging test" # 构建项目 echo "📦 编译TypeScript代码..." npm run build:prod # 设置CLI可执行权限 echo "⚙️ 设置CLI可执行权限..." chmod +x dist/src/cli.js # 验证构建结果 echo "✅ 验证构建结果..." if [ -f "dist/src/cli.js" ] && [ -f "dist/src/index.js" ]; then echo "✅ 构建成功!" echo "📁 构建文件位置: ./dist/" echo "🎯 CLI入口: ./dist/src/cli.js" echo "📚 库入口: ./dist/src/index.js" else echo "❌ 构建失败!缺少必要文件" exit 1 fi echo "🎉 构建完成!"

Latest Blog Posts

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/xwang152-jack/wechat-official-account-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server