Skip to main content
Glama

MCP Files

by OrionPotter
utilsDebug.tsโ€ข664 B
import { z } from 'zod' import env from '../env.js' import pkg from '../pkg.js' import { defineTool } from '../tools.js' import util from '../util.js' const utilsDebug = defineTool({ id: 'utils_debug', schema: z.object({}), description: util.trimLines(` Get debug information about available tools and environment. - ${pkg.name} version: ${pkg.version} `), isReadOnly: true, isEnabled: env.DEBUG, fromArgs: () => ({}), handler: (args, context) => { return { ...args, processEnv: process.env, argv: process.argv, env, context, version: pkg.version, CWD: util.CWD, REPO: util.REPO, } }, }) export default utilsDebug

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/OrionPotter/flesler-mcp-tools'

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