okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
fcb0c2d0e
main
1/** The one rule for the name of a tool server. A copy of server/mcp-names.mjs (tests/mcp-rows.test.mjs checks that they agree). */ 2export const MCP_NAME_MAX = 32 ; 3export const MCP_NAME_RE = / ^[A-Za-z0-9_-]{1,32}$ / ; 4export const validMcpName = ( name :string ) => MCP_NAME_RE . test ( name ); 5export const MCP_NAME_HELP = 'Use a simple server name of up to 32 characters: letters, numbers, hyphens or underscores.' ;