Skip to main content
Glama

NodeJS API Docs MCP Server

by lirantal
logger.ts598 B
import { pino } from 'pino' import type { Logger } from 'pino' import * as path from 'path' import * as os from 'os' // Re-export pino types for use in other modules export type { Logger } from 'pino' const logFilePath = path.join(os.tmpdir(), 'mcp-server-nodejs-docs.log') export function initLogger (): Logger { const logLevel = process.argv.includes('--debug') ? 'debug' : 'info' const logger = pino( { level: logLevel }, pino.destination(logFilePath) ) logger.info({ msg: `Logger initialized with level: ${logLevel}. Logging to: ${logFilePath}` }) return logger }

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/lirantal/mcp-server-nodejs-api-docs'

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