Skip to main content
Glama

supOS MCP Server

by FREEZONEX
import fs from "fs"; import path from "path"; export function createFilePath( filedir: string = ".cache", filename: string = "all_topic_realdata.json" ) { // 获取项目根路径 const rootPath = process.cwd(); // 获取 __dirname // const __filename = fileURLToPath(import.meta.url); // const __dirname = path.dirname(__filename); // 创建缓存目录 const filePath = path.resolve(rootPath, filedir, filename); // const fileUri = pathToFileURL(filePath).href; const dirPath = path.dirname(filePath); // 检查目录是否存在,如果不存在则创建 if (!fs.existsSync(dirPath)) { fs.mkdirSync(dirPath, { recursive: true }); } return filePath; } export function readFileSync(filePath: string, options: any) { try { return fs.readFileSync(filePath, options); } catch (err) { return `读取文件时出错: ${err}`; } }

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/FREEZONEX/mcp-server-supos'

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