UNPKG

artillery-performance-mcp-server

Version:

MCP server for performance testing with Artillery.io

1 lines 3.62 kB
(function(_0x3e4ed1,_0x4aaf95){var _0x4dae8a=a3_0x52ba,_0x30a0db=_0x3e4ed1();while(!![]){try{var _0x51b915=parseInt(_0x4dae8a(0xe5))/0x1*(parseInt(_0x4dae8a(0xf8))/0x2)+parseInt(_0x4dae8a(0xf0))/0x3+-parseInt(_0x4dae8a(0xe7))/0x4+-parseInt(_0x4dae8a(0xf9))/0x5+parseInt(_0x4dae8a(0xed))/0x6*(parseInt(_0x4dae8a(0xf1))/0x7)+parseInt(_0x4dae8a(0xe9))/0x8+parseInt(_0x4dae8a(0xee))/0x9*(-parseInt(_0x4dae8a(0xf3))/0xa);if(_0x51b915===_0x4aaf95)break;else _0x30a0db['push'](_0x30a0db['shift']());}catch(_0x1ac9a0){_0x30a0db['push'](_0x30a0db['shift']());}}}(a3_0x24c3,0x67128));import a3_0x373f6b from'../utils/logger.js';function a3_0x52ba(_0x31e448,_0x239da2){var _0x24c3a8=a3_0x24c3();return a3_0x52ba=function(_0x52bafe,_0x17184c){_0x52bafe=_0x52bafe-0xe5;var _0x3955b9=_0x24c3a8[_0x52bafe];return _0x3955b9;},a3_0x52ba(_0x31e448,_0x239da2);}export async function registerPrompts(_0x383568){var _0x4f1f41=a3_0x52ba;a3_0x373f6b[_0x4f1f41(0xf7)](_0x4f1f41(0xea)),_0x383568[_0x4f1f41(0xe6)]('generate-basic-http-test',_0x4f1f41(0xfb),()=>({'messages':[{'role':_0x4f1f41(0xfc),'content':{'type':_0x4f1f41(0xeb),'text':'I\x20need\x20to\x20create\x20a\x20basic\x20HTTP\x20performance\x20test\x20for\x20an\x20API\x20endpoint\x20with\x20Artillery.io.\x20Please\x20help\x20me\x20generate\x20a\x20test\x20configuration\x20for\x20a\x20typical\x20REST\x20API\x20with\x205\x20requests\x20per\x20second\x20for\x2060\x20seconds.'}}]})),_0x383568[_0x4f1f41(0xe6)](_0x4f1f41(0xf6),'Generate\x20a\x20complex\x20API\x20flow\x20performance\x20test\x20using\x20Artillery.io',()=>({'messages':[{'role':_0x4f1f41(0xfc),'content':{'type':_0x4f1f41(0xeb),'text':_0x4f1f41(0xef)}}]})),_0x383568[_0x4f1f41(0xe6)](_0x4f1f41(0xf5),_0x4f1f41(0xec),()=>({'messages':[{'role':_0x4f1f41(0xfc),'content':{'type':_0x4f1f41(0xeb),'text':'I\x20need\x20to\x20analyze\x20Artillery.io\x20test\x20results.\x20Please\x20help\x20me\x20understand\x20the\x20key\x20metrics,\x20identify\x20bottlenecks,\x20and\x20suggest\x20improvements\x20based\x20on\x20typical\x20performance\x20standards.'}}]})),_0x383568[_0x4f1f41(0xe6)](_0x4f1f41(0xe8),_0x4f1f41(0xfa),()=>({'messages':[{'role':_0x4f1f41(0xfc),'content':{'type':_0x4f1f41(0xeb),'text':_0x4f1f41(0xf2)}}]})),a3_0x373f6b[_0x4f1f41(0xf7)](_0x4f1f41(0xf4));}function a3_0x24c3(){var _0x53c205=['720795AttRDS','Create\x20a\x20comprehensive\x20load\x20testing\x20plan\x20using\x20Artillery.io','Generate\x20a\x20basic\x20HTTP\x20performance\x20test\x20using\x20Artillery.io','user','785698IviwWm','prompt','1969752Hnlhqy','create-load-test-plan','2891776sWNqdS','Registering\x20Artillery\x20prompts','text','Analyze\x20Artillery.io\x20performance\x20test\x20results','2238XepxXV','51732qkDBVr','I\x20need\x20to\x20create\x20a\x20complex\x20API\x20flow\x20performance\x20test\x20using\x20Artillery.io\x20that\x20simulates\x20a\x20sequence\x20of\x20API\x20calls\x20like\x20login,\x20fetch\x20data,\x20and\x20logout.\x20Please\x20help\x20me\x20set\x20up\x20a\x20test\x20that\x20maintains\x205\x20requests\x20per\x20second\x20for\x2060\x20seconds.','452076xiBWgC','5761WxjYZG','I\x20need\x20to\x20create\x20a\x20comprehensive\x20load\x20testing\x20plan\x20for\x20a\x20web\x20application.\x20Please\x20help\x20me\x20define\x20what\x20types\x20of\x20tests\x20to\x20run,\x20specific\x20scenarios\x20to\x20implement,\x20how\x20to\x20interpret\x20results,\x20and\x20how\x20to\x20schedule\x20the\x20tests\x20using\x20Artillery.io.','950qqpbMv','Artillery\x20prompts\x20registered\x20successfully','analyze-test-results','generate-api-flow-test','info','2zLrIQZ'];a3_0x24c3=function(){return _0x53c205;};return a3_0x24c3();}