Skip to main content
Glama
index.js585 B
'use strict' const path = require('path') const isWindows = require('is-windows') module.exports = isWindows() ? winResolve : path.resolve function winResolve (p) { if (arguments.length === 0) return path.resolve() if (typeof p !== 'string') { return path.resolve(p) } // c: => C: if (p[1] === ':') { const cc = p[0].charCodeAt() if (cc < 65 || cc > 90) { p = `${p[0].toUpperCase()}${p.substr(1)}` } } // On Windows path.resolve('C:') returns C:\Users\ // We resolve C: to C: if (p.endsWith(':')) { return p } return path.resolve(p) }

Latest Blog Posts

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/ajaystream/hubspot-mcp-custom'

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