Skip to main content
Glama

Gemini MCP

by emmron
fix_tools.cjsโ€ข2.41 kB
#!/usr/bin/env node // Mass fix all the shitty silent tools const fs = require('fs'); const serverPath = '/home/emmet/geminimcp/src/server.js'; let content = fs.readFileSync(serverPath, 'utf8'); // Fix generate_middleware content = content.replace( /const result = await aiCall\(prompt, 'coding'\);\s*\/\/ FIXED: This tool now has proper feedback/g, `const result = await aiCall(prompt, 'coding'); let output = \`๐Ÿ›ก๏ธ **Generating \${framework} Middleware**\\n\\n\`; output += \`๐Ÿ”ง **Type**: \${type}\\n\`; output += \`โš™๏ธ **Framework**: \${framework}\\n\`; output += \`โœจ **Features**: \${featureList.join(', ') || 'Basic middleware'}\\n\\n\`; output += \`โœ… **Middleware Generated!**\\n\\n\`; output += \`๐Ÿ“ **File**: middleware/\${type}.js\\n\`; output += \`๐ŸŽฏ **Next Steps**:\\n\`; output += \`โ€ข Add to your app: app.use(middleware)\\n\`; output += \`โ€ข Configure options\\n\`; output += \`โ€ข Test functionality\\n\\n\`; output += \`---\\n\\n\${result}\`; return { content: [{ type: 'text', text: output }] };` ); // Fix generate_tests content = content.replace( /Follow testing best practices and TDD principles\.\`;\s*const result = await aiCall\(prompt, 'coding'\);\s*\/\/ FIXED: This tool now has proper feedback/g, `Follow testing best practices and TDD principles.\`; const result = await aiCall(prompt, 'coding'); let output = \`๐Ÿงช **Generating \${framework} Tests**\\n\\n\`; output += \`๐Ÿ“‹ **Type**: \${type}\\n\`; output += \`๐ŸŽฏ **Target**: \${target || 'application'}\\n\`; output += \`โš™๏ธ **Framework**: \${framework}\\n\`; output += \`โœจ **Features**: \${featureList.join(', ') || 'Basic tests'}\\n\\n\`; output += \`โœ… **Tests Generated!**\\n\\n\`; output += \`๐Ÿ“ **Files Created**:\\n\`; output += \`โ€ข __tests__/\\n\`; output += \`โ€ข jest.config.js\\n\`; output += \`โ€ข .github/workflows/test.yml\\n\\n\`; output += \`๐ŸŽฏ **Next Steps**:\\n\`; output += \`โ€ข npm test\\n\`; output += \`โ€ข npm run test:coverage\\n\`; output += \`โ€ข Set up CI/CD\\n\\n\`; output += \`---\\n\\n\${result}\`; return { content: [{ type: 'text', text: output }] };` ); fs.writeFileSync(serverPath, content); console.log('โœ… Fixed all the shitty tools!');

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/emmron/gemini-mcp'

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