Skip to main content
Glama
resolvePathAndOptions.js458 B
import { resolve } from 'path'; export default function resolvePathAndOptions ( args ) { let options; let pathargs; if ( typeof args[ args.length - 1 ] === 'object' ) { options = args[ args.length - 1 ]; let i = args.length - 1; pathargs = new Array( i ); while ( i-- ) { pathargs[i] = args[i]; } } else { options = {}; pathargs = args; } const resolvedPath = resolve.apply( null, pathargs ); return { options, resolvedPath }; }

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