@sentry/mcp-server 0.6.0 → 0.7.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.
- package/dist/api-client/client.cjs +1 -1
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/client.js +1 -1
- package/dist/api-client/client.test.cjs +3 -3
- package/dist/api-client/client.test.js +3 -3
- package/dist/api-client/index.cjs +1 -1
- package/dist/api-client/index.d.cts +4 -4
- package/dist/api-client/index.d.ts +4 -4
- package/dist/api-client/index.js +1 -1
- package/dist/api-client/schema.d.cts +1 -1
- package/dist/api-client/schema.d.ts +1 -1
- package/dist/api-client/types.d.cts +2 -2
- package/dist/api-client/types.d.ts +2 -2
- package/dist/{client.d-eUhyVsN_.d.ts → client-7aaWrjcF.d.ts} +11 -2
- package/dist/client-7aaWrjcF.d.ts.map +1 -0
- package/dist/{client-DQF6UreY.cjs → client-CLuQEpjg.cjs} +10 -3
- package/dist/client-CLuQEpjg.cjs.map +1 -0
- package/dist/{client.d-JulFjrUM.d.cts → client-Ch0w22UE.d.cts} +11 -2
- package/dist/client-Ch0w22UE.d.cts.map +1 -0
- package/dist/{client-vqrS5E_N.js → client-D9mOWh6s.js} +10 -3
- package/dist/client-D9mOWh6s.js.map +1 -0
- package/dist/{dist-Bewd5-7a.js → dist-BKh-M1A1.js} +11 -11
- package/dist/{dist-Bewd5-7a.js.map → dist-BKh-M1A1.js.map} +1 -1
- package/dist/{dist-3oa5SxPp.cjs → dist-wiyJYfAH.cjs} +11 -11
- package/dist/{dist-3oa5SxPp.cjs.map → dist-wiyJYfAH.cjs.map} +1 -1
- package/dist/{formatting-BTSvl7n7.cjs → formatting-BmbJ5-Uh.cjs} +25 -1
- package/dist/formatting-BmbJ5-Uh.cjs.map +1 -0
- package/dist/formatting-C6Py2iOz.js +46 -0
- package/dist/formatting-C6Py2iOz.js.map +1 -0
- package/dist/index.cjs +14 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -8
- package/dist/index.js.map +1 -1
- package/dist/internal/formatting.cjs +3 -2
- package/dist/internal/formatting.d.cts +16 -5
- package/dist/internal/formatting.d.cts.map +1 -1
- package/dist/internal/formatting.d.ts +16 -5
- package/dist/internal/formatting.d.ts.map +1 -1
- package/dist/internal/formatting.js +2 -2
- package/dist/internal/issue-helpers.test.cjs +2 -2
- package/dist/internal/issue-helpers.test.js +2 -2
- package/dist/{promptDefinitions.d-DyHOzL57.d.ts → promptDefinitions-C85r2wAk.d.ts} +1 -1
- package/dist/promptDefinitions-C85r2wAk.d.ts.map +1 -0
- package/dist/{promptDefinitions.d-ByaZdRYv.d.cts → promptDefinitions-CkGJr3c4.d.cts} +1 -1
- package/dist/promptDefinitions-CkGJr3c4.d.cts.map +1 -0
- package/dist/promptDefinitions.d.cts +1 -1
- package/dist/promptDefinitions.d.ts +1 -1
- package/dist/{schema.d-vgLUM73w.d.cts → schema-BbqVXLZS.d.cts} +1 -1
- package/dist/schema-BbqVXLZS.d.cts.map +1 -0
- package/dist/{schema.d-DwpHAZsi.d.ts → schema-BnIwkBRb.d.ts} +1 -1
- package/dist/schema-BnIwkBRb.d.ts.map +1 -0
- package/dist/{server-CqLaJq7P.cjs → server-D35uvgO3.cjs} +7 -4
- package/dist/server-D35uvgO3.cjs.map +1 -0
- package/dist/{server-BLE3CwEp.js → server-zkB6OPEz.js} +8 -5
- package/dist/server-zkB6OPEz.js.map +1 -0
- package/dist/server.cjs +5 -5
- package/dist/server.d.cts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/server.js +5 -5
- package/dist/{stdio-DKNKrvTY.cjs → stdio-Be17vc2M.cjs} +2 -2
- package/dist/{stdio-DKNKrvTY.cjs.map → stdio-Be17vc2M.cjs.map} +1 -1
- package/dist/{stdio-BLheCcU0.js → stdio-DQcBQF6y.js} +2 -2
- package/dist/{stdio-BLheCcU0.js.map → stdio-DQcBQF6y.js.map} +1 -1
- package/dist/test-setup.cjs +40 -37
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +40 -37
- package/dist/test-setup.js.map +1 -1
- package/dist/{toolDefinitions-C0t6Y5Su.cjs → toolDefinitions-CRtHauHJ.cjs} +18 -3
- package/dist/toolDefinitions-CRtHauHJ.cjs.map +1 -0
- package/dist/{toolDefinitions-DB4pPvgy.js → toolDefinitions-CfNXEIaX.js} +18 -3
- package/dist/toolDefinitions-CfNXEIaX.js.map +1 -0
- package/dist/{toolDefinitions.d-CsT15_MF.d.cts → toolDefinitions-DPePAe0y.d.cts} +16 -1
- package/dist/toolDefinitions-DPePAe0y.d.cts.map +1 -0
- package/dist/{toolDefinitions.d-C5JUBInb.d.ts → toolDefinitions-abNbVXb5.d.ts} +16 -1
- package/dist/toolDefinitions-abNbVXb5.d.ts.map +1 -0
- package/dist/toolDefinitions.cjs +1 -1
- package/dist/toolDefinitions.d.cts +1 -1
- package/dist/toolDefinitions.d.ts +1 -1
- package/dist/toolDefinitions.js +1 -1
- package/dist/toolDefinitions.test.cjs +2 -2
- package/dist/toolDefinitions.test.js +2 -2
- package/dist/{tools-DZzt3LcX.js → tools-DtHRkHKh.js} +66 -48
- package/dist/tools-DtHRkHKh.js.map +1 -0
- package/dist/{tools-BdAFXSMG.cjs → tools-LuDiLnAX.cjs} +66 -47
- package/dist/tools-LuDiLnAX.cjs.map +1 -0
- package/dist/tools.cjs +3 -3
- package/dist/tools.d.cts +18 -3
- package/dist/tools.d.cts.map +1 -1
- package/dist/tools.d.ts +18 -3
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +3 -3
- package/dist/tools.test.cjs +57 -8
- package/dist/tools.test.cjs.map +1 -1
- package/dist/tools.test.js +57 -8
- package/dist/tools.test.js.map +1 -1
- package/dist/transports/stdio.cjs +6 -6
- package/dist/transports/stdio.d.cts +3 -3
- package/dist/transports/stdio.d.ts +3 -3
- package/dist/transports/stdio.js +6 -6
- package/dist/{types.d-Bq-AxlK6.d.cts → types-BqMKv2m7.d.cts} +2 -2
- package/dist/types-BqMKv2m7.d.cts.map +1 -0
- package/dist/{types.d-BfhMPrt_.d.cts → types-DFKY4nvR.d.cts} +4 -3
- package/dist/types-DFKY4nvR.d.cts.map +1 -0
- package/dist/{types.d-B-acZthg.d.ts → types-RxedZjnY.d.ts} +2 -2
- package/dist/types-RxedZjnY.d.ts.map +1 -0
- package/dist/{types.d-BeKsSRmy.d.ts → types-X3ot7x0d.d.ts} +4 -3
- package/dist/types-X3ot7x0d.d.ts.map +1 -0
- package/dist/types.d.cts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/version-BMRCgO0F.js +6 -0
- package/dist/{version-S8A9iKsF.js.map → version-BMRCgO0F.js.map} +1 -1
- package/dist/{version-DkTBZdhM.cjs → version-BkjSM_wB.cjs} +2 -2
- package/dist/{version-DkTBZdhM.cjs.map → version-BkjSM_wB.cjs.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/{vi.ClIskdbk-Dd6dTM3O.js → vi.ClIskdbk-BbUmO3mx.js} +9 -9
- package/dist/{vi.ClIskdbk-Dd6dTM3O.js.map → vi.ClIskdbk-BbUmO3mx.js.map} +1 -1
- package/dist/{vi.ClIskdbk-Bn6W0wTE.cjs → vi.ClIskdbk-TqmAThAO.cjs} +9 -9
- package/dist/{vi.ClIskdbk-Bn6W0wTE.cjs.map → vi.ClIskdbk-TqmAThAO.cjs.map} +1 -1
- package/package.json +6 -6
- package/dist/client-DQF6UreY.cjs.map +0 -1
- package/dist/client-vqrS5E_N.js.map +0 -1
- package/dist/client.d-JulFjrUM.d.cts.map +0 -1
- package/dist/client.d-eUhyVsN_.d.ts.map +0 -1
- package/dist/formatting-BTSvl7n7.cjs.map +0 -1
- package/dist/formatting-Bacfde0I.js +0 -28
- package/dist/formatting-Bacfde0I.js.map +0 -1
- package/dist/promptDefinitions.d-ByaZdRYv.d.cts.map +0 -1
- package/dist/promptDefinitions.d-DyHOzL57.d.ts.map +0 -1
- package/dist/schema.d-DwpHAZsi.d.ts.map +0 -1
- package/dist/schema.d-vgLUM73w.d.cts.map +0 -1
- package/dist/server-BLE3CwEp.js.map +0 -1
- package/dist/server-CqLaJq7P.cjs.map +0 -1
- package/dist/toolDefinitions-C0t6Y5Su.cjs.map +0 -1
- package/dist/toolDefinitions-DB4pPvgy.js.map +0 -1
- package/dist/toolDefinitions.d-C5JUBInb.d.ts.map +0 -1
- package/dist/toolDefinitions.d-CsT15_MF.d.cts.map +0 -1
- package/dist/tools-BdAFXSMG.cjs.map +0 -1
- package/dist/tools-DZzt3LcX.js.map +0 -1
- package/dist/types.d-B-acZthg.d.ts.map +0 -1
- package/dist/types.d-BeKsSRmy.d.ts.map +0 -1
- package/dist/types.d-BfhMPrt_.d.cts.map +0 -1
- package/dist/types.d-Bq-AxlK6.d.cts.map +0 -1
- package/dist/version-S8A9iKsF.js +0 -6
- /package/dist/{index.d-Cb-lHGvn.d.cts → index-BPSCxsMC.d.cts} +0 -0
- /package/dist/{index.d-kYckfDWv.d.ts → index-h64gcVNJ.d.ts} +0 -0
|
@@ -24,6 +24,24 @@ function formatEventOutput(event) {
|
|
|
24
24
|
}
|
|
25
25
|
return output;
|
|
26
26
|
}
|
|
27
|
+
function formatIssueOutput({ organizationSlug, issue, event, apiService }) {
|
|
28
|
+
let output = `# Issue ${issue.shortId} in **${organizationSlug}**\n\n`;
|
|
29
|
+
output += `**Description**: ${issue.title}\n`;
|
|
30
|
+
output += `**Culprit**: ${issue.culprit}\n`;
|
|
31
|
+
output += `**First Seen**: ${new Date(issue.firstSeen).toISOString()}\n`;
|
|
32
|
+
output += `**Last Seen**: ${new Date(issue.lastSeen).toISOString()}\n`;
|
|
33
|
+
output += `**URL**: ${apiService.getIssueUrl(organizationSlug, issue.shortId)}\n`;
|
|
34
|
+
output += "\n";
|
|
35
|
+
output += "## Event Details\n\n";
|
|
36
|
+
output += `**Event ID**: ${event.id}\n`;
|
|
37
|
+
if (event.type === "error") output += `**Occurred At**: ${new Date(event.dateCreated).toISOString()}\n`;
|
|
38
|
+
if (event.message) output += `**Message**:\n${event.message}\n`;
|
|
39
|
+
output += formatEventOutput(event);
|
|
40
|
+
output += "# Using this information\n\n";
|
|
41
|
+
output += `- You can reference the IssueID in commit messages (e.g. \`Fixes ${issue.shortId}\`) to automatically close the issue when the commit is merged.\n`;
|
|
42
|
+
output += "- The stacktrace includes both first-party application code as well as third-party code, its important to triage to first-party code.\n";
|
|
43
|
+
return output;
|
|
44
|
+
}
|
|
27
45
|
|
|
28
46
|
//#endregion
|
|
29
47
|
Object.defineProperty(exports, 'formatEventOutput', {
|
|
@@ -38,4 +56,10 @@ Object.defineProperty(exports, 'formatFrameHeader', {
|
|
|
38
56
|
return formatFrameHeader;
|
|
39
57
|
}
|
|
40
58
|
});
|
|
41
|
-
|
|
59
|
+
Object.defineProperty(exports, 'formatIssueOutput', {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () {
|
|
62
|
+
return formatIssueOutput;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
//# sourceMappingURL=formatting-BmbJ5-Uh.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatting-BmbJ5-Uh.cjs","names":["frame: z.infer<typeof FrameInterface>","platform: string | undefined | null","event: Event"],"sources":["../src/internal/formatting.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type { Event, Issue } from \"../api-client/types\";\nimport type {\n ErrorEntrySchema,\n ErrorEventSchema,\n FrameInterface,\n SentryApiService,\n} from \"../api-client\";\n\nexport function formatFrameHeader(\n frame: z.infer<typeof FrameInterface>,\n platform: string | undefined | null,\n) {\n if (platform?.startsWith(\"javascript\")) {\n return `${[frame.filename, frame.lineNo, frame.colNo]\n .filter((i) => !!i)\n .join(\":\")}${frame.function ? ` (${frame.function})` : \"\"}`;\n }\n return `${frame.function ? `\"${frame.function}\"` : \"unknown function\"} in \"${frame.filename || frame.module}\"${\n frame.lineNo\n ? ` at line ${frame.lineNo}${frame.colNo !== null ? `:${frame.colNo}` : \"\"}`\n : \"\"\n }`;\n}\n\nexport function formatEventOutput(event: Event) {\n let output = \"\";\n for (const entry of event.entries) {\n if (entry.type === \"exception\") {\n const data = entry.data as z.infer<typeof ErrorEntrySchema>;\n const firstError = data.value ?? data.values[0];\n if (!firstError) {\n continue;\n }\n output += `**Error:**\\n${\"```\"}\\n${firstError.type}: ${\n firstError.value\n }\\n${\"```\"}\\n\\n`;\n if (!firstError.stacktrace || !firstError.stacktrace.frames) {\n continue;\n }\n output += `**Stacktrace:**\\n${\"```\"}\\n${firstError.stacktrace.frames\n .map((frame) => {\n const context = frame.context?.length\n ? `${frame.context\n .filter(([lineno, _]) => lineno === frame.lineNo)\n .map(([_, code]) => `\\n${code}`)\n .join(\"\")}`\n : \"\";\n\n return `${formatFrameHeader(frame, event.platform)}${context}`;\n })\n .join(\"\\n\")}\\n${\"```\"}\\n\\n`;\n }\n }\n return output;\n}\n\nexport function formatIssueOutput({\n organizationSlug,\n issue,\n event,\n apiService,\n}: {\n organizationSlug: string;\n issue: Issue;\n event: Event;\n apiService: SentryApiService;\n}) {\n let output = `# Issue ${issue.shortId} in **${organizationSlug}**\\n\\n`;\n output += `**Description**: ${issue.title}\\n`;\n output += `**Culprit**: ${issue.culprit}\\n`;\n output += `**First Seen**: ${new Date(issue.firstSeen).toISOString()}\\n`;\n output += `**Last Seen**: ${new Date(issue.lastSeen).toISOString()}\\n`;\n output += `**URL**: ${apiService.getIssueUrl(organizationSlug, issue.shortId)}\\n`;\n output += \"\\n\";\n output += \"## Event Details\\n\\n\";\n output += `**Event ID**: ${event.id}\\n`;\n if (event.type === \"error\") {\n output += `**Occurred At**: ${new Date((event as z.infer<typeof ErrorEventSchema>).dateCreated).toISOString()}\\n`;\n }\n if (event.message) {\n output += `**Message**:\\n${event.message}\\n`;\n }\n output += formatEventOutput(event);\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the IssueID in commit messages (e.g. \\`Fixes ${issue.shortId}\\`) to automatically close the issue when the commit is merged.\\n`;\n output +=\n \"- The stacktrace includes both first-party application code as well as third-party code, its important to triage to first-party code.\\n\";\n return output;\n}\n"],"mappings":";;;AASA,SAAgB,kBACdA,OACAC,UACA;AACA,KAAI,UAAU,WAAW,aAAa,CACpC,SAAQ,EAAE;EAAC,MAAM;EAAU,MAAM;EAAQ,MAAM;CAAM,EAClD,OAAO,CAAC,QAAQ,EAAE,CAClB,KAAK,IAAI,CAAC,EAAE,MAAM,YAAY,IAAI,MAAM,SAAS,KAAK,GAAG;AAE9D,SAAQ,EAAE,MAAM,YAAY,GAAG,MAAM,SAAS,KAAK,mBAAmB,OAAO,MAAM,YAAY,MAAM,OAAO,GAC1G,MAAM,UACD,WAAW,MAAM,OAAO,EAAE,MAAM,UAAU,QAAQ,GAAG,MAAM,MAAM,IAAI,GAAG,IACzE,GACL;AACF;AAED,SAAgB,kBAAkBC,OAAc;CAC9C,IAAI,SAAS;AACb,MAAK,MAAM,SAAS,MAAM,QACxB,KAAI,MAAM,SAAS,aAAa;EAC9B,MAAM,OAAO,MAAM;EACnB,MAAM,aAAa,KAAK,SAAS,KAAK,OAAO;AAC7C,OAAK,WACH;AAEF,aAAW,sBAAwB,WAAW,KAAK,IACjD,WAAW,MACZ;AACD,OAAK,WAAW,eAAe,WAAW,WAAW,OACnD;AAEF,aAAW,2BAA6B,WAAW,WAAW,OAC3D,IAAI,CAAC,UAAU;GACd,MAAM,UAAU,MAAM,SAAS,UAC1B,EAAE,MAAM,QACN,OAAO,CAAC,CAAC,QAAQ,EAAE,KAAK,WAAW,MAAM,OAAO,CAChD,IAAI,CAAC,CAAC,GAAG,KAAK,MAAM,IAAI,KAAK,EAAE,CAC/B,KAAK,GAAG,CAAC,IACZ;AAEJ,WAAQ,EAAE,kBAAkB,OAAO,MAAM,SAAS,CAAC,EAAE,QAAQ;EAC9D,EAAC,CACD,KAAK,KAAK,CAAC;CACf;AAEH,QAAO;AACR;AAED,SAAgB,kBAAkB,EAChC,kBACA,OACA,OACA,YAMD,EAAE;CACD,IAAI,UAAU,UAAU,MAAM,QAAQ,QAAQ,iBAAiB;AAC/D,YAAW,mBAAmB,MAAM,MAAM;AAC1C,YAAW,eAAe,MAAM,QAAQ;AACxC,YAAW,kBAAkB,IAAI,KAAK,MAAM,WAAW,aAAa,CAAC;AACrE,YAAW,iBAAiB,IAAI,KAAK,MAAM,UAAU,aAAa,CAAC;AACnE,YAAW,WAAW,WAAW,YAAY,kBAAkB,MAAM,QAAQ,CAAC;AAC9E,WAAU;AACV,WAAU;AACV,YAAW,gBAAgB,MAAM,GAAG;AACpC,KAAI,MAAM,SAAS,QACjB,YAAW,mBAAmB,IAAI,KAAM,MAA2C,aAAa,aAAa,CAAC;AAEhH,KAAI,MAAM,QACR,YAAW,gBAAgB,MAAM,QAAQ;AAE3C,WAAU,kBAAkB,MAAM;AAClC,WAAU;AACV,YAAW,mEAAmE,MAAM,QAAQ;AAC5F,WACE;AACF,QAAO;AACR"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//#region src/internal/formatting.ts
|
|
2
|
+
function formatFrameHeader(frame, platform) {
|
|
3
|
+
if (platform?.startsWith("javascript")) return `${[
|
|
4
|
+
frame.filename,
|
|
5
|
+
frame.lineNo,
|
|
6
|
+
frame.colNo
|
|
7
|
+
].filter((i) => !!i).join(":")}${frame.function ? ` (${frame.function})` : ""}`;
|
|
8
|
+
return `${frame.function ? `"${frame.function}"` : "unknown function"} in "${frame.filename || frame.module}"${frame.lineNo ? ` at line ${frame.lineNo}${frame.colNo !== null ? `:${frame.colNo}` : ""}` : ""}`;
|
|
9
|
+
}
|
|
10
|
+
function formatEventOutput(event) {
|
|
11
|
+
let output = "";
|
|
12
|
+
for (const entry of event.entries) if (entry.type === "exception") {
|
|
13
|
+
const data = entry.data;
|
|
14
|
+
const firstError = data.value ?? data.values[0];
|
|
15
|
+
if (!firstError) continue;
|
|
16
|
+
output += `**Error:**\n\`\`\`\n${firstError.type}: ${firstError.value}\n\`\`\`\n\n`;
|
|
17
|
+
if (!firstError.stacktrace || !firstError.stacktrace.frames) continue;
|
|
18
|
+
output += `**Stacktrace:**\n\`\`\`\n${firstError.stacktrace.frames.map((frame) => {
|
|
19
|
+
const context = frame.context?.length ? `${frame.context.filter(([lineno, _]) => lineno === frame.lineNo).map(([_, code]) => `\n${code}`).join("")}` : "";
|
|
20
|
+
return `${formatFrameHeader(frame, event.platform)}${context}`;
|
|
21
|
+
}).join("\n")}\n\`\`\`\n\n`;
|
|
22
|
+
}
|
|
23
|
+
return output;
|
|
24
|
+
}
|
|
25
|
+
function formatIssueOutput({ organizationSlug, issue, event, apiService }) {
|
|
26
|
+
let output = `# Issue ${issue.shortId} in **${organizationSlug}**\n\n`;
|
|
27
|
+
output += `**Description**: ${issue.title}\n`;
|
|
28
|
+
output += `**Culprit**: ${issue.culprit}\n`;
|
|
29
|
+
output += `**First Seen**: ${new Date(issue.firstSeen).toISOString()}\n`;
|
|
30
|
+
output += `**Last Seen**: ${new Date(issue.lastSeen).toISOString()}\n`;
|
|
31
|
+
output += `**URL**: ${apiService.getIssueUrl(organizationSlug, issue.shortId)}\n`;
|
|
32
|
+
output += "\n";
|
|
33
|
+
output += "## Event Details\n\n";
|
|
34
|
+
output += `**Event ID**: ${event.id}\n`;
|
|
35
|
+
if (event.type === "error") output += `**Occurred At**: ${new Date(event.dateCreated).toISOString()}\n`;
|
|
36
|
+
if (event.message) output += `**Message**:\n${event.message}\n`;
|
|
37
|
+
output += formatEventOutput(event);
|
|
38
|
+
output += "# Using this information\n\n";
|
|
39
|
+
output += `- You can reference the IssueID in commit messages (e.g. \`Fixes ${issue.shortId}\`) to automatically close the issue when the commit is merged.\n`;
|
|
40
|
+
output += "- The stacktrace includes both first-party application code as well as third-party code, its important to triage to first-party code.\n";
|
|
41
|
+
return output;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { formatEventOutput, formatFrameHeader, formatIssueOutput };
|
|
46
|
+
//# sourceMappingURL=formatting-C6Py2iOz.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatting-C6Py2iOz.js","names":["frame: z.infer<typeof FrameInterface>","platform: string | undefined | null","event: Event"],"sources":["../src/internal/formatting.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type { Event, Issue } from \"../api-client/types\";\nimport type {\n ErrorEntrySchema,\n ErrorEventSchema,\n FrameInterface,\n SentryApiService,\n} from \"../api-client\";\n\nexport function formatFrameHeader(\n frame: z.infer<typeof FrameInterface>,\n platform: string | undefined | null,\n) {\n if (platform?.startsWith(\"javascript\")) {\n return `${[frame.filename, frame.lineNo, frame.colNo]\n .filter((i) => !!i)\n .join(\":\")}${frame.function ? ` (${frame.function})` : \"\"}`;\n }\n return `${frame.function ? `\"${frame.function}\"` : \"unknown function\"} in \"${frame.filename || frame.module}\"${\n frame.lineNo\n ? ` at line ${frame.lineNo}${frame.colNo !== null ? `:${frame.colNo}` : \"\"}`\n : \"\"\n }`;\n}\n\nexport function formatEventOutput(event: Event) {\n let output = \"\";\n for (const entry of event.entries) {\n if (entry.type === \"exception\") {\n const data = entry.data as z.infer<typeof ErrorEntrySchema>;\n const firstError = data.value ?? data.values[0];\n if (!firstError) {\n continue;\n }\n output += `**Error:**\\n${\"```\"}\\n${firstError.type}: ${\n firstError.value\n }\\n${\"```\"}\\n\\n`;\n if (!firstError.stacktrace || !firstError.stacktrace.frames) {\n continue;\n }\n output += `**Stacktrace:**\\n${\"```\"}\\n${firstError.stacktrace.frames\n .map((frame) => {\n const context = frame.context?.length\n ? `${frame.context\n .filter(([lineno, _]) => lineno === frame.lineNo)\n .map(([_, code]) => `\\n${code}`)\n .join(\"\")}`\n : \"\";\n\n return `${formatFrameHeader(frame, event.platform)}${context}`;\n })\n .join(\"\\n\")}\\n${\"```\"}\\n\\n`;\n }\n }\n return output;\n}\n\nexport function formatIssueOutput({\n organizationSlug,\n issue,\n event,\n apiService,\n}: {\n organizationSlug: string;\n issue: Issue;\n event: Event;\n apiService: SentryApiService;\n}) {\n let output = `# Issue ${issue.shortId} in **${organizationSlug}**\\n\\n`;\n output += `**Description**: ${issue.title}\\n`;\n output += `**Culprit**: ${issue.culprit}\\n`;\n output += `**First Seen**: ${new Date(issue.firstSeen).toISOString()}\\n`;\n output += `**Last Seen**: ${new Date(issue.lastSeen).toISOString()}\\n`;\n output += `**URL**: ${apiService.getIssueUrl(organizationSlug, issue.shortId)}\\n`;\n output += \"\\n\";\n output += \"## Event Details\\n\\n\";\n output += `**Event ID**: ${event.id}\\n`;\n if (event.type === \"error\") {\n output += `**Occurred At**: ${new Date((event as z.infer<typeof ErrorEventSchema>).dateCreated).toISOString()}\\n`;\n }\n if (event.message) {\n output += `**Message**:\\n${event.message}\\n`;\n }\n output += formatEventOutput(event);\n output += \"# Using this information\\n\\n\";\n output += `- You can reference the IssueID in commit messages (e.g. \\`Fixes ${issue.shortId}\\`) to automatically close the issue when the commit is merged.\\n`;\n output +=\n \"- The stacktrace includes both first-party application code as well as third-party code, its important to triage to first-party code.\\n\";\n return output;\n}\n"],"mappings":";AASA,SAAgB,kBACdA,OACAC,UACA;AACA,KAAI,UAAU,WAAW,aAAa,CACpC,SAAQ,EAAE;EAAC,MAAM;EAAU,MAAM;EAAQ,MAAM;CAAM,EAClD,OAAO,CAAC,QAAQ,EAAE,CAClB,KAAK,IAAI,CAAC,EAAE,MAAM,YAAY,IAAI,MAAM,SAAS,KAAK,GAAG;AAE9D,SAAQ,EAAE,MAAM,YAAY,GAAG,MAAM,SAAS,KAAK,mBAAmB,OAAO,MAAM,YAAY,MAAM,OAAO,GAC1G,MAAM,UACD,WAAW,MAAM,OAAO,EAAE,MAAM,UAAU,QAAQ,GAAG,MAAM,MAAM,IAAI,GAAG,IACzE,GACL;AACF;AAED,SAAgB,kBAAkBC,OAAc;CAC9C,IAAI,SAAS;AACb,MAAK,MAAM,SAAS,MAAM,QACxB,KAAI,MAAM,SAAS,aAAa;EAC9B,MAAM,OAAO,MAAM;EACnB,MAAM,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
const require_chunk = require('./chunk-BtT13l48.cjs');
|
|
4
4
|
require('./schema-BnXdl41H.cjs');
|
|
5
|
-
require('./client-
|
|
5
|
+
require('./client-CLuQEpjg.cjs');
|
|
6
6
|
require('./types-o3zWarRp.cjs');
|
|
7
7
|
require('./api-client-CEBuz3Zu.cjs');
|
|
8
|
-
require('./formatting-
|
|
8
|
+
require('./formatting-BmbJ5-Uh.cjs');
|
|
9
9
|
require('./issue-helpers-CdWMhVWJ.cjs');
|
|
10
10
|
require('./logging-BEMgC5SA.cjs');
|
|
11
|
-
require('./tools-
|
|
11
|
+
require('./tools-LuDiLnAX.cjs');
|
|
12
12
|
require('./schema-_xqdSRLo.cjs');
|
|
13
|
-
require('./toolDefinitions-
|
|
13
|
+
require('./toolDefinitions-CRtHauHJ.cjs');
|
|
14
14
|
require('./resources-BAE7VVZZ.cjs');
|
|
15
15
|
require('./promptDefinitions-OnJHLqrZ.cjs');
|
|
16
16
|
require('./prompts--QCiXmR2.cjs');
|
|
17
|
-
require('./server-
|
|
18
|
-
const require_stdio = require('./stdio-
|
|
19
|
-
const require_version = require('./version-
|
|
17
|
+
require('./server-D35uvgO3.cjs');
|
|
18
|
+
const require_stdio = require('./stdio-Be17vc2M.cjs');
|
|
19
|
+
const require_version = require('./version-BkjSM_wB.cjs');
|
|
20
20
|
const __modelcontextprotocol_sdk_server_mcp_js = require_chunk.__toESM(require("@modelcontextprotocol/sdk/server/mcp.js"));
|
|
21
21
|
const __sentry_node = require_chunk.__toESM(require("@sentry/node"));
|
|
22
22
|
|
|
@@ -50,7 +50,13 @@ if (!accessToken) {
|
|
|
50
50
|
__sentry_node.init({
|
|
51
51
|
dsn: sentryDsn,
|
|
52
52
|
sendDefaultPii: true,
|
|
53
|
-
|
|
53
|
+
tracesSampleRate: 1,
|
|
54
|
+
initialScope: { tags: {
|
|
55
|
+
"mcp.server_version": require_version.LIB_VERSION,
|
|
56
|
+
"mcp.transport": "stdio",
|
|
57
|
+
"sentry.host": host
|
|
58
|
+
} },
|
|
59
|
+
integrations: [__sentry_node.consoleLoggingIntegration(), __sentry_node.zodErrorsIntegration()],
|
|
54
60
|
environment: "stdio"
|
|
55
61
|
});
|
|
56
62
|
const server = new __modelcontextprotocol_sdk_server_mcp_js.McpServer({
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["accessToken: string | undefined","host: string | undefined","sentryDsn: string | undefined","LIB_VERSION","McpServer"],"sources":["../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { startStdio } from \"./transports/stdio\";\nimport * as Sentry from \"@sentry/node\";\nimport { LIB_VERSION } from \"./version\";\n\nlet accessToken: string | undefined = process.env.SENTRY_AUTH_TOKEN;\nlet host: string | undefined = process.env.SENTRY_HOST;\nlet sentryDsn: string | undefined =\n process.env.SENTRY_DSN || process.env.DEFAULT_SENTRY_DSN;\n\nconst packageName = \"@sentry/mcp-server\";\n\nfunction getUsage() {\n return `Usage: ${packageName} --access-token=<token> [--host=<host>] [--sentry-dsn=<dsn>]`;\n}\n\nfor (const arg of process.argv.slice(2)) {\n if (arg === \"--version\" || arg === \"-v\") {\n console.log(`${packageName} ${LIB_VERSION}`);\n process.exit(0);\n }\n if (arg.startsWith(\"--access-token=\")) {\n accessToken = arg.split(\"=\")[1];\n } else if (arg.startsWith(\"--host=\")) {\n host = arg.split(\"=\")[1];\n } else if (arg.startsWith(\"--sentry-dsn=\")) {\n sentryDsn = arg.split(\"=\")[1];\n } else {\n console.error(\"Error: Invalid argument:\", arg);\n console.error(getUsage());\n process.exit(1);\n }\n}\n\nif (!accessToken) {\n console.error(\n \"Error: No access token was provided. Pass one with `--access-token` or via `SENTRY_AUTH_TOKEN`.\",\n );\n console.error(getUsage());\n process.exit(1);\n}\n\nSentry.init({\n dsn: sentryDsn,\n sendDefaultPii: true,\n initialScope: {\n tags: {\n
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["accessToken: string | undefined","host: string | undefined","sentryDsn: string | undefined","LIB_VERSION","McpServer"],"sources":["../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { startStdio } from \"./transports/stdio\";\nimport * as Sentry from \"@sentry/node\";\nimport { LIB_VERSION } from \"./version\";\n\nlet accessToken: string | undefined = process.env.SENTRY_AUTH_TOKEN;\nlet host: string | undefined = process.env.SENTRY_HOST;\nlet sentryDsn: string | undefined =\n process.env.SENTRY_DSN || process.env.DEFAULT_SENTRY_DSN;\n\nconst packageName = \"@sentry/mcp-server\";\n\nfunction getUsage() {\n return `Usage: ${packageName} --access-token=<token> [--host=<host>] [--sentry-dsn=<dsn>]`;\n}\n\nfor (const arg of process.argv.slice(2)) {\n if (arg === \"--version\" || arg === \"-v\") {\n console.log(`${packageName} ${LIB_VERSION}`);\n process.exit(0);\n }\n if (arg.startsWith(\"--access-token=\")) {\n accessToken = arg.split(\"=\")[1];\n } else if (arg.startsWith(\"--host=\")) {\n host = arg.split(\"=\")[1];\n } else if (arg.startsWith(\"--sentry-dsn=\")) {\n sentryDsn = arg.split(\"=\")[1];\n } else {\n console.error(\"Error: Invalid argument:\", arg);\n console.error(getUsage());\n process.exit(1);\n }\n}\n\nif (!accessToken) {\n console.error(\n \"Error: No access token was provided. Pass one with `--access-token` or via `SENTRY_AUTH_TOKEN`.\",\n );\n console.error(getUsage());\n process.exit(1);\n}\n\nSentry.init({\n dsn: sentryDsn,\n sendDefaultPii: true,\n tracesSampleRate: 1,\n initialScope: {\n tags: {\n \"mcp.server_version\": LIB_VERSION,\n \"mcp.transport\": \"stdio\",\n \"sentry.host\": host,\n },\n },\n integrations: [\n Sentry.consoleLoggingIntegration(),\n Sentry.zodErrorsIntegration(),\n ],\n environment:\n process.env.SENTRY_ENVIRONMENT ??\n (process.env.NODE_ENV !== \"production\" ? \"development\" : \"production\"),\n});\n\nconst server = new McpServer({\n name: \"Sentry MCP\",\n version: LIB_VERSION,\n});\n\nconst instrumentedServer = Sentry.wrapMcpServerWithSentry(server);\n\nconst SENTRY_TIMEOUT = 5000; // 5 seconds\n\n// XXX: we could do what we're doing in routes/auth.ts and pass the context\n// identically, but we don't really need userId and userName yet\nstartStdio(instrumentedServer, {\n accessToken,\n organizationSlug: null,\n host,\n}).catch((err) => {\n console.error(\"Server error:\", err);\n // ensure we've flushed all events\n Sentry.flush(SENTRY_TIMEOUT);\n process.exit(1);\n});\n\n// ensure we've flushed all events\nSentry.flush(SENTRY_TIMEOUT);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAIA,cAAkC,QAAQ,IAAI;AAClD,IAAIC,OAA2B,QAAQ,IAAI;AAC3C,IAAIC,YACF,QAAQ,IAAI;AAEd,MAAM,cAAc;AAEpB,SAAS,WAAW;AAClB,SAAQ,SAAS,YAAY;AAC9B;AAED,KAAK,MAAM,OAAO,QAAQ,KAAK,MAAM,EAAE,EAAE;AACvC,KAAI,QAAQ,eAAe,QAAQ,MAAM;AACvC,UAAQ,KAAK,EAAE,YAAY,GAAGC,4BAAY,EAAE;AAC5C,UAAQ,KAAK,EAAE;CAChB;AACD,KAAI,IAAI,WAAW,kBAAkB,CACnC,eAAc,IAAI,MAAM,IAAI,CAAC;UACpB,IAAI,WAAW,UAAU,CAClC,QAAO,IAAI,MAAM,IAAI,CAAC;UACb,IAAI,WAAW,gBAAgB,CACxC,aAAY,IAAI,MAAM,IAAI,CAAC;MACtB;AACL,UAAQ,MAAM,4BAA4B,IAAI;AAC9C,UAAQ,MAAM,UAAU,CAAC;AACzB,UAAQ,KAAK,EAAE;CAChB;AACF;AAED,KAAK,aAAa;AAChB,SAAQ,MACN,kGACD;AACD,SAAQ,MAAM,UAAU,CAAC;AACzB,SAAQ,KAAK,EAAE;AAChB;AAED,cAAO,KAAK;CACV,KAAK;CACL,gBAAgB;CAChB,kBAAkB;CAClB,cAAc,EACZ,MAAM;EACJ,sBAAsBA;EACtB,iBAAiB;EACjB,eAAe;CAChB,EACF;CACD,cAAc,CACZ,cAAO,2BAA2B,EAClC,cAAO,sBAAsB,AAC9B;CACD;AAGD,EAAC;AAEF,MAAM,SAAS,IAAIC,mDAAU;CAC3B,MAAM;CACN,SAASD;AACV;AAED,MAAM,qBAAqB,cAAO,wBAAwB,OAAO;AAEjE,MAAM,iBAAiB;AAIvB,yBAAW,oBAAoB;CAC7B;CACA,kBAAkB;CAClB;AACD,EAAC,CAAC,MAAM,CAAC,QAAQ;AAChB,SAAQ,MAAM,iBAAiB,IAAI;AAEnC,eAAO,MAAM,eAAe;AAC5B,SAAQ,KAAK,EAAE;AAChB,EAAC;AAGF,cAAO,MAAM,eAAe"}
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "./schema-BzPfPMq7.js";
|
|
3
|
-
import "./client-
|
|
3
|
+
import "./client-D9mOWh6s.js";
|
|
4
4
|
import "./types-H-TSmRpm.js";
|
|
5
5
|
import "./api-client-9mzrj2HY.js";
|
|
6
|
-
import "./formatting-
|
|
6
|
+
import "./formatting-C6Py2iOz.js";
|
|
7
7
|
import "./issue-helpers-Cx6bFCUv.js";
|
|
8
8
|
import "./logging-Cxm8lQvg.js";
|
|
9
|
-
import "./tools-
|
|
9
|
+
import "./tools-DtHRkHKh.js";
|
|
10
10
|
import "./schema-pZrPEvtp.js";
|
|
11
|
-
import "./toolDefinitions-
|
|
11
|
+
import "./toolDefinitions-CfNXEIaX.js";
|
|
12
12
|
import "./resources-OM3EAnnj.js";
|
|
13
13
|
import "./promptDefinitions-C9aGYWZ6.js";
|
|
14
14
|
import "./prompts-Tz-qECa0.js";
|
|
15
|
-
import "./server-
|
|
16
|
-
import { startStdio } from "./stdio-
|
|
17
|
-
import { LIB_VERSION } from "./version-
|
|
15
|
+
import "./server-zkB6OPEz.js";
|
|
16
|
+
import { startStdio } from "./stdio-DQcBQF6y.js";
|
|
17
|
+
import { LIB_VERSION } from "./version-BMRCgO0F.js";
|
|
18
18
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
19
19
|
import * as Sentry from "@sentry/node";
|
|
20
20
|
|
|
@@ -48,7 +48,13 @@ if (!accessToken) {
|
|
|
48
48
|
Sentry.init({
|
|
49
49
|
dsn: sentryDsn,
|
|
50
50
|
sendDefaultPii: true,
|
|
51
|
-
|
|
51
|
+
tracesSampleRate: 1,
|
|
52
|
+
initialScope: { tags: {
|
|
53
|
+
"mcp.server_version": LIB_VERSION,
|
|
54
|
+
"mcp.transport": "stdio",
|
|
55
|
+
"sentry.host": host
|
|
56
|
+
} },
|
|
57
|
+
integrations: [Sentry.consoleLoggingIntegration(), Sentry.zodErrorsIntegration()],
|
|
52
58
|
environment: "stdio"
|
|
53
59
|
});
|
|
54
60
|
const server = new McpServer({
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["accessToken: string | undefined","host: string | undefined","sentryDsn: string | undefined"],"sources":["../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { startStdio } from \"./transports/stdio\";\nimport * as Sentry from \"@sentry/node\";\nimport { LIB_VERSION } from \"./version\";\n\nlet accessToken: string | undefined = process.env.SENTRY_AUTH_TOKEN;\nlet host: string | undefined = process.env.SENTRY_HOST;\nlet sentryDsn: string | undefined =\n process.env.SENTRY_DSN || process.env.DEFAULT_SENTRY_DSN;\n\nconst packageName = \"@sentry/mcp-server\";\n\nfunction getUsage() {\n return `Usage: ${packageName} --access-token=<token> [--host=<host>] [--sentry-dsn=<dsn>]`;\n}\n\nfor (const arg of process.argv.slice(2)) {\n if (arg === \"--version\" || arg === \"-v\") {\n console.log(`${packageName} ${LIB_VERSION}`);\n process.exit(0);\n }\n if (arg.startsWith(\"--access-token=\")) {\n accessToken = arg.split(\"=\")[1];\n } else if (arg.startsWith(\"--host=\")) {\n host = arg.split(\"=\")[1];\n } else if (arg.startsWith(\"--sentry-dsn=\")) {\n sentryDsn = arg.split(\"=\")[1];\n } else {\n console.error(\"Error: Invalid argument:\", arg);\n console.error(getUsage());\n process.exit(1);\n }\n}\n\nif (!accessToken) {\n console.error(\n \"Error: No access token was provided. Pass one with `--access-token` or via `SENTRY_AUTH_TOKEN`.\",\n );\n console.error(getUsage());\n process.exit(1);\n}\n\nSentry.init({\n dsn: sentryDsn,\n sendDefaultPii: true,\n initialScope: {\n tags: {\n
|
|
1
|
+
{"version":3,"file":"index.js","names":["accessToken: string | undefined","host: string | undefined","sentryDsn: string | undefined"],"sources":["../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { startStdio } from \"./transports/stdio\";\nimport * as Sentry from \"@sentry/node\";\nimport { LIB_VERSION } from \"./version\";\n\nlet accessToken: string | undefined = process.env.SENTRY_AUTH_TOKEN;\nlet host: string | undefined = process.env.SENTRY_HOST;\nlet sentryDsn: string | undefined =\n process.env.SENTRY_DSN || process.env.DEFAULT_SENTRY_DSN;\n\nconst packageName = \"@sentry/mcp-server\";\n\nfunction getUsage() {\n return `Usage: ${packageName} --access-token=<token> [--host=<host>] [--sentry-dsn=<dsn>]`;\n}\n\nfor (const arg of process.argv.slice(2)) {\n if (arg === \"--version\" || arg === \"-v\") {\n console.log(`${packageName} ${LIB_VERSION}`);\n process.exit(0);\n }\n if (arg.startsWith(\"--access-token=\")) {\n accessToken = arg.split(\"=\")[1];\n } else if (arg.startsWith(\"--host=\")) {\n host = arg.split(\"=\")[1];\n } else if (arg.startsWith(\"--sentry-dsn=\")) {\n sentryDsn = arg.split(\"=\")[1];\n } else {\n console.error(\"Error: Invalid argument:\", arg);\n console.error(getUsage());\n process.exit(1);\n }\n}\n\nif (!accessToken) {\n console.error(\n \"Error: No access token was provided. Pass one with `--access-token` or via `SENTRY_AUTH_TOKEN`.\",\n );\n console.error(getUsage());\n process.exit(1);\n}\n\nSentry.init({\n dsn: sentryDsn,\n sendDefaultPii: true,\n tracesSampleRate: 1,\n initialScope: {\n tags: {\n \"mcp.server_version\": LIB_VERSION,\n \"mcp.transport\": \"stdio\",\n \"sentry.host\": host,\n },\n },\n integrations: [\n Sentry.consoleLoggingIntegration(),\n Sentry.zodErrorsIntegration(),\n ],\n environment:\n process.env.SENTRY_ENVIRONMENT ??\n (process.env.NODE_ENV !== \"production\" ? \"development\" : \"production\"),\n});\n\nconst server = new McpServer({\n name: \"Sentry MCP\",\n version: LIB_VERSION,\n});\n\nconst instrumentedServer = Sentry.wrapMcpServerWithSentry(server);\n\nconst SENTRY_TIMEOUT = 5000; // 5 seconds\n\n// XXX: we could do what we're doing in routes/auth.ts and pass the context\n// identically, but we don't really need userId and userName yet\nstartStdio(instrumentedServer, {\n accessToken,\n organizationSlug: null,\n host,\n}).catch((err) => {\n console.error(\"Server error:\", err);\n // ensure we've flushed all events\n Sentry.flush(SENTRY_TIMEOUT);\n process.exit(1);\n});\n\n// ensure we've flushed all events\nSentry.flush(SENTRY_TIMEOUT);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAOA,IAAIA,cAAkC,QAAQ,IAAI;AAClD,IAAIC,OAA2B,QAAQ,IAAI;AAC3C,IAAIC,YACF,QAAQ,IAAI;AAEd,MAAM,cAAc;AAEpB,SAAS,WAAW;AAClB,SAAQ,SAAS,YAAY;AAC9B;AAED,KAAK,MAAM,OAAO,QAAQ,KAAK,MAAM,EAAE,EAAE;AACvC,KAAI,QAAQ,eAAe,QAAQ,MAAM;AACvC,UAAQ,KAAK,EAAE,YAAY,GAAG,YAAY,EAAE;AAC5C,UAAQ,KAAK,EAAE;CAChB;AACD,KAAI,IAAI,WAAW,kBAAkB,CACnC,eAAc,IAAI,MAAM,IAAI,CAAC;UACpB,IAAI,WAAW,UAAU,CAClC,QAAO,IAAI,MAAM,IAAI,CAAC;UACb,IAAI,WAAW,gBAAgB,CACxC,aAAY,IAAI,MAAM,IAAI,CAAC;MACtB;AACL,UAAQ,MAAM,4BAA4B,IAAI;AAC9C,UAAQ,MAAM,UAAU,CAAC;AACzB,UAAQ,KAAK,EAAE;CAChB;AACF;AAED,KAAK,aAAa;AAChB,SAAQ,MACN,kGACD;AACD,SAAQ,MAAM,UAAU,CAAC;AACzB,SAAQ,KAAK,EAAE;AAChB;AAED,OAAO,KAAK;CACV,KAAK;CACL,gBAAgB;CAChB,kBAAkB;CAClB,cAAc,EACZ,MAAM;EACJ,sBAAsB;EACtB,iBAAiB;EACjB,eAAe;CAChB,EACF;CACD,cAAc,CACZ,OAAO,2BAA2B,EAClC,OAAO,sBAAsB,AAC9B;CACD;AAGD,EAAC;AAEF,MAAM,SAAS,IAAI,UAAU;CAC3B,MAAM;CACN,SAAS;AACV;AAED,MAAM,qBAAqB,OAAO,wBAAwB,OAAO;AAEjE,MAAM,iBAAiB;AAIvB,WAAW,oBAAoB;CAC7B;CACA,kBAAkB;CAClB;AACD,EAAC,CAAC,MAAM,CAAC,QAAQ;AAChB,SAAQ,MAAM,iBAAiB,IAAI;AAEnC,QAAO,MAAM,eAAe;AAC5B,SAAQ,KAAK,EAAE;AAChB,EAAC;AAGF,OAAO,MAAM,eAAe"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
const require_formatting = require('../formatting-
|
|
1
|
+
const require_formatting = require('../formatting-BmbJ5-Uh.cjs');
|
|
2
2
|
|
|
3
3
|
exports.formatEventOutput = require_formatting.formatEventOutput
|
|
4
|
-
exports.formatFrameHeader = require_formatting.formatFrameHeader
|
|
4
|
+
exports.formatFrameHeader = require_formatting.formatFrameHeader
|
|
5
|
+
exports.formatIssueOutput = require_formatting.formatIssueOutput
|
|
@@ -1,15 +1,26 @@
|
|
|
1
|
-
import { FrameInterface } from "../schema
|
|
2
|
-
import { Event } from "../types
|
|
3
|
-
import "../client
|
|
4
|
-
import "../index
|
|
1
|
+
import { FrameInterface } from "../schema-BbqVXLZS.cjs";
|
|
2
|
+
import { Event, Issue } from "../types-BqMKv2m7.cjs";
|
|
3
|
+
import { SentryApiService } from "../client-Ch0w22UE.cjs";
|
|
4
|
+
import "../index-BPSCxsMC.cjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/internal/formatting.d.ts
|
|
8
8
|
declare function formatFrameHeader(frame: z.infer<typeof FrameInterface>, platform: string | undefined | null): string;
|
|
9
9
|
declare function formatEventOutput(event: Event): string;
|
|
10
|
+
declare function formatIssueOutput({
|
|
11
|
+
organizationSlug,
|
|
12
|
+
issue,
|
|
13
|
+
event,
|
|
14
|
+
apiService
|
|
15
|
+
}: {
|
|
16
|
+
organizationSlug: string;
|
|
17
|
+
issue: Issue;
|
|
18
|
+
event: Event;
|
|
19
|
+
apiService: SentryApiService;
|
|
20
|
+
}): string;
|
|
10
21
|
|
|
11
22
|
//#endregion
|
|
12
23
|
//# sourceMappingURL=formatting.d.ts.map
|
|
13
24
|
|
|
14
|
-
export { formatEventOutput, formatFrameHeader };
|
|
25
|
+
export { formatEventOutput, formatFrameHeader, formatIssueOutput };
|
|
15
26
|
//# sourceMappingURL=formatting.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatting.d.cts","names":[],"sources":["../../src/internal/formatting.ts"],"sourcesContent":null,"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"formatting.d.cts","names":[],"sources":["../../src/internal/formatting.ts"],"sourcesContent":null,"mappings":";;;;;;;iBASgB,iBAAA,QACP,CAAA,CAAE,aAAa;iBAeR,iBAAA,QAAyB;iBAgCzB,iBAAA;;;;;;;EAhDA,KAAA,EAuDP,KAvDO;EAAiB,KAAA,EAwDxB,KAxDwB;EAAA,UACT,EAwDV,gBAxDU;CAAc,CAAA,EAAA,MAA3B;;;AAAK"}
|
|
@@ -1,15 +1,26 @@
|
|
|
1
|
-
import { FrameInterface$1 as FrameInterface } from "../schema
|
|
2
|
-
import { Event } from "../types
|
|
3
|
-
import "../client
|
|
4
|
-
import "../index
|
|
1
|
+
import { FrameInterface$1 as FrameInterface } from "../schema-BnIwkBRb.js";
|
|
2
|
+
import { Event, Issue } from "../types-RxedZjnY.js";
|
|
3
|
+
import { SentryApiService$1 as SentryApiService } from "../client-7aaWrjcF.js";
|
|
4
|
+
import "../index-h64gcVNJ.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/internal/formatting.d.ts
|
|
8
8
|
declare function formatFrameHeader(frame: z.infer<typeof FrameInterface>, platform: string | undefined | null): string;
|
|
9
9
|
declare function formatEventOutput(event: Event): string;
|
|
10
|
+
declare function formatIssueOutput({
|
|
11
|
+
organizationSlug,
|
|
12
|
+
issue,
|
|
13
|
+
event,
|
|
14
|
+
apiService
|
|
15
|
+
}: {
|
|
16
|
+
organizationSlug: string;
|
|
17
|
+
issue: Issue;
|
|
18
|
+
event: Event;
|
|
19
|
+
apiService: SentryApiService;
|
|
20
|
+
}): string;
|
|
10
21
|
|
|
11
22
|
//#endregion
|
|
12
23
|
//# sourceMappingURL=formatting.d.ts.map
|
|
13
24
|
|
|
14
|
-
export { formatEventOutput, formatFrameHeader };
|
|
25
|
+
export { formatEventOutput, formatFrameHeader, formatIssueOutput };
|
|
15
26
|
//# sourceMappingURL=formatting.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatting.d.ts","names":[],"sources":["../../src/internal/formatting.ts"],"sourcesContent":null,"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"formatting.d.ts","names":[],"sources":["../../src/internal/formatting.ts"],"sourcesContent":null,"mappings":";;;;;;;iBASgB,iBAAA,QACP,CAAA,CAAE,aAAa;iBAeR,iBAAA,QAAyB;iBAgCzB,iBAAA;;;;;;;EAhDA,KAAA,EAuDP,KAvDO;EAAiB,KAAA,EAwDxB,KAxDwB;EAAA,UACT,EAwDV,gBAxDU;CAAc,CAAA,EAAA,MAA3B;;;AAAK"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { formatEventOutput, formatFrameHeader } from "../formatting-
|
|
1
|
+
import { formatEventOutput, formatFrameHeader, formatIssueOutput } from "../formatting-C6Py2iOz.js";
|
|
2
2
|
|
|
3
|
-
export { formatEventOutput, formatFrameHeader };
|
|
3
|
+
export { formatEventOutput, formatFrameHeader, formatIssueOutput };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_issue_helpers = require('../issue-helpers-CdWMhVWJ.cjs');
|
|
3
|
-
const require_dist = require('../dist-
|
|
4
|
-
const require_vi_ClIskdbk = require('../vi.ClIskdbk-
|
|
3
|
+
const require_dist = require('../dist-wiyJYfAH.cjs');
|
|
4
|
+
const require_vi_ClIskdbk = require('../vi.ClIskdbk-TqmAThAO.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/internal/issue-helpers.test.ts
|
|
7
7
|
require_dist.describe("extractIssueId", () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { extractIssueId, parseIssueId, parseIssueParams } from "../issue-helpers-Cx6bFCUv.js";
|
|
2
|
-
import { describe, it } from "../dist-
|
|
3
|
-
import { globalExpect } from "../vi.ClIskdbk-
|
|
2
|
+
import { describe, it } from "../dist-BKh-M1A1.js";
|
|
3
|
+
import { globalExpect } from "../vi.ClIskdbk-BbUmO3mx.js";
|
|
4
4
|
|
|
5
5
|
//#region src/internal/issue-helpers.test.ts
|
|
6
6
|
describe("extractIssueId", () => {
|
|
@@ -12,4 +12,4 @@ declare const PROMPT_DEFINITIONS: {
|
|
|
12
12
|
//#endregion
|
|
13
13
|
//# sourceMappingURL=promptDefinitions.d.ts.map
|
|
14
14
|
export { PROMPT_DEFINITIONS as PROMPT_DEFINITIONS$1 };
|
|
15
|
-
//# sourceMappingURL=promptDefinitions
|
|
15
|
+
//# sourceMappingURL=promptDefinitions-C85r2wAk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promptDefinitions-C85r2wAk.d.ts","names":[],"sources":["../src/promptDefinitions.ts"],"sourcesContent":null,"mappings":";;;cAGa;;EAAA,WAAA,EAAA,MAAA;EAWZ,YAAA,EAAA;IAAA,gBAAA,EAAA,CAAA,CAAA,SAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promptDefinitions-CkGJr3c4.d.cts","names":[],"sources":["../src/promptDefinitions.ts"],"sourcesContent":null,"mappings":";;;cAGa;;EAAA,WAAA,EAAA,MAAA;EAWZ,YAAA,EAAA;IAAA,gBAAA,EAAA,CAAA,CAAA,SAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PROMPT_DEFINITIONS } from "./promptDefinitions
|
|
1
|
+
import { PROMPT_DEFINITIONS } from "./promptDefinitions-CkGJr3c4.cjs";
|
|
2
2
|
export { PROMPT_DEFINITIONS };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PROMPT_DEFINITIONS$1 as PROMPT_DEFINITIONS } from "./promptDefinitions
|
|
1
|
+
import { PROMPT_DEFINITIONS$1 as PROMPT_DEFINITIONS } from "./promptDefinitions-C85r2wAk.js";
|
|
2
2
|
export { PROMPT_DEFINITIONS };
|
|
@@ -8534,4 +8534,4 @@ declare const AutofixRunStateSchema: z.ZodObject<{
|
|
|
8534
8534
|
|
|
8535
8535
|
//# sourceMappingURL=schema.d.ts.map
|
|
8536
8536
|
export { ApiErrorSchema, AutofixRunSchema, AutofixRunStateSchema, AutofixRunStepDefaultSchema, AutofixRunStepRootCauseAnalysisSchema, AutofixRunStepSchema, AutofixRunStepSolutionSchema, ClientKeyListSchema, ClientKeySchema, ErrorEntrySchema, ErrorEventSchema, ErrorsSearchResponseSchema, EventSchema, EventsResponseSchema, ExceptionInterface, FrameInterface, IssueListSchema, IssueSchema, OrganizationListSchema, OrganizationSchema, ProjectListSchema, ProjectSchema, ReleaseListSchema, ReleaseSchema, SpansSearchResponseSchema, TagListSchema, TagSchema, TeamListSchema, TeamSchema, TransactionEventSchema, UnknownEventSchema };
|
|
8537
|
-
//# sourceMappingURL=schema
|
|
8537
|
+
//# sourceMappingURL=schema-BbqVXLZS.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-BbqVXLZS.d.cts","names":[],"sources":["../src/api-client/schema.ts"],"sourcesContent":null,"mappings":";;;cAEa,gBAAc,CAAA,CAAA;UAIX,CAAA,CAAA;AAJhB,CAAA,EAAA,aAAa,cAIG,oBAAA,CAAA;EAAA,MAAA,aAAA;CAAA,cAAA,EAAA,aAAA,CAAA,mBAAA,CAAA;;;cAEH,oBAAkB,CAAA,CAAA;kBAQ7B,CAAA,CAAA;;;;IAdyB,SAAA,aAAA;IAAA,eAAA,aAAA;EAMd,CAAA,EAAA,OAAA,cAQX,EAAA;IAAA,SAAA,EAAA,MAAA;IAAA,eAAA,EAAA,MAAA;;;;;;;;;;IAR6B,SAAA,EAAA,MAAA;IAAA,eAAA,EAAA,MAAA;EAUlB,CAAA;CAAoD,EAAA;EAAA,IAAA,EAAA,MAAA;;;;;;;;cAApD,wBAAsB,CAAA,CAAA,SAAA,CAAA,CAAA;kBAA8B,CAAA,CAAA;MAA9B,aAAA;EAAA,IAAA,aAAA;EAAA,KAAA,aAAA,CAAA;IAEtB,SAIX,aAAA;IAAA,eAAA,aAAA;EAAA,CAAA,EAAA,OAAA,cAAA,EAAA;;;;;;;AAJqB,CAAA,EAAA,OAAA,cAAA,EAAA;EAMV,IAAA,EAAA,MAAA;EAAoC,EAAA,EAAA,MAAA,GAAA,MAAA;EAAA,IAAA,EAAA,MAAA;;;;;;MAAtB,EAAA,MAAA;EAAA,EAAA,EAAA,MAAA,GAAA,MAAA;EAAA,IAAA,EAAA,MAAA;EAEd,KAAA,EAAA;IAIX,SAAA,EAAA,MAAA;IAAA,eAAA,EAAA,MAAA;;;cAZW,YAAU,CAAA,CAAA;kBAIrB,CAAA,CAAA;;MAIwB,aAAA;AAAA,CAAA,EAAA,OAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAOpB,uBAAqB,CAAA,CAAA;;YAWhC,CAAA,CAAA"}
|
|
@@ -8534,4 +8534,4 @@ declare const AutofixRunStateSchema: z.ZodObject<{
|
|
|
8534
8534
|
|
|
8535
8535
|
//# sourceMappingURL=schema.d.ts.map
|
|
8536
8536
|
export { ApiErrorSchema as ApiErrorSchema$1, AutofixRunSchema as AutofixRunSchema$1, AutofixRunStateSchema as AutofixRunStateSchema$1, AutofixRunStepDefaultSchema as AutofixRunStepDefaultSchema$1, AutofixRunStepRootCauseAnalysisSchema as AutofixRunStepRootCauseAnalysisSchema$1, AutofixRunStepSchema as AutofixRunStepSchema$1, AutofixRunStepSolutionSchema as AutofixRunStepSolutionSchema$1, ClientKeyListSchema as ClientKeyListSchema$1, ClientKeySchema as ClientKeySchema$1, ErrorEntrySchema as ErrorEntrySchema$1, ErrorEventSchema as ErrorEventSchema$1, ErrorsSearchResponseSchema as ErrorsSearchResponseSchema$1, EventSchema as EventSchema$1, EventsResponseSchema as EventsResponseSchema$1, ExceptionInterface as ExceptionInterface$1, FrameInterface as FrameInterface$1, IssueListSchema as IssueListSchema$1, IssueSchema as IssueSchema$1, OrganizationListSchema as OrganizationListSchema$1, OrganizationSchema as OrganizationSchema$1, ProjectListSchema as ProjectListSchema$1, ProjectSchema as ProjectSchema$1, ReleaseListSchema as ReleaseListSchema$1, ReleaseSchema as ReleaseSchema$1, SpansSearchResponseSchema as SpansSearchResponseSchema$1, TagListSchema as TagListSchema$1, TagSchema as TagSchema$1, TeamListSchema as TeamListSchema$1, TeamSchema as TeamSchema$1, TransactionEventSchema as TransactionEventSchema$1, UnknownEventSchema as UnknownEventSchema$1 };
|
|
8537
|
-
//# sourceMappingURL=schema
|
|
8537
|
+
//# sourceMappingURL=schema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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAOpB,uBAAqB,CAAA,CAAA;;YAWhC,CAAA,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./chunk-BtT13l48.cjs');
|
|
3
|
-
const require_client = require('./client-
|
|
3
|
+
const require_client = require('./client-CLuQEpjg.cjs');
|
|
4
4
|
const require_logging = require('./logging-BEMgC5SA.cjs');
|
|
5
|
-
const require_tools = require('./tools-
|
|
6
|
-
const require_toolDefinitions = require('./toolDefinitions-
|
|
5
|
+
const require_tools = require('./tools-LuDiLnAX.cjs');
|
|
6
|
+
const require_toolDefinitions = require('./toolDefinitions-CRtHauHJ.cjs');
|
|
7
7
|
const require_resources = require('./resources-BAE7VVZZ.cjs');
|
|
8
8
|
const require_promptDefinitions = require('./promptDefinitions-OnJHLqrZ.cjs');
|
|
9
9
|
const require_prompts = require('./prompts--QCiXmR2.cjs');
|
|
@@ -48,6 +48,7 @@ async function configureServer({ server, context, onToolComplete }) {
|
|
|
48
48
|
return await (0, __sentry_core.startNewTrace)(async () => {
|
|
49
49
|
return await (0, __sentry_core.startSpan)({ name: `mcp.resource/${resource.name}` }, async () => {
|
|
50
50
|
if (context.userId) (0, __sentry_core.setUser)({ id: context.userId });
|
|
51
|
+
if (context.clientId) (0, __sentry_core.setTag)("client.id", context.clientId);
|
|
51
52
|
return resource.handler(url);
|
|
52
53
|
});
|
|
53
54
|
});
|
|
@@ -60,6 +61,7 @@ async function configureServer({ server, context, onToolComplete }) {
|
|
|
60
61
|
return await (0, __sentry_core.startNewTrace)(async () => {
|
|
61
62
|
return await (0, __sentry_core.startSpan)({ name: `mcp.prompt/${prompt.name}` }, async () => {
|
|
62
63
|
if (context.userId) (0, __sentry_core.setUser)({ id: context.userId });
|
|
64
|
+
if (context.clientId) (0, __sentry_core.setTag)("client.id", context.clientId);
|
|
63
65
|
return await handler(...args);
|
|
64
66
|
});
|
|
65
67
|
});
|
|
@@ -75,6 +77,7 @@ async function configureServer({ server, context, onToolComplete }) {
|
|
|
75
77
|
return await (0, __sentry_core.startNewTrace)(async () => {
|
|
76
78
|
return await (0, __sentry_core.startSpan)({ name: `mcp.tool/${tool.name}` }, async () => {
|
|
77
79
|
if (context.userId) (0, __sentry_core.setUser)({ id: context.userId });
|
|
80
|
+
if (context.clientId) (0, __sentry_core.setTag)("client.id", context.clientId);
|
|
78
81
|
try {
|
|
79
82
|
const output = await handler(context, ...args);
|
|
80
83
|
return { content: [{
|
|
@@ -106,4 +109,4 @@ Object.defineProperty(exports, 'configureServer', {
|
|
|
106
109
|
return configureServer;
|
|
107
110
|
}
|
|
108
111
|
});
|
|
109
|
-
//# sourceMappingURL=server-
|
|
112
|
+
//# sourceMappingURL=server-D35uvgO3.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-D35uvgO3.cjs","names":["error: unknown","ApiError","RESOURCES","PROMPT_DEFINITIONS","PROMPT_HANDLERS","TOOL_DEFINITIONS","TOOL_HANDLERS"],"sources":["../src/server.ts"],"sourcesContent":["import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { TOOL_HANDLERS } from \"./tools\";\nimport { TOOL_DEFINITIONS } from \"./toolDefinitions\";\nimport type { ServerContext } from \"./types\";\nimport { setTag, setUser, startNewTrace, startSpan } from \"@sentry/core\";\nimport { logError } from \"./logging\";\nimport { RESOURCES } from \"./resources\";\nimport { PROMPT_DEFINITIONS } from \"./promptDefinitions\";\nimport { PROMPT_HANDLERS } from \"./prompts\";\nimport { ApiError } from \"./api-client\";\n\nfunction isApiError(error: unknown) {\n return error instanceof ApiError || Object.hasOwn(error as any, \"status\");\n}\n\nasync function logAndFormatError(error: unknown) {\n if (isApiError(error)) {\n const typedError = error as ApiError;\n return [\n \"**Error**\",\n `There was an HTTP ${typedError.status} error with the your request to the Sentry API.`,\n `${typedError.message}`,\n `You may be able to resolve the issue by addressing the concern and trying again.`,\n ].join(\"\\n\\n\");\n }\n\n const eventId = logError(error);\n\n return [\n \"**Error**\",\n \"It looks like there was a problem communicating with the Sentry API.\",\n \"Please report the following to the user for the Sentry team:\",\n `**Event ID**: ${eventId}`,\n process.env.NODE_ENV !== \"production\"\n ? error instanceof Error\n ? error.message\n : String(error)\n : \"\",\n ].join(\"\\n\\n\");\n}\n\nexport async function configureServer({\n server,\n context,\n onToolComplete,\n}: { server: McpServer; context: ServerContext; onToolComplete?: () => void }) {\n server.server.onerror = (error) => {\n logError(error);\n };\n\n for (const resource of RESOURCES) {\n server.resource(\n resource.name,\n resource.uri,\n {\n description: resource.description,\n mimeType: resource.mimeType,\n },\n // TODO: this doesnt support any error handling afaict via the spec\n async (url) => {\n return await startNewTrace(async () => {\n return await startSpan(\n { name: `mcp.resource/${resource.name}` },\n async () => {\n if (context.userId) {\n setUser({\n id: context.userId,\n });\n }\n if (context.clientId) {\n setTag(\"client.id\", context.clientId);\n }\n\n return resource.handler(url);\n },\n );\n });\n },\n );\n }\n\n for (const prompt of PROMPT_DEFINITIONS) {\n const handler = PROMPT_HANDLERS[prompt.name];\n\n server.prompt(\n prompt.name,\n prompt.description,\n prompt.paramsSchema,\n async (...args) => {\n try {\n return await startNewTrace(async () => {\n return await startSpan(\n { name: `mcp.prompt/${prompt.name}` },\n async () => {\n if (context.userId) {\n setUser({\n id: context.userId,\n });\n }\n if (context.clientId) {\n setTag(\"client.id\", context.clientId);\n }\n\n // TODO(dcramer): I'm too dumb to figure this out\n // @ts-ignore\n return await handler(...args);\n },\n );\n });\n } finally {\n onToolComplete?.();\n }\n },\n );\n }\n\n for (const tool of TOOL_DEFINITIONS) {\n const handler = TOOL_HANDLERS[tool.name];\n\n server.tool(\n tool.name as string,\n tool.description,\n tool.paramsSchema ? tool.paramsSchema : {},\n async (...args) => {\n try {\n return await startNewTrace(async () => {\n return await startSpan(\n { name: `mcp.tool/${tool.name}` },\n async () => {\n if (context.userId) {\n setUser({\n id: context.userId,\n });\n }\n if (context.clientId) {\n setTag(\"client.id\", context.clientId);\n }\n\n try {\n // TODO(dcramer): I'm too dumb to figure this out\n // @ts-ignore\n const output = await handler(context, ...args);\n\n return {\n content: [\n {\n type: \"text\",\n text: output,\n },\n ],\n };\n } catch (error) {\n return {\n content: [\n {\n type: \"text\",\n text: await logAndFormatError(error),\n },\n ],\n isError: true,\n };\n }\n },\n );\n });\n } finally {\n onToolComplete?.();\n }\n },\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;AAWA,SAAS,WAAWA,OAAgB;AAClC,QAAO,iBAAiBC,2BAAY,OAAO,OAAO,OAAc,SAAS;AAC1E;AAED,eAAe,kBAAkBD,OAAgB;AAC/C,KAAI,WAAW,MAAM,EAAE;EACrB,MAAM,aAAa;AACnB,SAAO;GACL;IACC,oBAAoB,WAAW,OAAO;IACtC,EAAE,WAAW,QAAQ;IACrB;EACF,EAAC,KAAK,OAAO;CACf;CAED,MAAM,UAAU,yBAAS,MAAM;AAE/B,QAAO;EACL;EACA;EACA;GACC,gBAAgB,QAAQ;EACzB,QAAQ,IAAI,aAAa,eACrB,iBAAiB,QACf,MAAM,UACN,OAAO,MAAM,GACf;CACL,EAAC,KAAK,OAAO;AACf;AAED,eAAsB,gBAAgB,EACpC,QACA,SACA,gBAC2E,EAAE;AAC7E,QAAO,OAAO,UAAU,CAAC,UAAU;AACjC,2BAAS,MAAM;CAChB;AAED,MAAK,MAAM,YAAYE,4BACrB,QAAO;EACL,SAAS;EACT,SAAS;EACT;GACE,aAAa,SAAS;GACtB,UAAU,SAAS;EACpB;;EAED,OAAO,QAAQ;AACb,UAAO,MAAM,iCAAc,YAAY;AACrC,WAAO,MAAM,6BACX,EAAE,OAAO,eAAe,SAAS,KAAK,EAAG,GACzC,YAAY;AACV,SAAI,QAAQ,OACV,4BAAQ,EACN,IAAI,QAAQ,OACb,EAAC;AAEJ,SAAI,QAAQ,SACV,2BAAO,aAAa,QAAQ,SAAS;AAGvC,YAAO,SA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,11 +1,11 @@
|
|
|
1
|
-
import { ApiError } from "./client-
|
|
1
|
+
import { ApiError } from "./client-D9mOWh6s.js";
|
|
2
2
|
import { logError } from "./logging-Cxm8lQvg.js";
|
|
3
|
-
import { TOOL_HANDLERS } from "./tools-
|
|
4
|
-
import { TOOL_DEFINITIONS } from "./toolDefinitions-
|
|
3
|
+
import { TOOL_HANDLERS } from "./tools-DtHRkHKh.js";
|
|
4
|
+
import { TOOL_DEFINITIONS } from "./toolDefinitions-CfNXEIaX.js";
|
|
5
5
|
import { RESOURCES } from "./resources-OM3EAnnj.js";
|
|
6
6
|
import { PROMPT_DEFINITIONS } from "./promptDefinitions-C9aGYWZ6.js";
|
|
7
7
|
import { PROMPT_HANDLERS } from "./prompts-Tz-qECa0.js";
|
|
8
|
-
import { setUser, startNewTrace, startSpan } from "@sentry/core";
|
|
8
|
+
import { setTag, setUser, startNewTrace, startSpan } from "@sentry/core";
|
|
9
9
|
|
|
10
10
|
//#region src/server.ts
|
|
11
11
|
function isApiError(error) {
|
|
@@ -46,6 +46,7 @@ async function configureServer({ server, context, onToolComplete }) {
|
|
|
46
46
|
return await startNewTrace(async () => {
|
|
47
47
|
return await startSpan({ name: `mcp.resource/${resource.name}` }, async () => {
|
|
48
48
|
if (context.userId) setUser({ id: context.userId });
|
|
49
|
+
if (context.clientId) setTag("client.id", context.clientId);
|
|
49
50
|
return resource.handler(url);
|
|
50
51
|
});
|
|
51
52
|
});
|
|
@@ -58,6 +59,7 @@ async function configureServer({ server, context, onToolComplete }) {
|
|
|
58
59
|
return await startNewTrace(async () => {
|
|
59
60
|
return await startSpan({ name: `mcp.prompt/${prompt.name}` }, async () => {
|
|
60
61
|
if (context.userId) setUser({ id: context.userId });
|
|
62
|
+
if (context.clientId) setTag("client.id", context.clientId);
|
|
61
63
|
return await handler(...args);
|
|
62
64
|
});
|
|
63
65
|
});
|
|
@@ -73,6 +75,7 @@ async function configureServer({ server, context, onToolComplete }) {
|
|
|
73
75
|
return await startNewTrace(async () => {
|
|
74
76
|
return await startSpan({ name: `mcp.tool/${tool.name}` }, async () => {
|
|
75
77
|
if (context.userId) setUser({ id: context.userId });
|
|
78
|
+
if (context.clientId) setTag("client.id", context.clientId);
|
|
76
79
|
try {
|
|
77
80
|
const output = await handler(context, ...args);
|
|
78
81
|
return { content: [{
|
|
@@ -99,4 +102,4 @@ async function configureServer({ server, context, onToolComplete }) {
|
|
|
99
102
|
|
|
100
103
|
//#endregion
|
|
101
104
|
export { configureServer };
|
|
102
|
-
//# sourceMappingURL=server-
|
|
105
|
+
//# sourceMappingURL=server-zkB6OPEz.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-zkB6OPEz.js","names":["error: unknown"],"sources":["../src/server.ts"],"sourcesContent":["import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { TOOL_HANDLERS } from \"./tools\";\nimport { TOOL_DEFINITIONS } from \"./toolDefinitions\";\nimport type { ServerContext } from \"./types\";\nimport { setTag, setUser, startNewTrace, startSpan } from \"@sentry/core\";\nimport { logError } from \"./logging\";\nimport { RESOURCES } from \"./resources\";\nimport { PROMPT_DEFINITIONS } from \"./promptDefinitions\";\nimport { PROMPT_HANDLERS } from \"./prompts\";\nimport { ApiError } from \"./api-client\";\n\nfunction isApiError(error: unknown) {\n return error instanceof ApiError || Object.hasOwn(error as any, \"status\");\n}\n\nasync function logAndFormatError(error: unknown) {\n if (isApiError(error)) {\n const typedError = error as ApiError;\n return [\n \"**Error**\",\n `There was an HTTP ${typedError.status} error with the your request to the Sentry API.`,\n `${typedError.message}`,\n `You may be able to resolve the issue by addressing the concern and trying again.`,\n ].join(\"\\n\\n\");\n }\n\n const eventId = logError(error);\n\n return [\n \"**Error**\",\n \"It looks like there was a problem communicating with the Sentry API.\",\n \"Please report the following to the user for the Sentry team:\",\n `**Event ID**: ${eventId}`,\n process.env.NODE_ENV !== \"production\"\n ? error instanceof Error\n ? error.message\n : String(error)\n : \"\",\n ].join(\"\\n\\n\");\n}\n\nexport async function configureServer({\n server,\n context,\n onToolComplete,\n}: { server: McpServer; context: ServerContext; onToolComplete?: () => void }) {\n server.server.onerror = (error) => {\n logError(error);\n };\n\n for (const resource of RESOURCES) {\n server.resource(\n resource.name,\n resource.uri,\n {\n description: resource.description,\n mimeType: resource.mimeType,\n },\n // TODO: this doesnt support any error handling afaict via the spec\n async (url) => {\n return await startNewTrace(async () => {\n return await startSpan(\n { name: `mcp.resource/${resource.name}` },\n async () => {\n if (context.userId) {\n setUser({\n id: context.userId,\n });\n }\n if (context.clientId) {\n setTag(\"client.id\", context.clientId);\n }\n\n return resource.handler(url);\n },\n );\n });\n },\n );\n }\n\n for (const prompt of PROMPT_DEFINITIONS) {\n const handler = PROMPT_HANDLERS[prompt.name];\n\n server.prompt(\n prompt.name,\n prompt.description,\n prompt.paramsSchema,\n async (...args) => {\n try {\n return await startNewTrace(async () => {\n return await startSpan(\n { name: `mcp.prompt/${prompt.name}` },\n async () => {\n if (context.userId) {\n setUser({\n id: context.userId,\n });\n }\n if (context.clientId) {\n setTag(\"client.id\", context.clientId);\n }\n\n // TODO(dcramer): I'm too dumb to figure this out\n // @ts-ignore\n return await handler(...args);\n },\n );\n });\n } finally {\n onToolComplete?.();\n }\n },\n );\n }\n\n for (const tool of TOOL_DEFINITIONS) {\n const handler = TOOL_HANDLERS[tool.name];\n\n server.tool(\n tool.name as string,\n tool.description,\n tool.paramsSchema ? tool.paramsSchema : {},\n async (...args) => {\n try {\n return await startNewTrace(async () => {\n return await startSpan(\n { name: `mcp.tool/${tool.name}` },\n async () => {\n if (context.userId) {\n setUser({\n id: context.userId,\n });\n }\n if (context.clientId) {\n setTag(\"client.id\", context.clientId);\n }\n\n try {\n // TODO(dcramer): I'm too dumb to figure this out\n // @ts-ignore\n const output = await handler(context, ...args);\n\n return {\n content: [\n {\n type: \"text\",\n text: output,\n },\n ],\n };\n } catch (error) {\n return {\n content: [\n {\n type: \"text\",\n text: await logAndFormatError(error),\n },\n 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