Skip to main content
Glama

Token Saver MCP

by jerry426
count-tools.tsβ€’1.09 kB
#!/usr/bin/env tsx /** * Counts tools in the new modular structure */ import { glob } from 'glob' async function countTools() { const categories = { lsp: 0, cdp: 0, helper: 0, system: 0, } // Count tools in each directory const lspFiles = glob.sync('src/mcp/tools/lsp/*.ts') const cdpFiles = glob.sync('src/mcp/tools/cdp/*.ts') const helperFiles = glob.sync('src/mcp/tools/helper/*.ts') const systemFiles = glob.sync('src/mcp/tools/system/*.ts') categories.lsp = lspFiles.length categories.cdp = cdpFiles.length categories.helper = helperFiles.length categories.system = systemFiles.length const total = categories.lsp + categories.cdp + categories.helper + categories.system console.log('πŸ“Š Tool Count Summary:') console.log(` - LSP: ${categories.lsp} tools`) console.log(` - CDP: ${categories.cdp} tools`) console.log(` - Helper: ${categories.helper} tools`) console.log(` - System: ${categories.system} tools`) console.log(` Total: ${total} tools`) return { categories, total } } countTools().catch(console.error)

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/jerry426/token-saver-mcp'

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