/**
* Converts the first character of a word to upper case.
*/
export function capitalize<T extends string>(self: T): Capitalize<T> {
if (self.length === 0) return self as Capitalize<T>
return (self[0].toUpperCase() + self.slice(1)) as Capitalize<T>
}
/**
* Converts the first character of a word to lower case.
*/
export function uncapitalize<T extends string>(self: T): Uncapitalize<T> {
return (self.substring(0, 1).toLowerCase() + self.substring(1)) as Uncapitalize<T>
}
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/prisma/prisma'
If you have feedback or need assistance with the MCP directory API, please join our Discord server