Skip to main content
Glama
pinax-network

The Graph Token API MCP

logger.ts655 B
import { Logger, type ILogObj } from "tslog"; import { APP_VERSION, config } from "./config.js"; class TsLogger extends Logger<ILogObj> { constructor() { super(); this.settings.minLevel = 5; this.settings.name = APP_VERSION; } public enable(type: "pretty" | "json" = "pretty") { this.settings.type = type; this.settings.minLevel = 0; this.info("Enabled logger"); } public disable() { this.settings.type = "hidden"; this.info("Disabled logger"); } } export const logger = new TsLogger(); if (config.verbose) logger.enable(config.prettyLogging ? "pretty" : "json");

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/pinax-network/mcp-token-api'

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