@sentry/mcp-server 4.3.0 → 4.4.0
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.
- package/dist/sentry-mcp.cjs +1 -1
- package/package.json +1 -1
package/dist/sentry-mcp.cjs
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
`)+`
|
|
23
23
|
`,usesFlag:n=>n in t||n in i}}function*hWt(e,t,i){let{brief:r,fullDescription:n,hideRoute:o}=t,{headers:s}=i.text;yield i.ansiColor?`\x1B[4m${s.usage}\x1B[24m`:s.usage;for(let[d,h]of Object.entries(e))if(!o||!o[d]||i.includeHidden){let m=i.config.caseStyle==="convert-camel-to-kebab"?Mv(d):d;yield` ${h.formatUsageLine({...i,prefix:[...i.prefix,m]})}`}let p=i.prefix.join(" ");for(let d of KOe(i))yield` ${p} ${d}`;if(yield"",yield n??r,i.aliases&&i.aliases.length>0){let d=i.prefix.slice(0,-1).join(" ");yield"",yield i.ansiColor?`\x1B[4m${s.aliases}\x1B[24m`:s.aliases;for(let h of i.aliases)yield` ${d} ${h}`}yield"",yield i.ansiColor?`\x1B[4m${s.flags}\x1B[24m`:s.flags;for(let d of VOe({},{},i))yield` ${d}`;yield"",yield i.ansiColor?`\x1B[4m${s.commands}\x1B[24m`:s.commands;let l=Object.entries(e).filter(([d])=>!o||!o[d]||i.includeHidden).map(([d,h])=>({routeName:oU(d,i.config.caseStyle),brief:h.brief,hidden:o&&o[d]})),u=nU(l.map(d=>i.ansiColor?[d.hidden?`\x1B[2m${d.routeName}\x1B[22m`:`\x1B[1m${d.routeName}\x1B[32m`,d.hidden?`\x1B[2;3m${d.brief}\x1B[22;23m`:`\x1B[;;3m${d.brief}\x1B[;;;23m`]:[d.routeName,d.brief]),[" "]);for(let d of u)yield` ${d}`}function iX({routes:e,defaultCommand:t,docs:i,aliases:r}){if(Object.entries(e).length===0)throw new Kp("Route map must contain at least one route");let n=r??{},o=new Map;for(let[c,l]of Object.entries(n)){if(c in e)throw new Kp(`Cannot use "${c}" as an alias when a route with that name already exists`);let u=o.get(l)??[];o.set(l,[...u,c])}let s=t?e[t]:void 0;if(s&&s.kind===mE)throw new Kp(`Cannot use "${t}" as the default command because it is not a Command`);let p=c=>{if(c in n)return n[c];if(c in e)return c};return{kind:mE,get brief(){return i.brief},get fullDescription(){return i.fullDescription},formatUsageLine(c){let l=this.getAllEntries().filter(u=>!u.hidden).map(u=>u.name[c.config.caseStyle]);return`${c.prefix.join(" ")} ${l.join("|")} ...`},formatHelp:c=>[...hWt(e,i,c)].join(`
|
|
24
24
|
`)+`
|
|
25
|
-
`,getDefaultCommand:()=>s,getOtherAliasesForInput:(c,l)=>{if(t){if(c===t)return{original:[""],"convert-camel-to-kebab":[""]};if(c==="")return{original:[t],"convert-camel-to-kebab":[t]}}let u=XJ(c),d=p(c);if(!d&&l==="allow-kebab-for-camel"&&(d=p(u)),!d)return{original:[],"convert-camel-to-kebab":[]};let h=[d,...o.get(d)??[]].filter(m=>m!==c&&m!==u);return{original:h,"convert-camel-to-kebab":h.map(Mv)}},getRoutingTargetForInput:c=>{let l=c in n?n[c]:c;return e[l]},getAllEntries(){let c=i.hideRoute;return Object.entries(e).map(([l,u])=>({name:{original:l,"convert-camel-to-kebab":Mv(l)},target:u,aliases:o.get(l)??[],hidden:c?.[l]??!1}))}}}async function mWt(e,t,i){let r=await Y2t(e,t,i);i.process.exitCode??=r}var x2t,O2t,j2t,JJ,El,Kp,gE,Ua,Xy,fE,Qy,hE,Xg,sw,aw,UOe,U2t,W2t,$2t,sU,aU,eb,mE,bO,nm=_(()=>{v();x2t=e=>{switch(e.toLowerCase()){case"true":return!0;case"false":return!1}throw new SyntaxError(`Cannot convert ${e} to a boolean`)},O2t=new Set(["true","t","yes","y","on","1",""]),j2t=new Set(["false","f","no","n","off","0"]),JJ=e=>{let t=e.toLowerCase();if(O2t.has(t))return!0;if(j2t.has(t))return!1;throw new SyntaxError(`Cannot convert ${e} to a boolean`)};El={UnknownCommand:-5,InvalidArgument:-4,ContextLoadError:-3,CommandLoadError:-2,InternalError:-1,Success:0,CommandRunError:1};Kp=class extends Error{};gE=e=>{let t=Number(e);if(Number.isNaN(t))throw new SyntaxError(`Cannot convert ${e} to a number`);return t},Ua=class extends Kp{_brand};Xy=class extends Ua{input;corrections;aliasName;constructor(e,t,i){let r=`No flag registered for --${e}`;if(i)r+=` (aliased from -${i})`;else if(t.length>0){let n=QJ(t.map(o=>`--${o}`),{kind:"conjunctive",conjunction:"or",serialComma:!0});r+=`, did you mean ${n}?`}super(r),this.input=e,this.corrections=t,this.aliasName=i}},fE=class extends Ua{input;constructor(e){super(`No alias registered for -${e}`),this.input=e}};Qy=class extends Ua{externalFlagNameOrPlaceholder;input;exception;constructor(e,t,i){super(`Failed to parse "${t}" for ${e}: ${i instanceof Error?i.message:String(i)}`),this.externalFlagNameOrPlaceholder=e,this.input=t,this.exception=i}};hE=class extends Ua{externalFlagName;input;values;constructor(e,t,i,r){let n=`Expected "${t}" to be one of (${i.join("|")})`;if(r.length>0){let o=QJ(r.map(s=>`"${s}"`),{kind:"conjunctive",conjunction:"or",serialComma:!0});n+=`, did you mean ${o}?`}super(n),this.externalFlagName=e,this.input=t,this.values=i}},Xg=class extends Ua{externalFlagName;nextFlagName;constructor(e,t){let i=`Expected input for flag --${e}`;t&&(i+=` but encountered --${t} instead`),super(i),this.externalFlagName=e,this.nextFlagName=t}},sw=class extends Ua{expectedCount;input;constructor(e,t){super(`Too many arguments, expected ${e} but encountered "${t}"`),this.expectedCount=e,this.input=t}},aw=class extends Ua{placeholder;limit;constructor(e,t){let i;t?(i=`Expected at least ${t[0]} argument(s) for ${e}`,t[1]===0?i+=" but found none":i+=` but only found ${t[1]}`):i=`Expected argument for ${e}`,super(i),this.placeholder=e,this.limit=t}};UOe=/^-([a-z]+)$/i,U2t=/^--([a-z][a-z-.\d_]+)$/i;W2t=/^--([a-z][a-z-.\d_]+)=(.+)$/i,$2t=/^-([a-z])=(.+)$/i,sU=class extends Ua{externalFlagName;valueText;constructor(e,t){super(`Cannot negate flag --${e} and pass "${t}" as value`),this.externalFlagName=e,this.valueText=t}};aU=class extends Ua{externalFlagName;previousInput;input;constructor(e,t,i){super(`Too many arguments for --${e}, encountered "${i}" after "${t}"`),this.externalFlagName=e,this.previousInput=t,this.input=i}};eb={headers:{usage:"USAGE",aliases:"ALIASES",commands:"COMMANDS",flags:"FLAGS",arguments:"ARGUMENTS"},keywords:{default:"default =",separator:"separator ="},briefs:{help:"Print help information and exit",helpAll:"Print help information (including hidden commands/flags) and exit",version:"Print version information and exit",argumentEscapeSequence:"All subsequent inputs should be interpreted as arguments"},noCommandRegisteredForInput({input:e,corrections:t}){let i=`No command registered for \`${e}\``;if(t.length>0){let r=QJ(t,{kind:"conjunctive",conjunction:"or",serialComma:!0});return`${i}, did you mean ${r}?`}else return i},noTextAvailableForLocale({requestedLocale:e,defaultLocale:t}){return`Application does not support "${e}" locale, defaulting to "${t}"`},exceptionWhileParsingArguments(e){return e instanceof Ua?LOe(e,{}):`Unable to parse arguments, ${(this.formatException??rU)(e)}`},exceptionWhileLoadingCommandFunction(e){return`Unable to load command function, ${(this.formatException??rU)(e)}`},exceptionWhileLoadingCommandContext(e){return`Unable to load command context, ${(this.formatException??rU)(e)}`},exceptionWhileRunningCommand(e){return`Command failed, ${(this.formatException??rU)(e)}`},commandErrorResult(e){return e.message},currentVersionIsNotLatest({currentVersion:e,latestVersion:t,upgradeCommand:i}){return i?`Latest available version is ${t} (currently running ${e}), upgrade with "${i}"`:`Latest available version is ${t} (currently running ${e})`}};mE=Symbol("RouteMap"),bO=Symbol("Command");});function Qg(e){return e==="sentry.io"||e.endsWith(".sentry.io")}var _O=_(()=>{"use strict";v()});var pX={};Hi(pX,{CLI_VERSION:()=>zn,DEFAULT_SENTRY_HOST:()=>pw,DEFAULT_SENTRY_URL:()=>Yo,NODE_MODULES_DIRNAME:()=>SO,SENTRY_CLI_DSN:()=>wO,clearPersistedDefaultUrl:()=>pU,getCliEnvironment:()=>aX,getConfiguredSentryUrl:()=>ds,getUserAgent:()=>Ed,isPersistedDefaultUrlInEffect:()=>sX,markPersistedDefaultUrl:()=>oX,normalizeUrl:()=>Sa});function Sa(e){if(!e)return;let t=e.trim();if(t)return gWt.test(t)?t:`https://${t}`}function ds(){let e=Ot(),t=e.SENTRY_HOST?.trim()||e.SENTRY_URL?.trim();if(!t)return;let i=t.match(fWt)?.[1]?.toLowerCase(),r=Sa(t);try{if(i&&i!=="http"&&i!=="https")throw new TypeError("Unsupported URL scheme");let n=new URL(r);if(n.protocol!=="http:"&&n.protocol!=="https:"||!n.hostname||n.username||n.password)throw new TypeError("Invalid Sentry URL");return r}catch{throw new ko("SENTRY_HOST/SENTRY_URL is not a valid URL; use a credential-free HTTP(S) URL.")}}function oX(e){nX.set(Ot(),e)}function pU(){nX.delete(Ot())}function sX(){let e=Ot(),t=nX.get(e);return t!==void 0&&!e.SENTRY_HOST?.trim()&&e.SENTRY_URL?.trim()===t}function aX(e=zn){return e==="0.0.0-dev"?"development":e.includes("-dev.")?"nightly":"production"}function Ed(){let e=typeof process.versions.bun<"u"?`bun/${process.versions.bun}`:`node/${process.versions.node}`;return`sentry-cli/${zn} (${process.platform}-${process.arch}) ${e}`}var pw,Yo,SO,gWt,fWt,nX,zn,wO,Ln=_(()=>{"use strict";v();$r();Dt();pw="sentry.io",Yo=`https://${pw}`,SO="node_modules",gWt=/^https?:\/\//i,fWt=/^([a-z][a-z\d+.-]*):\/\//i;nX=new WeakMap;zn="4.3.0";wO="https://1188a86f3f8168f089450587b00bca66@o1.ingest.us.sentry.io/4510776311808000"});function JOe(e,t){return ZOe.run(e,t)}function ef(){return ZOe.getStore()??ds()??Yo}function TO(e){let t=ef();if(!Cc(t))return t;let i=new URL(t);return i.hostname=`${e}.${i.hostname}`,i.origin}function yE(){return Cc(ef())}function Cc(e){try{let t=new URL(e);return Qg(t.hostname)}catch{return!1}}function Ad(e){if(e==null)return;let t;typeof e=="string"?t=e:e instanceof URL?t=e.href:t=e.url;try{return new URL(t).origin}catch{return}}function vn(e,t){if(e)try{let i=t?new URL(e,t):new URL(e);return i.protocol!=="http:"&&i.protocol!=="https:"||!i.hostname||i.username||i.password?void 0:i.origin}catch{return}}function IO(e,t){if(e.startsWith("/")||yWt.test(e))try{let i=new URL(e,t),r=vn(i.href);return!r||i.search||i.hash?void 0:`${r}${i.pathname.replace(bWt,"")}`}catch{return}}function XOe(e){let t=Sa(e);return t?Ad(t):void 0}function cX(e,t){let i=yE()?`${TO(e)}/settings/`:`${ef()}/settings/${e}/`;return t?`${i}#${t}`:i}function cU(e){return yE()?`${TO(e)}/settings/seer/`:`${ef()}/settings/${e}/seer/`}function lX(e){return`${yE()?`${TO(e)}/settings/integrations/`:`${ef()}/settings/${e}/integrations/`}?category=source%20code%20management`}function EO(e,t){let i=yE()?`${TO(e)}/settings/billing/overview/`:`${ef()}/settings/${e}/billing/overview/`;return t?`${i}?product=${t}`:i}function uX(e,t){let i=t?`#open-seer-auto-reload-modal:${t}`:"#open-seer-auto-reload-modal";return`${EO(e)}${i}`}var YOe,yWt,bWt,ZOe,Ys=_(()=>{"use strict";v();YOe=require("node:async_hooks");_O();Ln();yWt=/^https?:\/\//i,bWt=/\/+$/,ZOe=new YOe.AsyncLocalStorage});var bE={};Hi(bE,{AbortError:()=>lU,ApiError:()=>ki,AuthError:()=>ur,COMMAND_LINE_BREAK_FIELD:()=>mX,COMMAND_NOT_FOUND_FIELD:()=>gX,CliError:()=>Hr,ConfigError:()=>ko,ContextError:()=>vs,DeviceFlowError:()=>Rd,EXIT:()=>fo,HOST_NOT_LOOPBACK_FIELD:()=>hX,HostScopeError:()=>Ds,MalformedAuthTokenError:()=>kd,OutputError:()=>Dc,PORT_HELD_BY_DAEMON_FIELD:()=>IWt,PORT_IN_USE_FIELD:()=>fX,RateLimitError:()=>AO,ResolutionError:()=>Yn,SEARCH_QUERY_HELP:()=>ije,SeerError:()=>xd,TimeoutError:()=>Od,UpgradeError:()=>nr,UpgradeTransportError:()=>tf,ValidationError:()=>St,VerifyFailedError:()=>kO,WizardExitError:()=>dX,buildValidationMessage:()=>vX,formatError:()=>om,getExitCode:()=>yX,isNetworkError:()=>RO,isSearchQueryParseError:()=>tje,isUserError:()=>xO,lookupKnownKey:()=>uU,projectsNotFoundError:()=>eje,signalExitCode:()=>_Wt,stringifyUnknown:()=>Mn,toSearchQueryError:()=>kWt,validationError:()=>dU,withAuthGuard:()=>rf});function _Wt(e){return 128+QOe.constants.signals[e]}function uU(e,t){return typeof t=="string"&&Object.hasOwn(e,t)?e[t]:void 0}function SWt(){return["Run from a directory with a Sentry DSN in source code or .env files","Set SENTRY_ORG and SENTRY_PROJECT (or SENTRY_DSN) environment variables",`Run '${Ve`org list`}' to find your organization slug`,`Run '${Ve`project list <org>/`}' to find project slugs`]}function wWt(e,t,i,r){let{note:n,isAutoDetect:o}=r??{},s=e.includes(" and "),p=s?"them":"it",c=o?[`Could not auto-detect ${e.toLowerCase()}.`,"",`Provide ${p} explicitly:`,` ${t}`]:[`${e} ${s?"are":"is"} required.`,"",`Specify ${p} using:`,` ${t}`];if(i.length>0){c.push("","Or:");for(let l of i)c.push(` - ${l}`)}return n&&c.push("",`Note: ${n}`),c.join(`
|
|
25
|
+
`,getDefaultCommand:()=>s,getOtherAliasesForInput:(c,l)=>{if(t){if(c===t)return{original:[""],"convert-camel-to-kebab":[""]};if(c==="")return{original:[t],"convert-camel-to-kebab":[t]}}let u=XJ(c),d=p(c);if(!d&&l==="allow-kebab-for-camel"&&(d=p(u)),!d)return{original:[],"convert-camel-to-kebab":[]};let h=[d,...o.get(d)??[]].filter(m=>m!==c&&m!==u);return{original:h,"convert-camel-to-kebab":h.map(Mv)}},getRoutingTargetForInput:c=>{let l=c in n?n[c]:c;return e[l]},getAllEntries(){let c=i.hideRoute;return Object.entries(e).map(([l,u])=>({name:{original:l,"convert-camel-to-kebab":Mv(l)},target:u,aliases:o.get(l)??[],hidden:c?.[l]??!1}))}}}async function mWt(e,t,i){let r=await Y2t(e,t,i);i.process.exitCode??=r}var x2t,O2t,j2t,JJ,El,Kp,gE,Ua,Xy,fE,Qy,hE,Xg,sw,aw,UOe,U2t,W2t,$2t,sU,aU,eb,mE,bO,nm=_(()=>{v();x2t=e=>{switch(e.toLowerCase()){case"true":return!0;case"false":return!1}throw new SyntaxError(`Cannot convert ${e} to a boolean`)},O2t=new Set(["true","t","yes","y","on","1",""]),j2t=new Set(["false","f","no","n","off","0"]),JJ=e=>{let t=e.toLowerCase();if(O2t.has(t))return!0;if(j2t.has(t))return!1;throw new SyntaxError(`Cannot convert ${e} to a boolean`)};El={UnknownCommand:-5,InvalidArgument:-4,ContextLoadError:-3,CommandLoadError:-2,InternalError:-1,Success:0,CommandRunError:1};Kp=class extends Error{};gE=e=>{let t=Number(e);if(Number.isNaN(t))throw new SyntaxError(`Cannot convert ${e} to a number`);return t},Ua=class extends Kp{_brand};Xy=class extends Ua{input;corrections;aliasName;constructor(e,t,i){let r=`No flag registered for --${e}`;if(i)r+=` (aliased from -${i})`;else if(t.length>0){let n=QJ(t.map(o=>`--${o}`),{kind:"conjunctive",conjunction:"or",serialComma:!0});r+=`, did you mean ${n}?`}super(r),this.input=e,this.corrections=t,this.aliasName=i}},fE=class extends Ua{input;constructor(e){super(`No alias registered for -${e}`),this.input=e}};Qy=class extends Ua{externalFlagNameOrPlaceholder;input;exception;constructor(e,t,i){super(`Failed to parse "${t}" for ${e}: ${i instanceof Error?i.message:String(i)}`),this.externalFlagNameOrPlaceholder=e,this.input=t,this.exception=i}};hE=class extends Ua{externalFlagName;input;values;constructor(e,t,i,r){let n=`Expected "${t}" to be one of (${i.join("|")})`;if(r.length>0){let o=QJ(r.map(s=>`"${s}"`),{kind:"conjunctive",conjunction:"or",serialComma:!0});n+=`, did you mean ${o}?`}super(n),this.externalFlagName=e,this.input=t,this.values=i}},Xg=class extends Ua{externalFlagName;nextFlagName;constructor(e,t){let i=`Expected input for flag --${e}`;t&&(i+=` but encountered --${t} instead`),super(i),this.externalFlagName=e,this.nextFlagName=t}},sw=class extends Ua{expectedCount;input;constructor(e,t){super(`Too many arguments, expected ${e} but encountered "${t}"`),this.expectedCount=e,this.input=t}},aw=class extends Ua{placeholder;limit;constructor(e,t){let i;t?(i=`Expected at least ${t[0]} argument(s) for ${e}`,t[1]===0?i+=" but found none":i+=` but only found ${t[1]}`):i=`Expected argument for ${e}`,super(i),this.placeholder=e,this.limit=t}};UOe=/^-([a-z]+)$/i,U2t=/^--([a-z][a-z-.\d_]+)$/i;W2t=/^--([a-z][a-z-.\d_]+)=(.+)$/i,$2t=/^-([a-z])=(.+)$/i,sU=class extends Ua{externalFlagName;valueText;constructor(e,t){super(`Cannot negate flag --${e} and pass "${t}" as value`),this.externalFlagName=e,this.valueText=t}};aU=class extends Ua{externalFlagName;previousInput;input;constructor(e,t,i){super(`Too many arguments for --${e}, encountered "${i}" after "${t}"`),this.externalFlagName=e,this.previousInput=t,this.input=i}};eb={headers:{usage:"USAGE",aliases:"ALIASES",commands:"COMMANDS",flags:"FLAGS",arguments:"ARGUMENTS"},keywords:{default:"default =",separator:"separator ="},briefs:{help:"Print help information and exit",helpAll:"Print help information (including hidden commands/flags) and exit",version:"Print version information and exit",argumentEscapeSequence:"All subsequent inputs should be interpreted as arguments"},noCommandRegisteredForInput({input:e,corrections:t}){let i=`No command registered for \`${e}\``;if(t.length>0){let r=QJ(t,{kind:"conjunctive",conjunction:"or",serialComma:!0});return`${i}, did you mean ${r}?`}else return i},noTextAvailableForLocale({requestedLocale:e,defaultLocale:t}){return`Application does not support "${e}" locale, defaulting to "${t}"`},exceptionWhileParsingArguments(e){return e instanceof Ua?LOe(e,{}):`Unable to parse arguments, ${(this.formatException??rU)(e)}`},exceptionWhileLoadingCommandFunction(e){return`Unable to load command function, ${(this.formatException??rU)(e)}`},exceptionWhileLoadingCommandContext(e){return`Unable to load command context, ${(this.formatException??rU)(e)}`},exceptionWhileRunningCommand(e){return`Command failed, ${(this.formatException??rU)(e)}`},commandErrorResult(e){return e.message},currentVersionIsNotLatest({currentVersion:e,latestVersion:t,upgradeCommand:i}){return i?`Latest available version is ${t} (currently running ${e}), upgrade with "${i}"`:`Latest available version is ${t} (currently running ${e})`}};mE=Symbol("RouteMap"),bO=Symbol("Command");});function Qg(e){return e==="sentry.io"||e.endsWith(".sentry.io")}var _O=_(()=>{"use strict";v()});var pX={};Hi(pX,{CLI_VERSION:()=>zn,DEFAULT_SENTRY_HOST:()=>pw,DEFAULT_SENTRY_URL:()=>Yo,NODE_MODULES_DIRNAME:()=>SO,SENTRY_CLI_DSN:()=>wO,clearPersistedDefaultUrl:()=>pU,getCliEnvironment:()=>aX,getConfiguredSentryUrl:()=>ds,getUserAgent:()=>Ed,isPersistedDefaultUrlInEffect:()=>sX,markPersistedDefaultUrl:()=>oX,normalizeUrl:()=>Sa});function Sa(e){if(!e)return;let t=e.trim();if(t)return gWt.test(t)?t:`https://${t}`}function ds(){let e=Ot(),t=e.SENTRY_HOST?.trim()||e.SENTRY_URL?.trim();if(!t)return;let i=t.match(fWt)?.[1]?.toLowerCase(),r=Sa(t);try{if(i&&i!=="http"&&i!=="https")throw new TypeError("Unsupported URL scheme");let n=new URL(r);if(n.protocol!=="http:"&&n.protocol!=="https:"||!n.hostname||n.username||n.password)throw new TypeError("Invalid Sentry URL");return r}catch{throw new ko("SENTRY_HOST/SENTRY_URL is not a valid URL; use a credential-free HTTP(S) URL.")}}function oX(e){nX.set(Ot(),e)}function pU(){nX.delete(Ot())}function sX(){let e=Ot(),t=nX.get(e);return t!==void 0&&!e.SENTRY_HOST?.trim()&&e.SENTRY_URL?.trim()===t}function aX(e=zn){return e==="0.0.0-dev"?"development":e.includes("-dev.")?"nightly":"production"}function Ed(){let e=typeof process.versions.bun<"u"?`bun/${process.versions.bun}`:`node/${process.versions.node}`;return`sentry-cli/${zn} (${process.platform}-${process.arch}) ${e}`}var pw,Yo,SO,gWt,fWt,nX,zn,wO,Ln=_(()=>{"use strict";v();$r();Dt();pw="sentry.io",Yo=`https://${pw}`,SO="node_modules",gWt=/^https?:\/\//i,fWt=/^([a-z][a-z\d+.-]*):\/\//i;nX=new WeakMap;zn="4.4.0";wO="https://1188a86f3f8168f089450587b00bca66@o1.ingest.us.sentry.io/4510776311808000"});function JOe(e,t){return ZOe.run(e,t)}function ef(){return ZOe.getStore()??ds()??Yo}function TO(e){let t=ef();if(!Cc(t))return t;let i=new URL(t);return i.hostname=`${e}.${i.hostname}`,i.origin}function yE(){return Cc(ef())}function Cc(e){try{let t=new URL(e);return Qg(t.hostname)}catch{return!1}}function Ad(e){if(e==null)return;let t;typeof e=="string"?t=e:e instanceof URL?t=e.href:t=e.url;try{return new URL(t).origin}catch{return}}function vn(e,t){if(e)try{let i=t?new URL(e,t):new URL(e);return i.protocol!=="http:"&&i.protocol!=="https:"||!i.hostname||i.username||i.password?void 0:i.origin}catch{return}}function IO(e,t){if(e.startsWith("/")||yWt.test(e))try{let i=new URL(e,t),r=vn(i.href);return!r||i.search||i.hash?void 0:`${r}${i.pathname.replace(bWt,"")}`}catch{return}}function XOe(e){let t=Sa(e);return t?Ad(t):void 0}function cX(e,t){let i=yE()?`${TO(e)}/settings/`:`${ef()}/settings/${e}/`;return t?`${i}#${t}`:i}function cU(e){return yE()?`${TO(e)}/settings/seer/`:`${ef()}/settings/${e}/seer/`}function lX(e){return`${yE()?`${TO(e)}/settings/integrations/`:`${ef()}/settings/${e}/integrations/`}?category=source%20code%20management`}function EO(e,t){let i=yE()?`${TO(e)}/settings/billing/overview/`:`${ef()}/settings/${e}/billing/overview/`;return t?`${i}?product=${t}`:i}function uX(e,t){let i=t?`#open-seer-auto-reload-modal:${t}`:"#open-seer-auto-reload-modal";return`${EO(e)}${i}`}var YOe,yWt,bWt,ZOe,Ys=_(()=>{"use strict";v();YOe=require("node:async_hooks");_O();Ln();yWt=/^https?:\/\//i,bWt=/\/+$/,ZOe=new YOe.AsyncLocalStorage});var bE={};Hi(bE,{AbortError:()=>lU,ApiError:()=>ki,AuthError:()=>ur,COMMAND_LINE_BREAK_FIELD:()=>mX,COMMAND_NOT_FOUND_FIELD:()=>gX,CliError:()=>Hr,ConfigError:()=>ko,ContextError:()=>vs,DeviceFlowError:()=>Rd,EXIT:()=>fo,HOST_NOT_LOOPBACK_FIELD:()=>hX,HostScopeError:()=>Ds,MalformedAuthTokenError:()=>kd,OutputError:()=>Dc,PORT_HELD_BY_DAEMON_FIELD:()=>IWt,PORT_IN_USE_FIELD:()=>fX,RateLimitError:()=>AO,ResolutionError:()=>Yn,SEARCH_QUERY_HELP:()=>ije,SeerError:()=>xd,TimeoutError:()=>Od,UpgradeError:()=>nr,UpgradeTransportError:()=>tf,ValidationError:()=>St,VerifyFailedError:()=>kO,WizardExitError:()=>dX,buildValidationMessage:()=>vX,formatError:()=>om,getExitCode:()=>yX,isNetworkError:()=>RO,isSearchQueryParseError:()=>tje,isUserError:()=>xO,lookupKnownKey:()=>uU,projectsNotFoundError:()=>eje,signalExitCode:()=>_Wt,stringifyUnknown:()=>Mn,toSearchQueryError:()=>kWt,validationError:()=>dU,withAuthGuard:()=>rf});function _Wt(e){return 128+QOe.constants.signals[e]}function uU(e,t){return typeof t=="string"&&Object.hasOwn(e,t)?e[t]:void 0}function SWt(){return["Run from a directory with a Sentry DSN in source code or .env files","Set SENTRY_ORG and SENTRY_PROJECT (or SENTRY_DSN) environment variables",`Run '${Ve`org list`}' to find your organization slug`,`Run '${Ve`project list <org>/`}' to find project slugs`]}function wWt(e,t,i,r){let{note:n,isAutoDetect:o}=r??{},s=e.includes(" and "),p=s?"them":"it",c=o?[`Could not auto-detect ${e.toLowerCase()}.`,"",`Provide ${p} explicitly:`,` ${t}`]:[`${e} ${s?"are":"is"} required.`,"",`Specify ${p} using:`,` ${t}`];if(i.length>0){c.push("","Or:");for(let l of i)c.push(` - ${l}`)}return n&&c.push("",`Note: ${n}`),c.join(`
|
|
26
26
|
`)}function TWt(e,t,i,r){let n=[`${e} ${t}.`,"","Try:",` ${i}`];if(r.length>0){n.push("","Or:");for(let o of r)n.push(` - ${o}`)}return n.join(`
|
|
27
27
|
`)}function eje(e,t,i=[]){let r=t.map(n=>`'${n}'`).join(", ");return new Yn(t.length===1?`Project ${r}`:`One of the projects ${r}`,`was not found in organization '${e}'`,Ve`project list ${e}/`,["Check the slug passed with --project (or the bundler plugin's `project` option)",...i])}function vX(e,t,i){let r=[e];if(t.length>0){r.push("","Try:");for(let n of t)r.push(` ${n}`)}return i&&r.push("",`Note: ${i}`),r.join(`
|
|
28
28
|
`)}function dU(e,t,i,r){return new St(vX(e,t,r),i)}function Mn(e){if(typeof e=="string")return e;if(e instanceof Error)return e.message;if(e&&typeof e=="object")try{return JSON.stringify(e)}catch{return String(e)}return String(e)}function om(e){return Il(e instanceof Hr?e.format():Mn(e))}function yX(e){return e instanceof Hr?e.exitCode:e instanceof Ua?El.InvalidArgument:1}function tje(e){return e.status===400&&(e.code===AWt||(e.detail?.includes(EWt)??!1))}function kWt(e,t,i=[]){if(t&&e instanceof ki&&tje(e)){let r=[];e.detail&&r.push(e.detail,""),r.push("Suggestions:");for(let n of[ije,...i])r.push(` \u2022 ${n}`);return new St(r.join(`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/mcp-server",
|
|
3
3
|
"mcpName": "io.github.getsentry/sentry-mcp",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.4.0",
|
|
5
5
|
"description": "Sentry MCP server over stdio: the CLI's `sentry mcp` server, bundled without the rest of the CLI",
|
|
6
6
|
"sentryCi": {
|
|
7
7
|
"build": "bundle",
|