Skip to main content
Glama

MCP Server.exe

by shadowcz007
index.ts882 B
const fs = require('fs') import { formatLog, LogLevel } from '../../utils/console' interface TransportConfig { command: string args: string[] } interface Operation { type: string name?: string arguments?: any uri?: string } interface TaskConfig { schedule: string transport: TransportConfig operations: Operation[] notify: any } interface Config { tasks: TaskConfig[] } export function loadConfig (configPathOrStr: string): Config { const cronjob = configPathOrStr let cronjobJSON = null try { if (fs.existsSync(cronjob)) { cronjobJSON = JSON.parse(fs.readFileSync(cronjob, 'utf8')) } else { cronjobJSON = JSON.parse(cronjob) } return cronjobJSON } catch (error) { formatLog(LogLevel.ERROR, `读取或解析配置文件失败: ${error.message}`) } } export type { Config, TaskConfig, Operation, TransportConfig }

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/shadowcz007/mcp_server_exe'

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