We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/the-basilisk-ai/squad-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import fs from "fs";
import * as glob from "glob";
const files = glob.sync("./src/lib/openapi/squad/**/*.ts");
files.forEach(file => {
const content = fs.readFileSync(file, "utf8");
// Fix relative imports without extensions (both ./ and ../ paths)
const fixed = content.replace(
/(from\s+['"])(\.\.?\/[^'"]+)(['"])/g,
(_match, p1, p2, p3) => {
// Skip if already ends with .js or .json
if (p2.endsWith(".js") || p2.endsWith(".json")) return `${p1}${p2}${p3}`;
return `${p1}${p2}.js${p3}`;
},
);
fs.writeFileSync(file, fixed);
});