Skip to main content
Glama

test-1

by zhendi
index.ts562 B
#!/usr/bin/env node import { main } from './main'; import { config, log } from './utils/helpers'; // Handle process events process.on('unhandledRejection', (error) => { log('Unhandled Rejection:', error); }); process.on('uncaughtException', (error) => { log('Uncaught Exception:', error); }); const [apiKey] = process.argv.slice(2); if (!apiKey && !process.env.TINYPNG_API_KEY) { throw new Error('Missing API key. Set TINYPNG_API_KEY environment variable or pass it as an argument.'); } config.apiKey = apiKey || process.env.TINYPNG_API_KEY; main();

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/zhendi/tinypng-mcp-server'

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