Skip to main content
Glama
set-permissions.js467 B
import fs from 'fs'; import path from 'path'; import { fileURLToPath } from 'url'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const buildDir = path.resolve(__dirname, '../build'); const indexFile = path.join(buildDir, 'index.js'); try { // 添加执行权限 fs.chmodSync(indexFile, '755'); console.log('已成功设置 index.js 文件的执行权限'); } catch (error) { console.error('设置文件权限时出错:', error); }

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/overstarry/qweather-mcp'

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