We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/deleonio/public-ui-kolibri'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import type { Generic } from 'adopted-style-sheets';
import type { WatchNumberOptions } from '../utils';
import { watchNumber } from '../utils';
export type MaxLengthPropType = number;
/**
* Defines the maximum length of the value.
*/
export type PropMaxLength = {
maxLength: MaxLengthPropType;
};
export const validateMaxLength = (component: Generic.Element.Component, value?: MaxLengthPropType, options: WatchNumberOptions = {}): void => {
watchNumber(component, '_maxLength', value, { min: 0, ...options });
};