Skip to main content
Glama

float-mcp

jest.resolver.jsβ€’578 B
const fs = require('fs'); const path = require('path'); module.exports = (request, options) => { // Handle relative imports ending with .js if ((request.startsWith('./') || request.startsWith('../')) && request.endsWith('.js')) { const tsRequest = request.replace(/\.js$/, '.ts'); const tsPath = path.resolve(options.basedir, tsRequest); // Check if the .ts file exists if (fs.existsSync(tsPath)) { return tsPath; } } // Use the default resolver for everything else return require.resolve(request, { paths: [options.basedir], }); };

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/asachs01/float-mcp'

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