@aikidosec/mcp 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -0
  2. package/package.json +4 -1
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  "use strict";var _R=Object.create;var Oc=Object.defineProperty;var SR=Object.getOwnPropertyDescriptor;var ER=Object.getOwnPropertyNames;var kR=Object.getPrototypeOf,TR=Object.prototype.hasOwnProperty;var Y=(e,t)=>()=>(e&&(t=e(e=0)),t);var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ha=(e,t)=>{for(var r in t)Oc(e,r,{get:t[r],enumerable:!0})},A3=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ER(t))!TR.call(e,i)&&i!==r&&Oc(e,i,{get:()=>t[i],enumerable:!(a=SR(t,i))||a.enumerable});return e};var ke=(e,t,r)=>(r=e!=null?_R(kR(e)):{},A3(t||!e||!e.__esModule?Oc(r,"default",{value:e,enumerable:!0}):r,e)),Fn=e=>A3(Oc({},"__esModule",{value:!0}),e);var d0=g((xle,z3)=>{"use strict";var Mn=1e3,Ln=Mn*60,Bn=Ln*60,Ri=Bn*24,$R=Ri*7,PR=Ri*365.25;z3.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return CR(e);if(r==="number"&&isFinite(e))return t.long?zR(e):AR(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function CR(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),a=(t[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return r*PR;case"weeks":case"week":case"w":return r*$R;case"days":case"day":case"d":return r*Ri;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Bn;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ln;case"seconds":case"second":case"secs":case"sec":case"s":return r*Mn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function AR(e){var t=Math.abs(e);return t>=Ri?Math.round(e/Ri)+"d":t>=Bn?Math.round(e/Bn)+"h":t>=Ln?Math.round(e/Ln)+"m":t>=Mn?Math.round(e/Mn)+"s":e+"ms"}function zR(e){var t=Math.abs(e);return t>=Ri?Nc(e,t,Ri,"day"):t>=Bn?Nc(e,t,Bn,"hour"):t>=Ln?Nc(e,t,Ln,"minute"):t>=Mn?Nc(e,t,Mn,"second"):e+" ms"}function Nc(e,t,r,a){var i=t>=r*1.5;return Math.round(e/r)+" "+a+(i?"s":"")}});var l0=g((yle,O3)=>{"use strict";function OR(e){r.debug=r,r.default=r,r.coerce=p,r.disable=o,r.enable=i,r.enabled=s,r.humanize=d0(),r.destroy=c,Object.keys(e).forEach(d=>{r[d]=e[d]}),r.names=[],r.skips=[],r.formatters={};function t(d){let l=0;for(let u=0;u<d.length;u++)l=(l<<5)-l+d.charCodeAt(u),l|=0;return r.colors[Math.abs(l)%r.colors.length]}r.selectColor=t;function r(d){let l,u=null,f,m;function v(...h){if(!v.enabled)return;let x=v,b=Number(new Date),y=b-(l||b);x.diff=y,x.prev=l,x.curr=b,l=b,h[0]=r.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");let w=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,(z,A)=>{if(z==="%%")return"%";w++;let D=r.formatters[A];if(typeof D=="function"){let S=h[w];z=D.call(x,S),h.splice(w,1),w--}return z}),r.formatArgs.call(x,h),(x.log||r.log).apply(x,h)}return v.namespace=d,v.useColors=r.useColors(),v.color=r.selectColor(d),v.extend=a,v.destroy=r.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>u!==null?u:(f!==r.namespaces&&(f=r.namespaces,m=r.enabled(d)),m),set:h=>{u=h}}),typeof r.init=="function"&&r.init(v),v}function a(d,l){let u=r(this.namespace+(typeof l>"u"?":":l)+d);return u.log=this.log,u}function i(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let l=(typeof d=="string"?d:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let u of l)u[0]==="-"?r.skips.push(u.slice(1)):r.names.push(u)}function n(d,l){let u=0,f=0,m=-1,v=0;for(;u<d.length;)if(f<l.length&&(l[f]===d[u]||l[f]==="*"))l[f]==="*"?(m=f,v=u,f++):(u++,f++);else if(m!==-1)f=m+1,v++,u=v;else return!1;for(;f<l.length&&l[f]==="*";)f++;return f===l.length}function o(){let d=[...r.names,...r.skips.map(l=>"-"+l)].join(",");return r.enable(""),d}function s(d){for(let l of r.skips)if(n(d,l))return!1;for(let l of r.names)if(n(d,l))return!0;return!1}function p(d){return d instanceof Error?d.stack||d.message:d}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}O3.exports=OR});var N3=g((qt,Rc)=>{"use strict";qt.formatArgs=RR;qt.save=IR;qt.load=DR;qt.useColors=NR;qt.storage=jR();qt.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();qt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function NR(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function RR(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Rc.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,a=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(a=r))}),e.splice(a,0,t)}qt.log=console.debug||console.log||(()=>{});function IR(e){try{e?qt.storage.setItem("debug",e):qt.storage.removeItem("debug")}catch{}}function DR(){let e;try{e=qt.storage.getItem("debug")||qt.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function jR(){try{return localStorage}catch{}}Rc.exports=l0()(qt);var{formatters:qR}=Rc.exports;qR.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var I3=g((ble,R3)=>{"use strict";R3.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",a=t.indexOf(r+e),i=t.indexOf("--");return a!==-1&&(i===-1||a<i)}});var q3=g((wle,j3)=>{"use strict";var FR=require("os"),D3=require("tty"),tr=I3(),{env:it}=process,Wa;tr("no-color")||tr("no-colors")||tr("color=false")||tr("color=never")?Wa=0:(tr("color")||tr("colors")||tr("color=true")||tr("color=always"))&&(Wa=1);"FORCE_COLOR"in it&&(it.FORCE_COLOR==="true"?Wa=1:it.FORCE_COLOR==="false"?Wa=0:Wa=it.FORCE_COLOR.length===0?1:Math.min(parseInt(it.FORCE_COLOR,10),3));function u0(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function m0(e,t){if(Wa===0)return 0;if(tr("color=16m")||tr("color=full")||tr("color=truecolor"))return 3;if(tr("color=256"))return 2;if(e&&!t&&Wa===void 0)return 0;let r=Wa||0;if(it.TERM==="dumb")return r;if(process.platform==="win32"){let a=FR.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in it)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(a=>a in it)||it.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in it)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(it.TEAMCITY_VERSION)?1:0;if(it.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in it){let a=parseInt((it.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(it.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(it.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(it.TERM)||"COLORTERM"in it?1:r}function MR(e){let t=m0(e,e&&e.isTTY);return u0(t)}j3.exports={supportsColor:MR,stdout:u0(m0(!0,D3.isatty(1))),stderr:u0(m0(!0,D3.isatty(2)))}});var M3=g((nt,Dc)=>{"use strict";var LR=require("tty"),Ic=require("util");nt.init=GR;nt.log=UR;nt.formatArgs=VR;nt.save=HR;nt.load=WR;nt.useColors=BR;nt.destroy=Ic.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");nt.colors=[6,2,3,4,5,1];try{let e=q3();e&&(e.stderr||e).level>=2&&(nt.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}nt.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,n)=>n.toUpperCase()),a=process.env[t];return/^(yes|on|true|enabled)$/i.test(a)?a=!0:/^(no|off|false|disabled)$/i.test(a)?a=!1:a==="null"?a=null:a=Number(a),e[r]=a,e},{});function BR(){return"colors"in nt.inspectOpts?!!nt.inspectOpts.colors:LR.isatty(process.stderr.fd)}function VR(e){let{namespace:t,useColors:r}=this;if(r){let a=this.color,i="\x1B[3"+(a<8?a:"8;5;"+a),n=` ${i};1m${t} \x1B[0m`;e[0]=n+e[0].split(`
2
3
  `).join(`
3
4
  `+n),e.push(i+"m+"+Dc.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=ZR()+t+" "+e[0]}function ZR(){return nt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function UR(...e){return process.stderr.write(Ic.formatWithOptions(nt.inspectOpts,...e)+`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aikidosec/mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Aikido MCP server",
5
5
  "author": "Aikido Security",
6
6
  "license": "AGPL",
@@ -11,6 +11,9 @@
11
11
  "security"
12
12
  ],
13
13
  "main": "dist/index.js",
14
+ "bin": {
15
+ "aikido-mcp": "dist/index.js"
16
+ },
14
17
  "engines": {
15
18
  "node": ">=18.0.0"
16
19
  },