UNPKG

artillery-performance-mcp-server

Version:

MCP server for performance testing with Artillery.io

1 lines 2.07 kB
function a0_0x4d18(){const _0x274682=['853282pCAxjg','1.0.0','1638726JWOdQi','MCP\x20server\x20initialization\x20completed','Artillery\x20Performance\x20Testing','2951998LentfL','13918616jrUeHh','308gmIVeo','483336jdmrjH','../prompts/index.js','../resources/index.js','510963ECZKjW','1165ocotVE','info','Initializing\x20MCP\x20server\x20with\x20resources,\x20tools,\x20and\x20prompts'];a0_0x4d18=function(){return _0x274682;};return a0_0x4d18();}(function(_0x4e1605,_0x252179){const _0x47b37f=a0_0x3cc8,_0xa7f341=_0x4e1605();while(!![]){try{const _0x15245b=-parseInt(_0x47b37f(0x8c))/0x1+-parseInt(_0x47b37f(0x93))/0x2+parseInt(_0x47b37f(0x8f))/0x3+-parseInt(_0x47b37f(0x8b))/0x4*(parseInt(_0x47b37f(0x90))/0x5)+-parseInt(_0x47b37f(0x95))/0x6+-parseInt(_0x47b37f(0x98))/0x7+parseInt(_0x47b37f(0x8a))/0x8;if(_0x15245b===_0x252179)break;else _0xa7f341['push'](_0xa7f341['shift']());}catch(_0x2220c4){_0xa7f341['push'](_0xa7f341['shift']());}}}(a0_0x4d18,0x462a3));function a0_0x3cc8(_0x12223e,_0x2fcf69){const _0x4d1856=a0_0x4d18();return a0_0x3cc8=function(_0x3cc810,_0x369c8b){_0x3cc810=_0x3cc810-0x8a;let _0x4d1e51=_0x4d1856[_0x3cc810];return _0x4d1e51;},a0_0x3cc8(_0x12223e,_0x2fcf69);}import{McpServer}from'@modelcontextprotocol/sdk/server/mcp.js';import a0_0x216a4a from'../utils/logger.js';export function createMcpServer(){const _0x4a695a=a0_0x3cc8;a0_0x216a4a[_0x4a695a(0x91)]('Creating\x20MCP\x20server\x20instance');const _0x3be1a9=new McpServer({'name':_0x4a695a(0x97),'version':_0x4a695a(0x94),'description':'MCP\x20server\x20for\x20generating\x20and\x20running\x20Artillery\x20performance\x20tests'});return _0x3be1a9;}export async function initializeMcpServer(_0xa9d3dd){const _0x526dcd=a0_0x3cc8;a0_0x216a4a[_0x526dcd(0x91)](_0x526dcd(0x92));const {registerResources:_0xc3e413}=await import(_0x526dcd(0x8e));await _0xc3e413(_0xa9d3dd);const {registerTools:_0x3e37b4}=await import('../tools/index.js');await _0x3e37b4(_0xa9d3dd);const {registerPrompts:_0x52e7bc}=await import(_0x526dcd(0x8d));await _0x52e7bc(_0xa9d3dd),a0_0x216a4a['info'](_0x526dcd(0x96));}