INNER CODE UNIT · TypeScript

removeAnsiCodes

cyproxio/mcp-for-security · cero/src/index.ts:86

function removeAnsiCodes(input: string): string {
    return input.replace(/\x1B\[[0-9;]*m/g, '');
}


// Start the server
async function main() {
    const transport = new StdioServerTransport();
    await server.connect(transport);
    console.error("cero MCP Server running on stdio");
}

main().catch((error) => {
    console.error("Fatal error in main():", error);
    process.exit(1);
});

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…