Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
/** Names OpenMausBot gives its own MCP servers; a custom server may not take one. */
export const RESERVED_MCP_NAMES: ReadonlySet<string> = new Set([
"ogb",
"computer",
"agents",
"composio",
"data",
"browser",
"email",
"device",
"phone",
"dweb",
"openmausbot_connectors",
"openmausbot_phone",
]);
/** A server name from any text: lowercase letters, numbers, `_` and `-`, starting with a letter, at most 32. */
export function slugMcpName(raw: string): string {
const slug = raw.trim().toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 32).replace(/-+$/, "");
return /^[a-z]/.test(slug) ? slug : slug ? `mcp-${slug}`.slice(0, 32).replace(/-+$/, "") : "";
}
/** What OpenMausBot names a server another tool calls `raw`; a name OpenMausBot keeps for itself gets an mcp- prefix. */
export function importedMcpServerName(raw: string): string {
const slug = slugMcpName(raw);
return RESERVED_MCP_NAMES.has(slug) ? `mcp-${slug}`.slice(0, 32) : slug;
}