Skip to main content
Glama
test-new-tools.mjsโ€ข1.82 kB
#!/usr/bin/env node import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; import { existsSync } from 'fs'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); async function testNewTools() { console.log('๐Ÿงช Testing new MCP tools...\n'); // Check if documentation files exist const svelteDocsPath = join(__dirname, 'content', 'docs', 'svelte-sveltekit-full.txt'); const tailwindDocsPath = join(__dirname, 'content', 'docs', 'tailwind-docs-full.txt'); console.log('๐Ÿ“ Checking documentation files:'); console.log(` Svelte docs: ${existsSync(svelteDocsPath) ? 'โœ… EXISTS' : 'โŒ MISSING'}`); console.log(` Tailwind docs: ${existsSync(tailwindDocsPath) ? 'โœ… EXISTS' : 'โŒ MISSING'}`); // Check if build exists const buildPath = join(__dirname, '.smithery', 'index.cjs'); console.log(`\n๐Ÿ”จ Build file: ${existsSync(buildPath) ? 'โœ… EXISTS' : 'โŒ MISSING'}`); if (existsSync(buildPath)) { const stats = await import('fs/promises').then(fs => fs.stat(buildPath)); console.log(` Size: ${(stats.size / 1024 / 1024).toFixed(2)} MB`); console.log(` Modified: ${stats.mtime.toISOString()}`); } // Verify tools in build const buildContent = await import('fs/promises').then(fs => fs.readFile(buildPath, 'utf-8')); const tools = [ 'get_svelte_full_docs', 'get_tailwind_full_docs', 'search_svelte_docs', 'search_tailwind_docs' ]; console.log('\n๐Ÿ”ง New tools in build:'); for (const tool of tools) { const found = buildContent.includes(`"${tool}"`); console.log(` ${tool}: ${found ? 'โœ… FOUND' : 'โŒ MISSING'}`); } console.log('\nโœ… All checks passed!'); } testNewTools().catch(err => { console.error('โŒ Test failed:', err.message); process.exit(1); });

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/CaullenOmdahl/Tailwind-Svelte-Assistant'

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