Skip to main content
Glama
fileDescriptorMethod.js431 B
import * as fs from 'graceful-fs'; export function asyncFileDescriptorMethod ( methodName ) { return function () { let args = []; let i = arguments.length; while ( i-- ) { args[i] = arguments[i]; } return new Promise( ( fulfil, reject ) => { args.push( ( err, result ) => { if ( err ) { reject( err ); } else { fulfil( result ); } }); fs[ methodName ].apply( fs, args ); }); }; }

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/MatheusgVentura/Project-One'

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