@sentry/mcp-server 0.14.0 → 0.15.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/{analyze-issue-with-seer-DbAWpyTC.cjs → analyze-issue-with-seer-BkVrrh28.cjs} +9 -16
- package/dist/analyze-issue-with-seer-BkVrrh28.cjs.map +1 -0
- package/dist/{analyze-issue-with-seer-BsNarzJN.js → analyze-issue-with-seer-CoqsTklL.js} +9 -16
- package/dist/analyze-issue-with-seer-CoqsTklL.js.map +1 -0
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/index.d.cts +3 -3
- package/dist/api-client/index.d.ts +3 -3
- 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-CILwfx6G.d.cts → client-CQ9Xe1aN.d.cts} +7 -7
- package/dist/{client-CILwfx6G.d.cts.map → client-CQ9Xe1aN.d.cts.map} +1 -1
- package/dist/{client-BCN17Wbp.d.ts → client-VCJp6Kcu.d.ts} +6 -6
- package/dist/{client-BCN17Wbp.d.ts.map → client-VCJp6Kcu.d.ts.map} +1 -1
- package/dist/{create-dsn-CDcL2DLD.js → create-dsn-D530I7Lr.js} +1 -1
- package/dist/{create-dsn-CDcL2DLD.js.map → create-dsn-D530I7Lr.js.map} +1 -1
- package/dist/{create-dsn-fESUtX3R.cjs → create-dsn-Dz8nyTFw.cjs} +1 -1
- package/dist/{create-dsn-fESUtX3R.cjs.map → create-dsn-Dz8nyTFw.cjs.map} +1 -1
- package/dist/{create-project-Bg5uDkc4.cjs → create-project-BxzRiryg.cjs} +2 -2
- package/dist/{create-project-Bg5uDkc4.cjs.map → create-project-BxzRiryg.cjs.map} +1 -1
- package/dist/{create-project-DY5mFznV.js → create-project-K1od5Rhx.js} +2 -2
- package/dist/{create-project-DY5mFznV.js.map → create-project-K1od5Rhx.js.map} +1 -1
- package/dist/{create-team-5purh64V.cjs → create-team-CJhrccc1.cjs} +1 -1
- package/dist/{create-team-5purh64V.cjs.map → create-team-CJhrccc1.cjs.map} +1 -1
- package/dist/{create-team-C2R7EUC3.js → create-team-zHz00C6Q.js} +1 -1
- package/dist/{create-team-C2R7EUC3.js.map → create-team-zHz00C6Q.js.map} +1 -1
- package/dist/{find-dsns-CvfcLB9Z.js → find-dsns-BoEP0N7B.js} +1 -1
- package/dist/{find-dsns-CvfcLB9Z.js.map → find-dsns-BoEP0N7B.js.map} +1 -1
- package/dist/{find-dsns-ZZ-thiNk.cjs → find-dsns-CK59RaUJ.cjs} +1 -1
- package/dist/{find-dsns-ZZ-thiNk.cjs.map → find-dsns-CK59RaUJ.cjs.map} +1 -1
- package/dist/{find-errors-CuRm4PzL.js → find-errors-C3oUMeRi.js} +1 -1
- package/dist/{find-errors-CuRm4PzL.js.map → find-errors-C3oUMeRi.js.map} +1 -1
- package/dist/{find-errors-Drzv7hzM.cjs → find-errors-CB9NpSxG.cjs} +1 -1
- package/dist/{find-errors-Drzv7hzM.cjs.map → find-errors-CB9NpSxG.cjs.map} +1 -1
- package/dist/{find-transactions-DZCj81jP.js → find-transactions-BiBgg-AE.js} +1 -1
- package/dist/{find-transactions-DZCj81jP.js.map → find-transactions-BiBgg-AE.js.map} +1 -1
- package/dist/{find-transactions-DIJ80wkd.cjs → find-transactions-DuZyqjhF.cjs} +1 -1
- package/dist/{find-transactions-DIJ80wkd.cjs.map → find-transactions-DuZyqjhF.cjs.map} +1 -1
- package/dist/{formatting-pUm38KOj.js → formatting-Bvyded57.js} +34 -2
- package/dist/formatting-Bvyded57.js.map +1 -0
- package/dist/{formatting-kdIeURER.d.ts → formatting-CcTK2X8V.d.cts} +7 -5
- package/dist/formatting-CcTK2X8V.d.cts.map +1 -0
- package/dist/{formatting-BlMiQa9i.cjs → formatting-D0Aki7rK.cjs} +33 -2
- package/dist/formatting-D0Aki7rK.cjs.map +1 -0
- package/dist/{formatting-utils-C3sej5ER.js → formatting-utils-DgOyTl-m.js} +1 -1
- package/dist/{formatting-utils-C3sej5ER.js.map → formatting-utils-DgOyTl-m.js.map} +1 -1
- package/dist/{formatting-utils-DDz14xeB.cjs → formatting-utils-m9R5bsRU.cjs} +1 -1
- package/dist/{formatting-utils-DDz14xeB.cjs.map → formatting-utils-m9R5bsRU.cjs.map} +1 -1
- package/dist/{formatting-CHh9Q_OW.d.cts → formatting-vtXxusbn.d.ts} +7 -5
- package/dist/formatting-vtXxusbn.d.ts.map +1 -0
- package/dist/{get-event-attachment-ChRw3jlQ.cjs → get-event-attachment-C-ig2-3F.cjs} +1 -1
- package/dist/{get-event-attachment-ChRw3jlQ.cjs.map → get-event-attachment-C-ig2-3F.cjs.map} +1 -1
- package/dist/{get-event-attachment-CuU-_5T6.js → get-event-attachment-DVCPpUMj.js} +1 -1
- package/dist/{get-event-attachment-CuU-_5T6.js.map → get-event-attachment-DVCPpUMj.js.map} +1 -1
- package/dist/{get-issue-details-CxChU4U9.js → get-issue-details-Dcmzxknx.js} +23 -10
- package/dist/get-issue-details-Dcmzxknx.js.map +1 -0
- package/dist/{get-issue-details-DFwZRbmU.cjs → get-issue-details-lBrYR9yx.cjs} +23 -10
- package/dist/get-issue-details-lBrYR9yx.cjs.map +1 -0
- package/dist/index.cjs +21 -21
- package/dist/index.js +21 -21
- package/dist/internal/formatting.cjs +2 -1
- package/dist/internal/formatting.d.cts +4 -4
- package/dist/internal/formatting.d.ts +4 -4
- package/dist/internal/formatting.js +2 -1
- package/dist/internal/test-fixtures.d.cts +44 -44
- package/dist/internal/test-fixtures.d.cts.map +1 -1
- package/dist/internal/test-fixtures.d.ts +170 -170
- package/dist/internal/test-fixtures.d.ts.map +1 -1
- package/dist/{logging-oIouXrcb.cjs → logging-CX2buXiG.cjs} +1 -1
- package/dist/{logging-oIouXrcb.cjs.map → logging-CX2buXiG.cjs.map} +1 -1
- package/dist/{logging-LnQMFw-_.js → logging-DzxYBMrn.js} +1 -1
- package/dist/{logging-LnQMFw-_.js.map → logging-DzxYBMrn.js.map} +1 -1
- package/dist/logging.cjs +1 -1
- package/dist/logging.js +1 -1
- package/dist/{schema--5m4KI84.d.ts → schema-3NeMWRAm.d.cts} +452 -452
- package/dist/{schema-ya35hkEL.d.cts.map → schema-3NeMWRAm.d.cts.map} +1 -1
- package/dist/{schema-ya35hkEL.d.cts → schema-B3CzDGJk.d.ts} +401 -401
- package/dist/{schema--5m4KI84.d.ts.map → schema-B3CzDGJk.d.ts.map} +1 -1
- package/dist/schema.d.cts.map +1 -1
- package/dist/{seer-utils-CzYEEZb2.cjs → seer-utils-CDm5J8ur.cjs} +2 -2
- package/dist/{seer-utils-CzYEEZb2.cjs.map → seer-utils-CDm5J8ur.cjs.map} +1 -1
- package/dist/{seer-utils-Ckr8nYlz.js → seer-utils-Cj9DXrow.js} +2 -2
- package/dist/{seer-utils-Ckr8nYlz.js.map → seer-utils-Cj9DXrow.js.map} +1 -1
- package/dist/{server-DOy-M9Ko.js → server-BSRxzYFd.js} +3 -3
- package/dist/{server-DOy-M9Ko.js.map → server-BSRxzYFd.js.map} +1 -1
- package/dist/{server-BpEIZVaZ.cjs → server-Dgkqz8bA.cjs} +3 -3
- package/dist/{server-BpEIZVaZ.cjs.map → server-Dgkqz8bA.cjs.map} +1 -1
- package/dist/server.cjs +18 -18
- package/dist/server.js +18 -18
- package/dist/{stdio-DMEgJ_fG.cjs → stdio-BQAm0Liz.cjs} +3 -3
- package/dist/{stdio-DMEgJ_fG.cjs.map → stdio-BQAm0Liz.cjs.map} +1 -1
- package/dist/{stdio-B2NDq7Ax.js → stdio-BcihaDjO.js} +3 -3
- package/dist/{stdio-B2NDq7Ax.js.map → stdio-BcihaDjO.js.map} +1 -1
- package/dist/test-setup.cjs +1 -16
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +1 -16
- package/dist/test-setup.js.map +1 -1
- package/dist/toolDefinitions.js +2 -2
- package/dist/tools/analyze-issue-with-seer.cjs +4 -4
- package/dist/tools/analyze-issue-with-seer.js +4 -4
- package/dist/tools/create-dsn.cjs +1 -1
- package/dist/tools/create-dsn.js +1 -1
- package/dist/tools/create-project.cjs +2 -2
- package/dist/tools/create-project.js +2 -2
- package/dist/tools/create-team.cjs +1 -1
- package/dist/tools/create-team.js +1 -1
- package/dist/tools/find-dsns.cjs +1 -1
- package/dist/tools/find-dsns.js +1 -1
- package/dist/tools/find-errors.cjs +1 -1
- package/dist/tools/find-errors.js +1 -1
- package/dist/tools/find-transactions.cjs +1 -1
- package/dist/tools/find-transactions.js +1 -1
- package/dist/tools/get-event-attachment.cjs +1 -1
- package/dist/tools/get-event-attachment.js +1 -1
- package/dist/tools/get-issue-details.cjs +4 -3
- package/dist/tools/get-issue-details.js +4 -3
- package/dist/tools/index.cjs +17 -17
- package/dist/tools/index.d.cts +76 -76
- package/dist/tools/index.d.ts +76 -76
- package/dist/tools/index.js +17 -17
- package/dist/tools/update-issue.cjs +5 -4
- package/dist/tools/update-issue.js +5 -4
- package/dist/tools/update-project.cjs +2 -2
- package/dist/tools/update-project.js +2 -2
- package/dist/tools/utils/api-utils.d.cts +3 -3
- package/dist/tools/utils/api-utils.d.ts +3 -3
- package/dist/tools/utils/formatting-utils.cjs +1 -1
- package/dist/tools/utils/formatting-utils.d.cts +3 -3
- package/dist/tools/utils/formatting-utils.d.ts +3 -3
- package/dist/tools/utils/formatting-utils.js +1 -1
- package/dist/tools/utils/issue-utils.cjs +3 -2
- package/dist/tools/utils/issue-utils.d.cts +4 -4
- package/dist/tools/utils/issue-utils.d.ts +4 -4
- package/dist/tools/utils/issue-utils.js +3 -2
- package/dist/tools/utils/seer-utils.cjs +1 -1
- package/dist/tools/utils/seer-utils.d.cts +3 -3
- package/dist/tools/utils/seer-utils.d.ts +3 -3
- package/dist/tools/utils/seer-utils.js +1 -1
- package/dist/{tools-19Ms1kck.cjs → tools-CHnZvVEN.cjs} +12 -12
- package/dist/{tools-19Ms1kck.cjs.map → tools-CHnZvVEN.cjs.map} +1 -1
- package/dist/{tools-mThAUo_3.js → tools-CdXGgq1W.js} +12 -12
- package/dist/{tools-mThAUo_3.js.map → tools-CdXGgq1W.js.map} +1 -1
- package/dist/transports/stdio.cjs +20 -20
- package/dist/transports/stdio.js +20 -20
- package/dist/{types-Bg17IGWJ.d.cts → types-BoMP-Ro6.d.cts} +2 -2
- package/dist/{types-Bg17IGWJ.d.cts.map → types-BoMP-Ro6.d.cts.map} +1 -1
- package/dist/{types-CtTBwGbw.d.ts → types-DpV1JAZj.d.ts} +2 -2
- package/dist/{types-CtTBwGbw.d.ts.map → types-DpV1JAZj.d.ts.map} +1 -1
- package/dist/{update-issue-DmLElHPS.js → update-issue-DRTQvy6p.js} +2 -2
- package/dist/{update-issue-DmLElHPS.js.map → update-issue-DRTQvy6p.js.map} +1 -1
- package/dist/{update-issue-B6eZhAPJ.cjs → update-issue-DpkxxiNk.cjs} +2 -2
- package/dist/{update-issue-B6eZhAPJ.cjs.map → update-issue-DpkxxiNk.cjs.map} +1 -1
- package/dist/{update-project-CijYCtG1.cjs → update-project-DLDDbcGY.cjs} +2 -2
- package/dist/{update-project-CijYCtG1.cjs.map → update-project-DLDDbcGY.cjs.map} +1 -1
- package/dist/{update-project-BNPev7W8.js → update-project-YLxt2ry2.js} +2 -2
- package/dist/{update-project-BNPev7W8.js.map → update-project-YLxt2ry2.js.map} +1 -1
- package/dist/version-CcTnFB56.js +6 -0
- package/dist/{version-C4uvMmw0.js.map → version-CcTnFB56.js.map} +1 -1
- package/dist/{version-Ddz4xg_q.cjs → version-rDjaSkPw.cjs} +2 -2
- package/dist/{version-Ddz4xg_q.cjs.map → version-rDjaSkPw.cjs.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/analyze-issue-with-seer-BsNarzJN.js.map +0 -1
- package/dist/analyze-issue-with-seer-DbAWpyTC.cjs.map +0 -1
- package/dist/formatting-BlMiQa9i.cjs.map +0 -1
- package/dist/formatting-CHh9Q_OW.d.cts.map +0 -1
- package/dist/formatting-kdIeURER.d.ts.map +0 -1
- package/dist/formatting-pUm38KOj.js.map +0 -1
- package/dist/get-issue-details-CxChU4U9.js.map +0 -1
- package/dist/get-issue-details-DFwZRbmU.cjs.map +0 -1
- package/dist/version-C4uvMmw0.js +0 -6
- /package/dist/{issue-utils-BVAB6I-Z.js → issue-utils-BbCfbiY8.js} +0 -0
- /package/dist/{issue-utils-pdbo-5LW.cjs → issue-utils-DMKiif6C.cjs} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema--5m4KI84.d.ts","names":[],"sources":["../src/api-client/schema.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;cA6Ca,gBAAc,CAAA,CAAA;UAIX,CAAA,CAAA;;;;;;AAwBe,cAtBlB,UAsBkB,EAtBR,CAAA,CAAA,SAsBQ,CAAA;EAAA,EAAA,YAAA,CAAA,CAlB7B,CAAA,CAAA,SAkB6B,aAAA,CAAA,CAAA;EAqBlB,IAAA,eAAA,YAAoD,CAAA;EAAA,KAAA,aAAA;CAAA,EAAA,OAAA,cAAA,EAAA;;;;;;;;;cArCpD,mBAAiB,CAAA,CAAA;;UAO5B,CAAA,CAAA;;KA8BiC,OAAA,cAAA,EAAA;IAAA,IAAA,EAAA,MAAA;IAAA,GAAA,EAAA,MAAA;EAEtB,CAAA,EAAA;IAIX,IAAA,EAAA,MAAA;IAAA,GAAA,EAAA,MAAA;;;;;;KAJqB;AAAA,CAAA,EAAA;EAMV,OAAA,EAAA;IAAoC,IAAA,EAAA,MAAA;IAAA,GAAA,EAAA,MAAA;;;;;;;;AAAtB;AAE3B;AAKE,cApCW,kBAoCX,EApC6B,CAAA,CAAA,SAoC7B,CAAA;EAAA,EAAA,YAAA,CAAA,CAjBA,CAAA,CAAA,SAiBA,aAAA,CAAA,CAAA;;;;;;;;IALwB,SAAA,CAAA,EAAA,MAAA,GAAA,SAAA;EAAA,CAAA,EAAA;IAOb,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEW,uBAAqB,CAAA,CAAA;MAShC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEW,2BAAyB,CAAA,CAAA,SAAA,CAAA,CAAA;MAAiC,CAAA,CAAA"}
|
package/dist/schema.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.cts","names":[],"sources":["../src/schema.ts"],"sourcesContent":[],"mappings":";;;;AAgDa,cAtCA,
|
|
1
|
+
{"version":3,"file":"schema.d.cts","names":[],"sources":["../src/schema.ts"],"sourcesContent":[],"mappings":";;;;AAgDa,cAtCA,qBA4CV,EA5C+B,CAAA,CAAA,SA4C/B;AAEU,cAtCA,aAsCa,EAtCA,CAAA,CAAA,SA4CvB;AAEU,cAtCA,gBAsCgB,EAtCA,CAAA,CAAA,SAyCkD;AAElE,cAnCA,qBAwCV,EAxC+B,CAAA,CAAA,SAwC/B;AAUU,cA1CA,iBAqDV,EArD2B,CAAA,CAAA,SAqD3B;AAAA,cA/CU,aA+CV,EA/CuB,CAAA,CAAA,SA+CvB;AAXwB,cA5Bd,aA4Bc,EA5BD,CAAA,CAAA,SA4BC;AAAA,cApBd,gBAoBc,EApBE,CAAA,CAAA,SAoBF;AAAA,cAfd,UAec,EAfJ,CAAA,CAAA,SAeI;AAa3B;AAMA;AAOA;AAOA;AAEA;;;;cAnCa,gBAAc,CAAA,CAAA,WAAA,CAAA,CAAA;cAad,kBAAgB,CAAA,CAAA;cAMhB,iBAAe,CAAA,CAAA;cAOf,kBAAgB,CAAA,CAAA;cAOhB,cAAY,CAAA,CAAA;cAEZ,mBAAiB,CAAA,CAAA"}
|
|
@@ -55,7 +55,7 @@ function getOutputForAutofixStep(step) {
|
|
|
55
55
|
if (step.type === "root_cause_analysis") {
|
|
56
56
|
const typedStep$1 = step;
|
|
57
57
|
for (const cause of typedStep$1.causes) {
|
|
58
|
-
if (
|
|
58
|
+
if (cause.description) output += `${cause.description}\n\n`;
|
|
59
59
|
for (const entry of cause.root_cause_reproduction) {
|
|
60
60
|
output += `**${entry.title}**\n\n`;
|
|
61
61
|
output += `${entry.code_snippet_and_analysis}\n\n`;
|
|
@@ -126,4 +126,4 @@ Object.defineProperty(exports, 'isTerminalStatus', {
|
|
|
126
126
|
return isTerminalStatus;
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
|
-
//# sourceMappingURL=seer-utils-
|
|
129
|
+
//# sourceMappingURL=seer-utils-CDm5J8ur.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seer-utils-
|
|
1
|
+
{"version":3,"file":"seer-utils-CDm5J8ur.cjs","names":["status: string","step: z.infer<typeof AutofixRunStepSchema>","typedStep"],"sources":["../src/tools/utils/seer-utils.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type {\n AutofixRunStepSchema,\n AutofixRunStepRootCauseAnalysisSchema,\n AutofixRunStepSolutionSchema,\n AutofixRunStepDefaultSchema,\n} from \"../../api-client/index\";\n\nexport const SEER_POLLING_INTERVAL = 5000; // 5 seconds\nexport const SEER_TIMEOUT = 5 * 60 * 1000; // 5 minutes\n\nexport function getStatusDisplayName(status: string): string {\n switch (status) {\n case \"COMPLETED\":\n return \"Complete\";\n case \"FAILED\":\n case \"ERROR\":\n return \"Failed\";\n case \"CANCELLED\":\n return \"Cancelled\";\n case \"NEED_MORE_INFORMATION\":\n return \"Needs More Information\";\n case \"WAITING_FOR_USER_RESPONSE\":\n return \"Waiting for Response\";\n case \"PROCESSING\":\n return \"Processing\";\n case \"IN_PROGRESS\":\n return \"In Progress\";\n default:\n return status;\n }\n}\n\n/**\n * Check if an autofix status is terminal (no more updates expected)\n */\nexport function isTerminalStatus(status: string): boolean {\n return [\n \"COMPLETED\",\n \"FAILED\",\n \"ERROR\",\n \"CANCELLED\",\n \"NEED_MORE_INFORMATION\",\n \"WAITING_FOR_USER_RESPONSE\",\n ].includes(status);\n}\n\n/**\n * Check if an autofix status requires human intervention\n */\nexport function isHumanInterventionStatus(status: string): boolean {\n return (\n status === \"NEED_MORE_INFORMATION\" || status === \"WAITING_FOR_USER_RESPONSE\"\n );\n}\n\n/**\n * Get guidance message for human intervention states\n */\nexport function getHumanInterventionGuidance(status: string): string {\n if (status === \"NEED_MORE_INFORMATION\") {\n return \"\\nSeer needs additional information to continue the analysis. Please review the insights above and consider providing more context.\\n\";\n }\n if (status === \"WAITING_FOR_USER_RESPONSE\") {\n return \"\\nSeer is waiting for your response to proceed. Please review the analysis and provide feedback.\\n\";\n }\n return \"\";\n}\n\nexport function getOutputForAutofixStep(\n step: z.infer<typeof AutofixRunStepSchema>,\n) {\n let output = `## ${step.title}\\n\\n`;\n\n if (step.status === \"FAILED\") {\n output += `**Sentry hit an error completing this step.\\n\\n`;\n return output;\n }\n\n if (step.status !== \"COMPLETED\") {\n output += `**Sentry is still working on this step. Please check back in a minute.**\\n\\n`;\n return output;\n }\n\n if (step.type === \"root_cause_analysis\") {\n const typedStep = step as z.infer<\n typeof AutofixRunStepRootCauseAnalysisSchema\n >;\n\n for (const cause of typedStep.causes) {\n if (cause.description) {\n output += `${cause.description}\\n\\n`;\n }\n for (const entry of cause.root_cause_reproduction) {\n output += `**${entry.title}**\\n\\n`;\n output += `${entry.code_snippet_and_analysis}\\n\\n`;\n }\n }\n return output;\n }\n\n if (step.type === \"solution\") {\n const typedStep = step as z.infer<typeof AutofixRunStepSolutionSchema>;\n output += `${typedStep.description}\\n\\n`;\n for (const entry of typedStep.solution) {\n output += `**${entry.title}**\\n`;\n output += `${entry.code_snippet_and_analysis}\\n\\n`;\n }\n\n if (typedStep.status === \"FAILED\") {\n output += `**Sentry hit an error completing this step.\\n\\n`;\n } else if (typedStep.status !== \"COMPLETED\") {\n output += `**Sentry is still working on this step.**\\n\\n`;\n }\n\n return output;\n }\n\n const typedStep = step as z.infer<typeof AutofixRunStepDefaultSchema>;\n if (typedStep.insights && typedStep.insights.length > 0) {\n for (const entry of typedStep.insights) {\n output += `**${entry.insight}**\\n`;\n output += `${entry.justification}\\n\\n`;\n }\n } else if (step.output_stream) {\n output += `${step.output_stream}\\n`;\n }\n\n return output;\n}\n"],"mappings":";;AAQA,MAAa,wBAAwB;AACrC,MAAa,eAAe,IAAI,KAAK;AAErC,SAAgB,qBAAqBA,QAAwB;AAC3D,SAAQ,QAAR;EACE,KAAK,YACH,QAAO;EACT,KAAK;EACL,KAAK,QACH,QAAO;EACT,KAAK,YACH,QAAO;EACT,KAAK,wBACH,QAAO;EACT,KAAK,4BACH,QAAO;EACT,KAAK,aACH,QAAO;EACT,KAAK,cACH,QAAO;EACT,QACE,QAAO;CACV;AACF;;;;AAKD,SAAgB,iBAAiBA,QAAyB;AACxD,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,SAAS,OAAO;AACnB;;;;AAKD,SAAgB,0BAA0BA,QAAyB;AACjE,QACE,WAAW,2BAA2B,WAAW;AAEpD;;;;AAKD,SAAgB,6BAA6BA,QAAwB;AACnE,KAAI,WAAW,wBACb,QAAO;AAET,KAAI,WAAW,4BACb,QAAO;AAET,QAAO;AACR;AAED,SAAgB,wBACdC,MACA;CACA,IAAI,UAAU,KAAK,KAAK,MAAM;AAE9B,KAAI,KAAK,WAAW,UAAU;AAC5B,aAAW;AACX,SAAO;CACR;AAED,KAAI,KAAK,WAAW,aAAa;AAC/B,aAAW;AACX,SAAO;CACR;AAED,KAAI,KAAK,SAAS,uBAAuB;EACvC,MAAMC,cAAY;AAIlB,OAAK,MAAM,SAASA,YAAU,QAAQ;AACpC,OAAI,MAAM,YACR,cAAa,MAAM,YAAY;AAEjC,QAAK,MAAM,SAAS,MAAM,yBAAyB;AACjD,eAAW,IAAI,MAAM,MAAM;AAC3B,iBAAa,MAAM,0BAA0B;GAC9C;EACF;AACD,SAAO;CACR;AAED,KAAI,KAAK,SAAS,YAAY;EAC5B,MAAMA,cAAY;AAClB,eAAaA,YAAU,YAAY;AACnC,OAAK,MAAM,SAASA,YAAU,UAAU;AACtC,cAAW,IAAI,MAAM,MAAM;AAC3B,gBAAa,MAAM,0BAA0B;EAC9C;AAED,MAAIA,YAAU,WAAW,SACvB,YAAW;WACFA,YAAU,WAAW,YAC9B,YAAW;AAGb,SAAO;CACR;CAED,MAAM,YAAY;AAClB,KAAI,UAAU,YAAY,UAAU,SAAS,SAAS,EACpD,MAAK,MAAM,SAAS,UAAU,UAAU;AACtC,aAAW,IAAI,MAAM,QAAQ;AAC7B,eAAa,MAAM,cAAc;CAClC;UACQ,KAAK,cACd,cAAa,KAAK,cAAc;AAGlC,QAAO;AACR"}
|
|
@@ -54,7 +54,7 @@ function getOutputForAutofixStep(step) {
|
|
|
54
54
|
if (step.type === "root_cause_analysis") {
|
|
55
55
|
const typedStep$1 = step;
|
|
56
56
|
for (const cause of typedStep$1.causes) {
|
|
57
|
-
if (
|
|
57
|
+
if (cause.description) output += `${cause.description}\n\n`;
|
|
58
58
|
for (const entry of cause.root_cause_reproduction) {
|
|
59
59
|
output += `**${entry.title}**\n\n`;
|
|
60
60
|
output += `${entry.code_snippet_and_analysis}\n\n`;
|
|
@@ -84,4 +84,4 @@ function getOutputForAutofixStep(step) {
|
|
|
84
84
|
|
|
85
85
|
//#endregion
|
|
86
86
|
export { SEER_POLLING_INTERVAL, SEER_TIMEOUT, getHumanInterventionGuidance, getOutputForAutofixStep, getStatusDisplayName, isHumanInterventionStatus, isTerminalStatus };
|
|
87
|
-
//# sourceMappingURL=seer-utils-
|
|
87
|
+
//# sourceMappingURL=seer-utils-Cj9DXrow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seer-utils-
|
|
1
|
+
{"version":3,"file":"seer-utils-Cj9DXrow.js","names":["status: string","step: z.infer<typeof AutofixRunStepSchema>","typedStep"],"sources":["../src/tools/utils/seer-utils.ts"],"sourcesContent":["import type { z } from \"zod\";\nimport type {\n AutofixRunStepSchema,\n AutofixRunStepRootCauseAnalysisSchema,\n AutofixRunStepSolutionSchema,\n AutofixRunStepDefaultSchema,\n} from \"../../api-client/index\";\n\nexport const SEER_POLLING_INTERVAL = 5000; // 5 seconds\nexport const SEER_TIMEOUT = 5 * 60 * 1000; // 5 minutes\n\nexport function getStatusDisplayName(status: string): string {\n switch (status) {\n case \"COMPLETED\":\n return \"Complete\";\n case \"FAILED\":\n case \"ERROR\":\n return \"Failed\";\n case \"CANCELLED\":\n return \"Cancelled\";\n case \"NEED_MORE_INFORMATION\":\n return \"Needs More Information\";\n case \"WAITING_FOR_USER_RESPONSE\":\n return \"Waiting for Response\";\n case \"PROCESSING\":\n return \"Processing\";\n case \"IN_PROGRESS\":\n return \"In Progress\";\n default:\n return status;\n }\n}\n\n/**\n * Check if an autofix status is terminal (no more updates expected)\n */\nexport function isTerminalStatus(status: string): boolean {\n return [\n \"COMPLETED\",\n \"FAILED\",\n \"ERROR\",\n \"CANCELLED\",\n \"NEED_MORE_INFORMATION\",\n \"WAITING_FOR_USER_RESPONSE\",\n ].includes(status);\n}\n\n/**\n * Check if an autofix status requires human intervention\n */\nexport function isHumanInterventionStatus(status: string): boolean {\n return (\n status === \"NEED_MORE_INFORMATION\" || status === \"WAITING_FOR_USER_RESPONSE\"\n );\n}\n\n/**\n * Get guidance message for human intervention states\n */\nexport function getHumanInterventionGuidance(status: string): string {\n if (status === \"NEED_MORE_INFORMATION\") {\n return \"\\nSeer needs additional information to continue the analysis. Please review the insights above and consider providing more context.\\n\";\n }\n if (status === \"WAITING_FOR_USER_RESPONSE\") {\n return \"\\nSeer is waiting for your response to proceed. Please review the analysis and provide feedback.\\n\";\n }\n return \"\";\n}\n\nexport function getOutputForAutofixStep(\n step: z.infer<typeof AutofixRunStepSchema>,\n) {\n let output = `## ${step.title}\\n\\n`;\n\n if (step.status === \"FAILED\") {\n output += `**Sentry hit an error completing this step.\\n\\n`;\n return output;\n }\n\n if (step.status !== \"COMPLETED\") {\n output += `**Sentry is still working on this step. Please check back in a minute.**\\n\\n`;\n return output;\n }\n\n if (step.type === \"root_cause_analysis\") {\n const typedStep = step as z.infer<\n typeof AutofixRunStepRootCauseAnalysisSchema\n >;\n\n for (const cause of typedStep.causes) {\n if (cause.description) {\n output += `${cause.description}\\n\\n`;\n }\n for (const entry of cause.root_cause_reproduction) {\n output += `**${entry.title}**\\n\\n`;\n output += `${entry.code_snippet_and_analysis}\\n\\n`;\n }\n }\n return output;\n }\n\n if (step.type === \"solution\") {\n const typedStep = step as z.infer<typeof AutofixRunStepSolutionSchema>;\n output += `${typedStep.description}\\n\\n`;\n for (const entry of typedStep.solution) {\n output += `**${entry.title}**\\n`;\n output += `${entry.code_snippet_and_analysis}\\n\\n`;\n }\n\n if (typedStep.status === \"FAILED\") {\n output += `**Sentry hit an error completing this step.\\n\\n`;\n } else if (typedStep.status !== \"COMPLETED\") {\n output += `**Sentry is still working on this step.**\\n\\n`;\n }\n\n return output;\n }\n\n const typedStep = step as z.infer<typeof AutofixRunStepDefaultSchema>;\n if (typedStep.insights && typedStep.insights.length > 0) {\n for (const entry of typedStep.insights) {\n output += `**${entry.insight}**\\n`;\n output += `${entry.justification}\\n\\n`;\n }\n } else if (step.output_stream) {\n output += `${step.output_stream}\\n`;\n }\n\n return output;\n}\n"],"mappings":";AAQA,MAAa,wBAAwB;AACrC,MAAa,eAAe,IAAI,KAAK;AAErC,SAAgB,qBAAqBA,QAAwB;AAC3D,SAAQ,QAAR;EACE,KAAK,YACH,QAAO;EACT,KAAK;EACL,KAAK,QACH,QAAO;EACT,KAAK,YACH,QAAO;EACT,KAAK,wBACH,QAAO;EACT,KAAK,4BACH,QAAO;EACT,KAAK,aACH,QAAO;EACT,KAAK,cACH,QAAO;EACT,QACE,QAAO;CACV;AACF;;;;AAKD,SAAgB,iBAAiBA,QAAyB;AACxD,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;CACD,EAAC,SAAS,OAAO;AACnB;;;;AAKD,SAAgB,0BAA0BA,QAAyB;AACjE,QACE,WAAW,2BAA2B,WAAW;AAEpD;;;;AAKD,SAAgB,6BAA6BA,QAAwB;AACnE,KAAI,WAAW,wBACb,QAAO;AAET,KAAI,WAAW,4BACb,QAAO;AAET,QAAO;AACR;AAED,SAAgB,wBACdC,MACA;CACA,IAAI,UAAU,KAAK,KAAK,MAAM;AAE9B,KAAI,KAAK,WAAW,UAAU;AAC5B,aAAW;AACX,SAAO;CACR;AAED,KAAI,KAAK,WAAW,aAAa;AAC/B,aAAW;AACX,SAAO;CACR;AAED,KAAI,KAAK,SAAS,uBAAuB;EACvC,MAAMC,cAAY;AAIlB,OAAK,MAAM,SAASA,YAAU,QAAQ;AACpC,OAAI,MAAM,YACR,cAAa,MAAM,YAAY;AAEjC,QAAK,MAAM,SAAS,MAAM,yBAAyB;AACjD,eAAW,IAAI,MAAM,MAAM;AAC3B,iBAAa,MAAM,0BAA0B;GAC9C;EACF;AACD,SAAO;CACR;AAED,KAAI,KAAK,SAAS,YAAY;EAC5B,MAAMA,cAAY;AAClB,eAAaA,YAAU,YAAY;AACnC,OAAK,MAAM,SAASA,YAAU,UAAU;AACtC,cAAW,IAAI,MAAM,MAAM;AAC3B,gBAAa,MAAM,0BAA0B;EAC9C;AAED,MAAIA,YAAU,WAAW,SACvB,YAAW;WACFA,YAAU,WAAW,YAC9B,YAAW;AAGb,SAAO;CACR;CAED,MAAM,YAAY;AAClB,KAAI,UAAU,YAAY,UAAU,SAAS,SAAS,EACpD,MAAK,MAAM,SAAS,UAAU,UAAU;AACtC,aAAW,IAAI,MAAM,QAAQ;AAC7B,eAAa,MAAM,cAAc;CAClC;UACQ,KAAK,cACd,cAAa,KAAK,cAAc;AAGlC,QAAO;AACR"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UserInputError } from "./errors-CIoxzIug.js";
|
|
2
2
|
import { ApiError } from "./client-DOYWNvVM.js";
|
|
3
|
-
import { logError } from "./logging-
|
|
4
|
-
import { tools_default } from "./tools-
|
|
3
|
+
import { logError } from "./logging-DzxYBMrn.js";
|
|
4
|
+
import { tools_default } from "./tools-CdXGgq1W.js";
|
|
5
5
|
import { RESOURCES, isTemplateResource } from "./resources-BHF8a1ZB.js";
|
|
6
6
|
import { PROMPT_DEFINITIONS } from "./promptDefinitions-CSKE8T0a.js";
|
|
7
7
|
import { PROMPT_HANDLERS } from "./prompts-C8Y9w5c4.js";
|
|
@@ -234,4 +234,4 @@ async function configureServer({ server, context, onToolComplete }) {
|
|
|
234
234
|
|
|
235
235
|
//#endregion
|
|
236
236
|
export { configureServer };
|
|
237
|
-
//# sourceMappingURL=server-
|
|
237
|
+
//# sourceMappingURL=server-BSRxzYFd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-DOy-M9Ko.js","names":["error: unknown","args: Record<string, unknown>","resource: { name: string; handler: ReadResourceCallback }","context: ServerContext","uri: URL","extra: RequestHandlerExtra<any, any>","variables: Variables","tools","params: any","extra: RequestHandlerExtra<ServerRequest, ServerNotification>"],"sources":["../src/server.ts"],"sourcesContent":["/**\n * MCP Server Configuration and Request Handling Infrastructure.\n *\n * This module orchestrates tool execution, prompt handling, resource management,\n * and telemetry collection in a unified server interface for LLMs.\n *\n * **Configuration Example:**\n * ```typescript\n * const server = new McpServer();\n * const context: ServerContext = {\n * accessToken: \"your-sentry-token\",\n * host: \"sentry.io\",\n * userId: \"user-123\",\n * clientId: \"mcp-client\"\n * };\n *\n * await configureServer({ server, context });\n * ```\n */\nimport type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport type { RequestHandlerExtra } from \"@modelcontextprotocol/sdk/shared/protocol.js\";\nimport type {\n ServerRequest,\n ServerNotification,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport type {\n ReadResourceCallback,\n ReadResourceTemplateCallback,\n} from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport type { Variables } from \"@modelcontextprotocol/sdk/shared/uriTemplate.js\";\nimport tools from \"./tools/index\";\nimport type { ServerContext } from \"./types\";\nimport { setTag, setUser, startNewTrace, startSpan } from \"@sentry/core\";\nimport { logError } from \"./logging\";\nimport { RESOURCES, isTemplateResource } from \"./resources\";\nimport { PROMPT_DEFINITIONS } from \"./promptDefinitions\";\nimport { PROMPT_HANDLERS } from \"./prompts\";\nimport { ApiError } from \"./api-client\";\nimport { UserInputError } from \"./errors\";\n\n/**\n * Type guard to identify Sentry API errors.\n */\nfunction isApiError(error: unknown): error is ApiError {\n return error instanceof ApiError;\n}\n\n/**\n * Type guard to identify user input validation errors.\n */\nfunction isUserInputError(error: unknown) {\n return error instanceof UserInputError;\n}\n\n/**\n * Formats errors for LLM consumption with appropriate telemetry handling.\n *\n * **Error Types:**\n * - User Input Errors: Clear guidance without telemetry\n * - API Errors: Enhanced messaging with HTTP status context\n * - System Errors: Full telemetry capture with event IDs\n *\n * @example User Input Error Response\n * ```markdown\n * **Input Error**\n *\n * It looks like there was a problem with the input you provided.\n * Organization slug is required. Please provide an organizationSlug parameter.\n * You may be able to resolve the issue by addressing the concern and trying again.\n * ```\n */\nasync function logAndFormatError(error: unknown) {\n if (isUserInputError(error)) {\n const typedError = error as UserInputError;\n return [\n \"**Input Error**\",\n \"It looks like there was a problem with the input you provided.\",\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 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\n/**\n * Extracts MCP request parameters for OpenTelemetry attributes.\n *\n * @example Parameter Transformation\n * ```typescript\n * const input = { organizationSlug: \"my-org\", query: \"is:unresolved\" };\n * const output = extractMcpParameters(input);\n * // { \"mcp.request.argument.organizationSlug\": \"\\\"my-org\\\"\", \"mcp.request.argument.query\": \"\\\"is:unresolved\\\"\" }\n * ```\n */\nfunction extractMcpParameters(args: Record<string, unknown>) {\n return Object.fromEntries(\n Object.entries(args).map(([key, value]) => {\n return [`mcp.request.argument.${key}`, JSON.stringify(value)];\n }),\n );\n}\n\n/**\n * Creates a telemetry wrapper for regular URI resource handlers.\n * Captures URI access and user context for observability.\n */\nfunction createResourceHandler(\n resource: { name: string; handler: ReadResourceCallback },\n context: ServerContext,\n): ReadResourceCallback {\n return async (uri: URL, extra: RequestHandlerExtra<any, any>) => {\n return await startNewTrace(async () => {\n return await startSpan(\n {\n name: `resources/read ${resource.name}`,\n attributes: {\n \"mcp.resource.name\": resource.name,\n \"mcp.resource.uri\": uri.toString(),\n ...(context.userAgent && {\n \"user_agent.original\": context.userAgent,\n }),\n },\n },\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(uri, extra);\n },\n );\n });\n };\n}\n\n/**\n * Creates a telemetry wrapper for URI template resource handlers.\n * Captures template parameters and user context for observability.\n */\nfunction createTemplateResourceHandler(\n resource: { name: string; handler: ReadResourceCallback },\n context: ServerContext,\n): ReadResourceTemplateCallback {\n return async (\n uri: URL,\n variables: Variables,\n extra: RequestHandlerExtra<any, any>,\n ) => {\n return await startNewTrace(async () => {\n return await startSpan(\n {\n name: `resources/read ${resource.name}`,\n attributes: {\n \"mcp.resource.name\": resource.name,\n \"mcp.resource.uri\": uri.toString(),\n ...(context.userAgent && {\n \"user_agent.original\": context.userAgent,\n }),\n ...extractMcpParameters(variables),\n },\n },\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 // The MCP SDK has already constructed the URI from the template and variables\n // We just need to call the handler with the constructed URI\n return resource.handler(uri, extra);\n },\n );\n });\n };\n}\n\n/**\n * Configures an MCP server with all tools, prompts, resources, and telemetry.\n *\n * Transforms a bare MCP server instance into a fully-featured Sentry integration\n * with comprehensive observability, error handling, and handler registration.\n *\n * @example Basic Configuration\n * ```typescript\n * const server = new McpServer();\n * const context = {\n * accessToken: process.env.SENTRY_TOKEN,\n * host: \"sentry.io\",\n * userId: \"user-123\",\n * clientId: \"cursor-ide\"\n * };\n *\n * await configureServer({ server, context });\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 if (isTemplateResource(resource)) {\n // Handle URI template resources\n server.registerResource(\n resource.name,\n resource.template,\n {\n description: resource.description,\n mimeType: resource.mimeType,\n },\n createTemplateResourceHandler(resource, context),\n );\n } else {\n // Handle regular URI resources\n server.registerResource(\n resource.name,\n resource.uri,\n {\n description: resource.description,\n mimeType: resource.mimeType,\n },\n createResourceHandler(resource, context),\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 ? prompt.paramsSchema : {},\n async (...args) => {\n try {\n return await startNewTrace(async () => {\n return await startSpan(\n {\n name: `prompts/get ${prompt.name}`,\n attributes: {\n \"mcp.prompt.name\": prompt.name,\n ...(context.userAgent && {\n \"user_agent.original\": context.userAgent,\n }),\n ...extractMcpParameters(args[0] || {}),\n },\n },\n async (span) => {\n if (context.userId) {\n setUser({\n id: context.userId,\n });\n }\n if (context.clientId) {\n setTag(\"client.id\", context.clientId);\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 span.setStatus({\n code: 1, // ok\n });\n return {\n messages: [\n {\n role: \"user\" as const,\n content: {\n type: \"text\" as const,\n text: output,\n },\n },\n ],\n };\n } catch (error) {\n span.setStatus({\n code: 2, // error\n });\n throw error;\n }\n },\n );\n });\n } finally {\n onToolComplete?.();\n }\n },\n );\n }\n\n for (const [toolKey, tool] of Object.entries(tools)) {\n server.tool(\n tool.name,\n tool.description,\n tool.inputSchema,\n async (\n params: any,\n extra: RequestHandlerExtra<ServerRequest, ServerNotification>,\n ) => {\n try {\n return await startNewTrace(async () => {\n return await startSpan(\n {\n name: `tools/call ${tool.name}`,\n attributes: {\n \"mcp.tool.name\": tool.name,\n ...(context.userAgent && {\n \"user_agent.original\": context.userAgent,\n }),\n ...extractMcpParameters(params || {}),\n },\n },\n async (span) => {\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 const output = await tool.handler(params, context);\n span.setStatus({\n code: 1, // ok\n });\n // if the tool returns a string, assume it's a message\n if (typeof output === \"string\") {\n return {\n content: [\n {\n type: \"text\" as const,\n text: output,\n },\n ],\n };\n }\n // if the tool returns a list, assume it's a content list\n if (Array.isArray(output)) {\n return {\n content: output,\n };\n }\n throw new Error(`Invalid tool output: ${output}`);\n } catch (error) {\n span.setStatus({\n code: 2, // error\n });\n\n // CRITICAL: Tool errors MUST be returned as formatted text responses,\n // NOT thrown as exceptions. This ensures consistent error handling\n // and prevents the MCP client from receiving raw error objects.\n //\n // The logAndFormatError function provides user-friendly error messages\n // with appropriate formatting for different error types:\n // - UserInputError: Clear guidance for fixing input problems\n // - ApiError: HTTP status context with helpful messaging\n // - System errors: Sentry event IDs for debugging\n //\n // DO NOT change this to throw error - it breaks error handling!\n return {\n content: [\n {\n type: \"text\" as const,\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":";;;;;;;;;;;;;AA2CA,SAAS,WAAWA,OAAmC;AACrD,QAAO,iBAAiB;AACzB;;;;AAKD,SAAS,iBAAiBA,OAAgB;AACxC,QAAO,iBAAiB;AACzB;;;;;;;;;;;;;;;;;;AAmBD,eAAe,kBAAkBA,OAAgB;AAC/C,KAAI,iBAAiB,MAAM,EAAE;EAC3B,MAAM,aAAa;AACnB,SAAO;GACL;GACA;GACA,WAAW;IACV;EACF,EAAC,KAAK,OAAO;CACf;AAED,KAAI,WAAW,MAAM,EAAE;EACrB,MAAM,aAAa;AACnB,SAAO;GACL;IACC,oBAAoB,WAAW,OAAO;MACpC,WAAW;IACb;EACF,EAAC,KAAK,OAAO;CACf;CAED,MAAM,UAAU,SAAS,MAAM;AAE/B,QAAO;EACL;EACA;EACA;GACC,gBAAgB;EACjB,QAAQ,IAAI,aAAa,eACrB,iBAAiB,QACf,MAAM,UACN,OAAO,MAAM,GACf;CACL,EAAC,KAAK,OAAO;AACf;;;;;;;;;;;AAYD,SAAS,qBAA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AK,MACL,KAAK,aACL,KAAK,aACL,OACEC,QACAC,UACG;AACH,MAAI;AACF,UAAO,MAAM,cAAc,YAAY;AACrC,WAAO,MAAM,UACX;KACE,OAAO,aAAa,KAAK;KACzB,YAAY;MACV,iBAAiB,KAAK;MACtB,GAAI,QAAQ,aAAa,EACvB,uBAAuB,QAAQ,UAChC;MACD,GAAG,qBAAqB,UAAU,CAAE,EAAC;KACtC;IACF,GACD,OAAO,SAAS;AACd,SAAI,QAAQ,OACV,SAAQ,EACN,IAAI,QAAQ,OACb,EAAC;AAEJ,SAAI,QAAQ,SACV,QAAO,aAAa,QAAQ,SAAS;AAGvC,SAAI;MACF,MAAM,SAAS,MAAM,KAAK,QAAQ,QAAQ,QAAQ;AAClD,WAAK,UAAU,EACb,MAAM,EACP,EAAC;AAEF,iBAAW,WAAW,SACpB,QAAO,EACL,SAAS,CACP;OACE,MAAM;OACN,MAAM;MACP,CACF,EACF;AAGH,UAAI,MAAM,QAAQ,OAAO,CACvB,QAAO,EACL,SAAS,OACV;AAEH,YAAM,IAAI,OAAO,uBAAuB;KACzC,SAAQ,OAAO;AACd,WAAK,UAAU,EACb,MAAM,EACP,EAAC;AAaF,aAAO;OACL,SAAS,CACP;QACE,MAAM;QACN,MAAM,MAAM,kBAAkB,MAAM;OACrC,CACF;OACD,SAAS;MACV;KACF;IACF,EACF;GACF,EAAC;EACH,UAAS;AACR,qBAAkB;EACnB;CACF,EACF;AAEJ"}
|
|
1
|
+
{"version":3,"file":"server-BSRxzYFd.js","names":["error: unknown","args: Record<string, unknown>","resource: { name: string; handler: ReadResourceCallback }","context: ServerContext","uri: URL","extra: RequestHandlerExtra<any, any>","variables: Variables","tools","params: any","extra: RequestHandlerExtra<ServerRequest, ServerNotification>"],"sources":["../src/server.ts"],"sourcesContent":["/**\n * MCP Server Configuration and Request Handling Infrastructure.\n *\n * This module orchestrates tool execution, prompt handling, resource management,\n * and telemetry collection in a unified server interface for LLMs.\n *\n * **Configuration Example:**\n * ```typescript\n * const server = new McpServer();\n * const context: ServerContext = {\n * accessToken: \"your-sentry-token\",\n * host: \"sentry.io\",\n * userId: \"user-123\",\n * clientId: \"mcp-client\"\n * };\n *\n * await configureServer({ server, context });\n * ```\n */\nimport type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport type { RequestHandlerExtra } from \"@modelcontextprotocol/sdk/shared/protocol.js\";\nimport type {\n ServerRequest,\n ServerNotification,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport type {\n ReadResourceCallback,\n ReadResourceTemplateCallback,\n} from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport type { Variables } from \"@modelcontextprotocol/sdk/shared/uriTemplate.js\";\nimport tools from \"./tools/index\";\nimport type { ServerContext } from \"./types\";\nimport { setTag, setUser, startNewTrace, startSpan } from \"@sentry/core\";\nimport { logError } from \"./logging\";\nimport { RESOURCES, isTemplateResource } from \"./resources\";\nimport { PROMPT_DEFINITIONS } from \"./promptDefinitions\";\nimport { PROMPT_HANDLERS } from \"./prompts\";\nimport { ApiError } from \"./api-client\";\nimport { UserInputError } from \"./errors\";\n\n/**\n * Type guard to identify Sentry API errors.\n */\nfunction isApiError(error: unknown): error is ApiError {\n return error instanceof ApiError;\n}\n\n/**\n * Type guard to identify user input validation errors.\n */\nfunction isUserInputError(error: unknown) {\n return error instanceof UserInputError;\n}\n\n/**\n * Formats errors for LLM consumption with appropriate telemetry handling.\n *\n * **Error Types:**\n * - User Input Errors: Clear guidance without telemetry\n * - API Errors: Enhanced messaging with HTTP status context\n * - System Errors: Full telemetry capture with event IDs\n *\n * @example User Input Error Response\n * ```markdown\n * **Input Error**\n *\n * It looks like there was a problem with the input you provided.\n * Organization slug is required. Please provide an organizationSlug parameter.\n * You may be able to resolve the issue by addressing the concern and trying again.\n * ```\n */\nasync function logAndFormatError(error: unknown) {\n if (isUserInputError(error)) {\n const typedError = error as UserInputError;\n return [\n \"**Input Error**\",\n \"It looks like there was a problem with the input you provided.\",\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 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\n/**\n * Extracts MCP request parameters for OpenTelemetry attributes.\n *\n * @example Parameter Transformation\n * ```typescript\n * const input = { organizationSlug: \"my-org\", query: \"is:unresolved\" };\n * const output = extractMcpParameters(input);\n * // { \"mcp.request.argument.organizationSlug\": \"\\\"my-org\\\"\", \"mcp.request.argument.query\": \"\\\"is:unresolved\\\"\" }\n * ```\n */\nfunction extractMcpParameters(args: Record<string, unknown>) {\n return Object.fromEntries(\n Object.entries(args).map(([key, value]) => {\n return [`mcp.request.argument.${key}`, JSON.stringify(value)];\n }),\n );\n}\n\n/**\n * Creates a telemetry wrapper for regular URI resource handlers.\n * Captures URI access and user context for observability.\n */\nfunction createResourceHandler(\n resource: { name: string; handler: ReadResourceCallback },\n context: ServerContext,\n): ReadResourceCallback {\n return async (uri: URL, extra: RequestHandlerExtra<any, any>) => {\n return await startNewTrace(async () => {\n return await startSpan(\n {\n name: `resources/read ${resource.name}`,\n attributes: {\n \"mcp.resource.name\": resource.name,\n \"mcp.resource.uri\": uri.toString(),\n ...(context.userAgent && {\n \"user_agent.original\": context.userAgent,\n }),\n },\n },\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(uri, extra);\n },\n );\n });\n };\n}\n\n/**\n * Creates a telemetry wrapper for URI template resource handlers.\n * Captures template parameters and user context for observability.\n */\nfunction createTemplateResourceHandler(\n resource: { name: string; handler: ReadResourceCallback },\n context: ServerContext,\n): ReadResourceTemplateCallback {\n return async (\n uri: URL,\n variables: Variables,\n extra: RequestHandlerExtra<any, any>,\n ) => {\n return await startNewTrace(async () => {\n return await startSpan(\n {\n name: `resources/read ${resource.name}`,\n attributes: {\n \"mcp.resource.name\": resource.name,\n \"mcp.resource.uri\": uri.toString(),\n ...(context.userAgent && {\n \"user_agent.original\": context.userAgent,\n }),\n ...extractMcpParameters(variables),\n },\n },\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 // The MCP SDK has already constructed the URI from the template and variables\n // We just need to call the handler with the constructed URI\n return resource.handler(uri, extra);\n },\n );\n });\n };\n}\n\n/**\n * Configures an MCP server with all tools, prompts, resources, and telemetry.\n *\n * Transforms a bare MCP server instance into a fully-featured Sentry integration\n * with comprehensive observability, error handling, and handler registration.\n *\n * @example Basic Configuration\n * ```typescript\n * const server = new McpServer();\n * const context = {\n * accessToken: process.env.SENTRY_TOKEN,\n * host: \"sentry.io\",\n * userId: \"user-123\",\n * clientId: \"cursor-ide\"\n * };\n *\n * await configureServer({ server, context });\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 if (isTemplateResource(resource)) {\n // Handle URI template resources\n server.registerResource(\n resource.name,\n resource.template,\n {\n description: resource.description,\n mimeType: resource.mimeType,\n },\n createTemplateResourceHandler(resource, context),\n );\n } else {\n // Handle regular URI resources\n server.registerResource(\n resource.name,\n resource.uri,\n {\n description: resource.description,\n mimeType: resource.mimeType,\n },\n createResourceHandler(resource, context),\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 ? prompt.paramsSchema : {},\n async (...args) => {\n try {\n return await startNewTrace(async () => {\n return await startSpan(\n {\n name: `prompts/get ${prompt.name}`,\n attributes: {\n \"mcp.prompt.name\": prompt.name,\n ...(context.userAgent && {\n \"user_agent.original\": context.userAgent,\n }),\n ...extractMcpParameters(args[0] || {}),\n },\n },\n async (span) => {\n if (context.userId) {\n setUser({\n id: context.userId,\n });\n }\n if (context.clientId) {\n setTag(\"client.id\", context.clientId);\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 span.setStatus({\n code: 1, // ok\n });\n return {\n messages: [\n {\n role: \"user\" as const,\n content: {\n type: \"text\" as const,\n text: output,\n },\n },\n ],\n };\n } catch (error) {\n span.setStatus({\n code: 2, // error\n });\n throw error;\n }\n },\n );\n });\n } finally {\n onToolComplete?.();\n }\n },\n );\n }\n\n for (const [toolKey, tool] of Object.entries(tools)) {\n server.tool(\n tool.name,\n tool.description,\n tool.inputSchema,\n async (\n params: any,\n extra: RequestHandlerExtra<ServerRequest, ServerNotification>,\n ) => {\n try {\n return await startNewTrace(async () => {\n return await startSpan(\n {\n name: `tools/call ${tool.name}`,\n attributes: {\n \"mcp.tool.name\": tool.name,\n ...(context.userAgent && {\n \"user_agent.original\": context.userAgent,\n }),\n ...extractMcpParameters(params || {}),\n },\n },\n async (span) => {\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 const output = await tool.handler(params, context);\n span.setStatus({\n code: 1, // ok\n });\n // if the tool returns a string, assume it's a message\n if (typeof output === \"string\") {\n return {\n content: [\n {\n type: \"text\" as const,\n text: output,\n },\n ],\n };\n }\n // if the tool returns a list, assume it's a content list\n if (Array.isArray(output)) {\n return {\n content: output,\n };\n }\n throw new Error(`Invalid tool output: ${output}`);\n } catch (error) {\n span.setStatus({\n code: 2, // error\n });\n\n // CRITICAL: Tool errors MUST be returned as formatted text responses,\n // NOT thrown as exceptions. This ensures consistent error handling\n // and prevents the MCP client from receiving raw error objects.\n //\n // The logAndFormatError function provides user-friendly error messages\n // with appropriate formatting for different error types:\n // - UserInputError: Clear guidance for fixing input problems\n // - ApiError: HTTP status context with helpful messaging\n // - System errors: Sentry event IDs for debugging\n //\n // DO NOT change this to throw error - it breaks error handling!\n return {\n content: [\n {\n type: \"text\" as const,\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":";;;;;;;;;;;;;AA2CA,SAAS,WAAWA,OAAmC;AACrD,QAAO,iBAAiB;AACzB;;;;AAKD,SAAS,iBAAiBA,OAAgB;AACxC,QAAO,iBAAiB;AACzB;;;;;;;;;;;;;;;;;;AAmBD,eAAe,kBAAkBA,OAAgB;AAC/C,KAAI,iBAAiB,MAAM,EAAE;EAC3B,MAAM,aAAa;AACnB,SAAO;GACL;GACA;GACA,WAAW;IACV;EACF,EAAC,KAAK,OAAO;CACf;AAED,KAAI,WAAW,MAAM,EAAE;EACrB,MAAM,aAAa;AACnB,SAAO;GACL;IACC,oBAAoB,WAAW,OAAO;MACpC,WAAW;IACb;EACF,EAAC,KAAK,OAAO;CACf;CAED,MAAM,UAAU,SAAS,MAAM;AAE/B,QAAO;EACL;EACA;EACA;GACC,gBAAgB;EACjB,QAAQ,IAAI,aAAa,eACrB,iBAAiB,QACf,MAAM,UACN,OAAO,MAAM,GACf;CACL,EAAC,KAAK,OAAO;AACf;;;;;;;;;;;AAYD,SAAS,qBAAqBC,MAA+B;AAC3D,QAAO,OAAO,YACZ,OAAO,QAAQ,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK,MAAM,KAAK;AACzC,SAAO,EAAE,uBAAuB,OAAO,KAAK,UAAU,MAAM,AAAC;CAC9D,EAAC,CACH;AACF;;;;;AAMD,SAAS,sBACPC,UACAC,S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,UAChC;MACD,GAAG,qBAAqB,UAAU,CAAE,EAAC;KACtC;IACF,GACD,OAAO,SAAS;AACd,SAAI,QAAQ,OACV,SAAQ,EACN,IAAI,QAAQ,OACb,EAAC;AAEJ,SAAI,QAAQ,SACV,QAAO,aAAa,QAAQ,SAAS;AAGvC,SAAI;MACF,MAAM,SAAS,MAAM,KAAK,QAAQ,QAAQ,QAAQ;AAClD,WAAK,UAAU,EACb,MAAM,EACP,EAAC;AAEF,iBAAW,WAAW,SACpB,QAAO,EACL,SAAS,CACP;OACE,MAAM;OACN,MAAM;MACP,CACF,EACF;AAGH,UAAI,MAAM,QAAQ,OAAO,CACvB,QAAO,EACL,SAAS,OACV;AAEH,YAAM,IAAI,OAAO,uBAAuB;KACzC,SAAQ,OAAO;AACd,WAAK,UAAU,EACb,MAAM,EACP,EAAC;AAaF,aAAO;OACL,SAAS,CACP;QACE,MAAM;QACN,MAAM,MAAM,kBAAkB,MAAM;OACrC,CACF;OACD,SAAS;MACV;KACF;IACF,EACF;GACF,EAAC;EACH,UAAS;AACR,qBAAkB;EACnB;CACF,EACF;AAEJ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
2
|
const require_errors = require('./errors-YmiXLOyx.cjs');
|
|
3
3
|
const require_client = require('./client-Dkw5iYu3.cjs');
|
|
4
|
-
const require_logging = require('./logging-
|
|
5
|
-
const require_tools = require('./tools-
|
|
4
|
+
const require_logging = require('./logging-CX2buXiG.cjs');
|
|
5
|
+
const require_tools = require('./tools-CHnZvVEN.cjs');
|
|
6
6
|
const require_resources = require('./resources-BM_YQGcb.cjs');
|
|
7
7
|
const require_promptDefinitions = require('./promptDefinitions-C29BWGYg.cjs');
|
|
8
8
|
const require_prompts = require('./prompts-Df3i1XSB.cjs');
|
|
@@ -240,4 +240,4 @@ Object.defineProperty(exports, 'configureServer', {
|
|
|
240
240
|
return configureServer;
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
|
-
//# sourceMappingURL=server-
|
|
243
|
+
//# sourceMappingURL=server-Dgkqz8bA.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-BpEIZVaZ.cjs","names":["error: unknown","ApiError","UserInputError","args: Record<string, unknown>","resource: { name: string; handler: ReadResourceCallback }","context: ServerContext","uri: URL","extra: RequestHandlerExtra<any, any>","variables: Variables","RESOURCES","PROMPT_DEFINITIONS","PROMPT_HANDLERS","tools","params: any","extra: RequestHandlerExtra<ServerRequest, ServerNotification>"],"sources":["../src/server.ts"],"sourcesContent":["/**\n * MCP Server Configuration and Request Handling Infrastructure.\n *\n * This module orchestrates tool execution, prompt handling, resource management,\n * and telemetry collection in a unified server interface for LLMs.\n *\n * **Configuration Example:**\n * ```typescript\n * const server = new McpServer();\n * const context: ServerContext = {\n * accessToken: \"your-sentry-token\",\n * host: \"sentry.io\",\n * userId: \"user-123\",\n * clientId: \"mcp-client\"\n * };\n *\n * await configureServer({ server, context });\n * ```\n */\nimport type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport type { RequestHandlerExtra } from \"@modelcontextprotocol/sdk/shared/protocol.js\";\nimport type {\n ServerRequest,\n ServerNotification,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport type {\n ReadResourceCallback,\n ReadResourceTemplateCallback,\n} from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport type { Variables } from \"@modelcontextprotocol/sdk/shared/uriTemplate.js\";\nimport tools from \"./tools/index\";\nimport type { ServerContext } from \"./types\";\nimport { setTag, setUser, startNewTrace, startSpan } from \"@sentry/core\";\nimport { logError } from \"./logging\";\nimport { RESOURCES, isTemplateResource } from \"./resources\";\nimport { PROMPT_DEFINITIONS } from \"./promptDefinitions\";\nimport { PROMPT_HANDLERS } from \"./prompts\";\nimport { ApiError } from \"./api-client\";\nimport { UserInputError } from \"./errors\";\n\n/**\n * Type guard to identify Sentry API errors.\n */\nfunction isApiError(error: unknown): error is ApiError {\n return error instanceof ApiError;\n}\n\n/**\n * Type guard to identify user input validation errors.\n */\nfunction isUserInputError(error: unknown) {\n return error instanceof UserInputError;\n}\n\n/**\n * Formats errors for LLM consumption with appropriate telemetry handling.\n *\n * **Error Types:**\n * - User Input Errors: Clear guidance without telemetry\n * - API Errors: Enhanced messaging with HTTP status context\n * - System Errors: Full telemetry capture with event IDs\n *\n * @example User Input Error Response\n * ```markdown\n * **Input Error**\n *\n * It looks like there was a problem with the input you provided.\n * Organization slug is required. Please provide an organizationSlug parameter.\n * You may be able to resolve the issue by addressing the concern and trying again.\n * ```\n */\nasync function logAndFormatError(error: unknown) {\n if (isUserInputError(error)) {\n const typedError = error as UserInputError;\n return [\n \"**Input Error**\",\n \"It looks like there was a problem with the input you provided.\",\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 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\n/**\n * Extracts MCP request parameters for OpenTelemetry attributes.\n *\n * @example Parameter Transformation\n * ```typescript\n * const input = { organizationSlug: \"my-org\", query: \"is:unresolved\" };\n * const output = extractMcpParameters(input);\n * // { \"mcp.request.argument.organizationSlug\": \"\\\"my-org\\\"\", \"mcp.request.argument.query\": \"\\\"is:unresolved\\\"\" }\n * ```\n */\nfunction extractMcpParameters(args: Record<string, unknown>) {\n return Object.fromEntries(\n Object.entries(args).map(([key, value]) => {\n return [`mcp.request.argument.${key}`, JSON.stringify(value)];\n }),\n );\n}\n\n/**\n * Creates a telemetry wrapper for regular URI resource handlers.\n * Captures URI access and user context for observability.\n */\nfunction createResourceHandler(\n resource: { name: string; handler: ReadResourceCallback },\n context: ServerContext,\n): ReadResourceCallback {\n return async (uri: URL, extra: RequestHandlerExtra<any, any>) => {\n return await startNewTrace(async () => {\n return await startSpan(\n {\n name: `resources/read ${resource.name}`,\n attributes: {\n \"mcp.resource.name\": resource.name,\n \"mcp.resource.uri\": uri.toString(),\n ...(context.userAgent && {\n \"user_agent.original\": context.userAgent,\n }),\n },\n },\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(uri, extra);\n },\n );\n });\n };\n}\n\n/**\n * Creates a telemetry wrapper for URI template resource handlers.\n * Captures template parameters and user context for observability.\n */\nfunction createTemplateResourceHandler(\n resource: { name: string; handler: ReadResourceCallback },\n context: ServerContext,\n): ReadResourceTemplateCallback {\n return async (\n uri: URL,\n variables: Variables,\n extra: RequestHandlerExtra<any, any>,\n ) => {\n return await startNewTrace(async () => {\n return await startSpan(\n {\n name: `resources/read ${resource.name}`,\n attributes: {\n \"mcp.resource.name\": resource.name,\n \"mcp.resource.uri\": uri.toString(),\n ...(context.userAgent && {\n \"user_agent.original\": context.userAgent,\n }),\n ...extractMcpParameters(variables),\n },\n },\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 // The MCP SDK has already constructed the URI from the template and variables\n // We just need to call the handler with the constructed URI\n return resource.handler(uri, extra);\n },\n );\n });\n };\n}\n\n/**\n * Configures an MCP server with all tools, prompts, resources, and telemetry.\n *\n * Transforms a bare MCP server instance into a fully-featured Sentry integration\n * with comprehensive observability, error handling, and handler registration.\n *\n * @example Basic Configuration\n * ```typescript\n * const server = new McpServer();\n * const context = {\n * accessToken: process.env.SENTRY_TOKEN,\n * host: \"sentry.io\",\n * userId: \"user-123\",\n * clientId: \"cursor-ide\"\n * };\n *\n * await configureServer({ server, context });\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 if (isTemplateResource(resource)) {\n // Handle URI template resources\n server.registerResource(\n resource.name,\n resource.template,\n {\n description: resource.description,\n mimeType: resource.mimeType,\n },\n createTemplateResourceHandler(resource, context),\n );\n } else {\n // Handle regular URI resources\n server.registerResource(\n resource.name,\n resource.uri,\n {\n description: resource.description,\n mimeType: resource.mimeType,\n },\n createResourceHandler(resource, context),\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 ? prompt.paramsSchema : {},\n async (...args) => {\n try {\n return await startNewTrace(async () => {\n return await startSpan(\n {\n name: `prompts/get ${prompt.name}`,\n attributes: {\n \"mcp.prompt.name\": prompt.name,\n ...(context.userAgent && {\n \"user_agent.original\": context.userAgent,\n }),\n ...extractMcpParameters(args[0] || {}),\n },\n },\n async (span) => {\n if (context.userId) {\n setUser({\n id: context.userId,\n });\n }\n if (context.clientId) {\n setTag(\"client.id\", context.clientId);\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 span.setStatus({\n code: 1, // ok\n });\n return {\n messages: [\n {\n role: \"user\" as const,\n content: {\n type: \"text\" as const,\n text: output,\n },\n },\n ],\n };\n } catch (error) {\n span.setStatus({\n code: 2, // error\n });\n throw error;\n }\n },\n );\n });\n } finally {\n onToolComplete?.();\n }\n },\n );\n }\n\n for (const [toolKey, tool] of Object.entries(tools)) {\n server.tool(\n tool.name,\n tool.description,\n tool.inputSchema,\n async (\n params: any,\n extra: RequestHandlerExtra<ServerRequest, ServerNotification>,\n ) => {\n try {\n return await startNewTrace(async () => {\n return await startSpan(\n {\n name: `tools/call ${tool.name}`,\n attributes: {\n \"mcp.tool.name\": tool.name,\n ...(context.userAgent && {\n \"user_agent.original\": context.userAgent,\n }),\n ...extractMcpParameters(params || {}),\n },\n },\n async (span) => {\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 const output = await tool.handler(params, context);\n span.setStatus({\n code: 1, // ok\n });\n // if the tool returns a string, assume it's a message\n if (typeof output === \"string\") {\n return {\n content: [\n {\n type: \"text\" as const,\n text: output,\n },\n ],\n };\n }\n // if the tool returns a list, assume it's a content list\n if (Array.isArray(output)) {\n return {\n content: output,\n };\n }\n throw new Error(`Invalid tool output: ${output}`);\n } catch (error) {\n span.setStatus({\n code: 2, // error\n });\n\n // CRITICAL: Tool errors MUST be returned as formatted text responses,\n // NOT thrown as exceptions. This ensures consistent error handling\n // and prevents the MCP client from receiving raw error objects.\n //\n // The logAndFormatError function provides user-friendly error messages\n // with appropriate formatting for different error types:\n // - UserInputError: Clear guidance for fixing input problems\n // - ApiError: HTTP status context with helpful messaging\n // - System errors: Sentry event IDs for debugging\n //\n // DO NOT change this to throw error - it breaks error handling!\n return {\n content: [\n {\n type: \"text\" as const,\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":";;;;;;;;;;;;;;AA2CA,SAAS,WAAWA,OAAmC;AACrD,QAAO,iBAAiBC;AACzB;;;;AAKD,SAAS,iBAAiBD,OAAgB;AACxC,QAAO,iBAAiBE;AACzB;;;;;;;;;;;;;;;;;;AAmBD,eAAe,kBAAkBF,OAAgB;AAC/C,KAAI,iBAAiB,MAAM,EAAE;EAC3B,MAAM,aAAa;AACnB,SAAO;GACL;GACA;GACA,WAAW;IACV;EACF,EAAC,KAAK,OAAO;CACf;AAED,KAAI,WAAW,MAAM,EAAE;EACrB,MAAM,aAAa;AAC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server-Dgkqz8bA.cjs","names":["error: unknown","ApiError","UserInputError","args: Record<string, unknown>","resource: { name: string; handler: ReadResourceCallback }","context: ServerContext","uri: URL","extra: RequestHandlerExtra<any, any>","variables: Variables","RESOURCES","PROMPT_DEFINITIONS","PROMPT_HANDLERS","tools","params: any","extra: RequestHandlerExtra<ServerRequest, ServerNotification>"],"sources":["../src/server.ts"],"sourcesContent":["/**\n * MCP Server Configuration and Request Handling Infrastructure.\n *\n * This module orchestrates tool execution, prompt handling, resource management,\n * and telemetry collection in a unified server interface for LLMs.\n *\n * **Configuration Example:**\n * ```typescript\n * const server = new McpServer();\n * const context: ServerContext = {\n * accessToken: \"your-sentry-token\",\n * host: \"sentry.io\",\n * userId: \"user-123\",\n * clientId: \"mcp-client\"\n * };\n *\n * await configureServer({ server, context });\n * ```\n */\nimport type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport type { RequestHandlerExtra } from \"@modelcontextprotocol/sdk/shared/protocol.js\";\nimport type {\n ServerRequest,\n ServerNotification,\n} from \"@modelcontextprotocol/sdk/types.js\";\nimport type {\n ReadResourceCallback,\n ReadResourceTemplateCallback,\n} from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport type { Variables } from \"@modelcontextprotocol/sdk/shared/uriTemplate.js\";\nimport tools from \"./tools/index\";\nimport type { ServerContext } from \"./types\";\nimport { setTag, setUser, startNewTrace, startSpan } from \"@sentry/core\";\nimport { logError } from \"./logging\";\nimport { RESOURCES, isTemplateResource } from \"./resources\";\nimport { PROMPT_DEFINITIONS } from \"./promptDefinitions\";\nimport { PROMPT_HANDLERS } from \"./prompts\";\nimport { ApiError } from \"./api-client\";\nimport { UserInputError } from \"./errors\";\n\n/**\n * Type guard to identify Sentry API errors.\n */\nfunction isApiError(error: unknown): error is ApiError {\n return error instanceof ApiError;\n}\n\n/**\n * Type guard to identify user input validation errors.\n */\nfunction isUserInputError(error: unknown) {\n return error instanceof UserInputError;\n}\n\n/**\n * Formats errors for LLM consumption with appropriate telemetry handling.\n *\n * **Error Types:**\n * - User Input Errors: Clear guidance without telemetry\n * - API Errors: Enhanced messaging with HTTP status context\n * - System Errors: Full telemetry capture with event IDs\n *\n * @example User Input Error Response\n * ```markdown\n * **Input Error**\n *\n * It looks like there was a problem with the input you provided.\n * Organization slug is required. Please provide an organizationSlug parameter.\n * You may be able to resolve the issue by addressing the concern and trying again.\n * ```\n */\nasync function logAndFormatError(error: unknown) {\n if (isUserInputError(error)) {\n const typedError = error as UserInputError;\n return [\n \"**Input Error**\",\n \"It looks like there was a problem with the input you provided.\",\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 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\n/**\n * Extracts MCP request parameters for OpenTelemetry attributes.\n *\n * @example Parameter Transformation\n * ```typescript\n * const input = { organizationSlug: \"my-org\", query: \"is:unresolved\" };\n * const output = extractMcpParameters(input);\n * // { \"mcp.request.argument.organizationSlug\": \"\\\"my-org\\\"\", \"mcp.request.argument.query\": \"\\\"is:unresolved\\\"\" }\n * ```\n */\nfunction extractMcpParameters(args: Record<string, unknown>) {\n return Object.fromEntries(\n Object.entries(args).map(([key, value]) => {\n return [`mcp.request.argument.${key}`, JSON.stringify(value)];\n }),\n );\n}\n\n/**\n * Creates a telemetry wrapper for regular URI resource handlers.\n * Captures URI access and user context for observability.\n */\nfunction createResourceHandler(\n resource: { name: string; handler: ReadResourceCallback },\n context: ServerContext,\n): ReadResourceCallback {\n return async (uri: URL, extra: RequestHandlerExtra<any, any>) => {\n return await startNewTrace(async () => {\n return await startSpan(\n {\n name: `resources/read ${resource.name}`,\n attributes: {\n \"mcp.resource.name\": resource.name,\n \"mcp.resource.uri\": uri.toString(),\n ...(context.userAgent && {\n \"user_agent.original\": context.userAgent,\n }),\n },\n },\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(uri, extra);\n },\n );\n });\n };\n}\n\n/**\n * Creates a telemetry wrapper for URI template resource handlers.\n * Captures template parameters and user context for observability.\n */\nfunction createTemplateResourceHandler(\n resource: { name: string; handler: ReadResourceCallback },\n context: ServerContext,\n): ReadResourceTemplateCallback {\n return async (\n uri: URL,\n variables: Variables,\n extra: RequestHandlerExtra<any, any>,\n ) => {\n return await startNewTrace(async () => {\n return await startSpan(\n {\n name: `resources/read ${resource.name}`,\n attributes: {\n \"mcp.resource.name\": resource.name,\n \"mcp.resource.uri\": uri.toString(),\n ...(context.userAgent && {\n \"user_agent.original\": context.userAgent,\n }),\n ...extractMcpParameters(variables),\n },\n },\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 // The MCP SDK has already constructed the URI from the template and variables\n // We just need to call the handler with the constructed URI\n return resource.handler(uri, extra);\n },\n );\n });\n };\n}\n\n/**\n * Configures an MCP server with all tools, prompts, resources, and telemetry.\n *\n * Transforms a bare MCP server instance into a fully-featured Sentry integration\n * with comprehensive observability, error handling, and handler registration.\n *\n * @example Basic Configuration\n * ```typescript\n * const server = new McpServer();\n * const context = {\n * accessToken: process.env.SENTRY_TOKEN,\n * host: \"sentry.io\",\n * userId: \"user-123\",\n * clientId: \"cursor-ide\"\n * };\n *\n * await configureServer({ server, context });\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 if (isTemplateResource(resource)) {\n // Handle URI template resources\n server.registerResource(\n resource.name,\n resource.template,\n {\n description: resource.description,\n mimeType: resource.mimeType,\n },\n createTemplateResourceHandler(resource, context),\n );\n } else {\n // Handle regular URI resources\n server.registerResource(\n resource.name,\n resource.uri,\n {\n description: resource.description,\n mimeType: resource.mimeType,\n },\n createResourceHandler(resource, context),\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 ? prompt.paramsSchema : {},\n async (...args) => {\n try {\n return await startNewTrace(async () => {\n return await startSpan(\n {\n name: `prompts/get ${prompt.name}`,\n attributes: {\n \"mcp.prompt.name\": prompt.name,\n ...(context.userAgent && {\n \"user_agent.original\": context.userAgent,\n }),\n ...extractMcpParameters(args[0] || {}),\n },\n },\n async (span) => {\n if (context.userId) {\n setUser({\n id: context.userId,\n });\n }\n if (context.clientId) {\n setTag(\"client.id\", context.clientId);\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 span.setStatus({\n code: 1, // ok\n });\n return {\n messages: [\n {\n role: \"user\" as const,\n content: {\n type: \"text\" as const,\n text: output,\n },\n },\n ],\n };\n } catch (error) {\n span.setStatus({\n code: 2, // error\n });\n throw error;\n }\n },\n );\n });\n } finally {\n onToolComplete?.();\n }\n },\n );\n }\n\n for (const [toolKey, tool] of Object.entries(tools)) {\n server.tool(\n tool.name,\n tool.description,\n tool.inputSchema,\n async (\n params: any,\n extra: RequestHandlerExtra<ServerRequest, ServerNotification>,\n ) => {\n try {\n return await startNewTrace(async () => {\n return await startSpan(\n {\n name: `tools/call ${tool.name}`,\n attributes: {\n \"mcp.tool.name\": tool.name,\n ...(context.userAgent && {\n \"user_agent.original\": context.userAgent,\n }),\n ...extractMcpParameters(params || {}),\n },\n },\n async (span) => {\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 const output = await tool.handler(params, context);\n span.setStatus({\n code: 1, // ok\n });\n // if the tool returns a string, assume it's a message\n if (typeof output === \"string\") {\n return {\n content: [\n {\n type: \"text\" as const,\n text: output,\n },\n ],\n };\n }\n // if the tool returns a list, assume it's a content list\n if (Array.isArray(output)) {\n return {\n content: output,\n };\n }\n throw new Error(`Invalid tool output: ${output}`);\n } catch (error) {\n span.setStatus({\n code: 2, // error\n });\n\n // CRITICAL: Tool errors MUST be returned as formatted text responses,\n // NOT thrown as exceptions. This ensures consistent error handling\n // and prevents the MCP client from receiving raw error objects.\n //\n // The logAndFormatError function provides user-friendly error messages\n // with appropriate formatting for different error types:\n // - UserInputError: Clear guidance for fixing input problems\n // - ApiError: HTTP status context with helpful messaging\n // - System errors: Sentry event IDs for debugging\n //\n // DO NOT change this to throw error - it breaks error handling!\n return {\n content: [\n {\n type: \"text\" as const,\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":";;;;;;;;;;;;;;AA2CA,SAAS,WAAWA,OAAmC;AACrD,QAAO,iBAAiBC;AACzB;;;;AAKD,SAAS,iBAAiBD,OAAgB;AACxC,QAAO,iBAAiBE;AACzB;;;;;;;;;;;;;;;;;;AAmBD,eAAe,kBAAkBF,OAAgB;AAC/C,KAAI,iBAAiB,MAAM,EAAE;EAC3B,MAAM,aAAa;AACnB,SAAO;GACL;GACA;GACA,WAAW;IACV;EACF,EAAC,KAAK,OAAO;CACf;AAED,KAAI,WAAW,MAAM,EAAE;EACrB,MAAM,aAAa;AACnB,SAAO;GACL;IACC,oBAAoB,WAAW,OAAO;MACpC,WAAW;IACb;EACF,EAAC,KAAK,OAAO;CACf;CAED,MAAM,UAAU,yBAAS,MAAM;AAE/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AU,EACb,MAAM,EACP,EAAC;AACF,aAAM;MACP;KACF,EACF;IACF,EAAC;GACH,UAAS;AACR,sBAAkB;GACnB;EACF,EACF;CACF;AAED,MAAK,MAAM,CAAC,SAAS,KAAK,IAAI,OAAO,QAAQC,4BAAM,CACjD,QAAO,KACL,KAAK,MACL,KAAK,aACL,KAAK,aACL,OACEC,QACAC,UACG;AACH,MAAI;AACF,UAAO,MAAM,iCAAc,YAAY;AACrC,WAAO,MAAM,6BACX;KACE,OAAO,aAAa,KAAK;KACzB,YAAY;MACV,iBAAiB,KAAK;MACtB,GAAI,QAAQ,aAAa,EACvB,uBAAuB,QAAQ,UAChC;MACD,GAAG,qBAAqB,UAAU,CAAE,EAAC;KACtC;IACF,GACD,OAAO,SAAS;AACd,SAAI,QAAQ,OACV,4BAAQ,EACN,IAAI,QAAQ,OACb,EAAC;AAEJ,SAAI,QAAQ,SACV,2BAAO,aAAa,QAAQ,SAAS;AAGvC,SAAI;MACF,MAAM,SAAS,MAAM,KAAK,QAAQ,QAAQ,QAAQ;AAClD,WAAK,UAAU,EACb,MAAM,EACP,EAAC;AAEF,iBAAW,WAAW,SACpB,QAAO,EACL,SAAS,CACP;OACE,MAAM;OACN,MAAM;MACP,CACF,EACF;AAGH,UAAI,MAAM,QAAQ,OAAO,CACvB,QAAO,EACL,SAAS,OACV;AAEH,YAAM,IAAI,OAAO,uBAAuB;KACzC,SAAQ,OAAO;AACd,WAAK,UAAU,EACb,MAAM,EACP,EAAC;AAaF,aAAO;OACL,SAAS,CACP;QACE,MAAM;QACN,MAAM,MAAM,kBAAkB,MAAM;OACrC,CACF;OACD,SAAS;MACV;KACF;IACF,EACF;GACF,EAAC;EACH,UAAS;AACR,qBAAkB;EACnB;CACF,EACF;AAEJ"}
|
package/dist/server.cjs
CHANGED
|
@@ -15,30 +15,30 @@ require('./find-issues-C3uk59rn.cjs');
|
|
|
15
15
|
require('./find-releases-CZCVEOHZ.cjs');
|
|
16
16
|
require('./find-tags-Byk4d3oZ.cjs');
|
|
17
17
|
require('./issue-helpers-DyAIO0w6.cjs');
|
|
18
|
-
require('./
|
|
19
|
-
require('./
|
|
20
|
-
require('./
|
|
21
|
-
require('./get-
|
|
22
|
-
require('./
|
|
23
|
-
require('./
|
|
24
|
-
require('./
|
|
25
|
-
require('./find-
|
|
26
|
-
require('./
|
|
27
|
-
require('./
|
|
28
|
-
require('./
|
|
29
|
-
require('./
|
|
30
|
-
require('./
|
|
31
|
-
require('./
|
|
32
|
-
require('./
|
|
33
|
-
require('./analyze-issue-with-seer-
|
|
18
|
+
require('./seer-utils-CDm5J8ur.cjs');
|
|
19
|
+
require('./formatting-D0Aki7rK.cjs');
|
|
20
|
+
require('./issue-utils-DMKiif6C.cjs');
|
|
21
|
+
require('./get-issue-details-lBrYR9yx.cjs');
|
|
22
|
+
require('./get-event-attachment-C-ig2-3F.cjs');
|
|
23
|
+
require('./formatting-utils-m9R5bsRU.cjs');
|
|
24
|
+
require('./update-issue-DpkxxiNk.cjs');
|
|
25
|
+
require('./find-errors-CB9NpSxG.cjs');
|
|
26
|
+
require('./find-transactions-DuZyqjhF.cjs');
|
|
27
|
+
require('./create-team-CJhrccc1.cjs');
|
|
28
|
+
require('./logging-CX2buXiG.cjs');
|
|
29
|
+
require('./create-project-BxzRiryg.cjs');
|
|
30
|
+
require('./update-project-DLDDbcGY.cjs');
|
|
31
|
+
require('./create-dsn-Dz8nyTFw.cjs');
|
|
32
|
+
require('./find-dsns-CK59RaUJ.cjs');
|
|
33
|
+
require('./analyze-issue-with-seer-BkVrrh28.cjs');
|
|
34
34
|
require('./fetch-utils-oab6uNp3.cjs');
|
|
35
35
|
require('./fetch-utils-C0F4eH6S.cjs');
|
|
36
36
|
require('./search-docs-D5Foht_0.cjs');
|
|
37
37
|
require('./get-doc-DaTCenOE.cjs');
|
|
38
|
-
require('./tools-
|
|
38
|
+
require('./tools-CHnZvVEN.cjs');
|
|
39
39
|
require('./resources-BM_YQGcb.cjs');
|
|
40
40
|
require('./promptDefinitions-C29BWGYg.cjs');
|
|
41
41
|
require('./prompts-Df3i1XSB.cjs');
|
|
42
|
-
const require_server = require('./server-
|
|
42
|
+
const require_server = require('./server-Dgkqz8bA.cjs');
|
|
43
43
|
|
|
44
44
|
exports.configureServer = require_server.configureServer;
|
package/dist/server.js
CHANGED
|
@@ -15,30 +15,30 @@ import "./find-issues-CAtNGBly.js";
|
|
|
15
15
|
import "./find-releases-BUozr0Z-.js";
|
|
16
16
|
import "./find-tags-d-wF1Se8.js";
|
|
17
17
|
import "./issue-helpers-CqqYnwYE.js";
|
|
18
|
-
import "./
|
|
19
|
-
import "./
|
|
20
|
-
import "./
|
|
21
|
-
import "./get-
|
|
22
|
-
import "./
|
|
23
|
-
import "./
|
|
24
|
-
import "./
|
|
25
|
-
import "./find-
|
|
26
|
-
import "./
|
|
27
|
-
import "./
|
|
28
|
-
import "./
|
|
29
|
-
import "./
|
|
30
|
-
import "./
|
|
31
|
-
import "./
|
|
32
|
-
import "./
|
|
33
|
-
import "./analyze-issue-with-seer-
|
|
18
|
+
import "./seer-utils-Cj9DXrow.js";
|
|
19
|
+
import "./formatting-Bvyded57.js";
|
|
20
|
+
import "./issue-utils-BbCfbiY8.js";
|
|
21
|
+
import "./get-issue-details-Dcmzxknx.js";
|
|
22
|
+
import "./get-event-attachment-DVCPpUMj.js";
|
|
23
|
+
import "./formatting-utils-DgOyTl-m.js";
|
|
24
|
+
import "./update-issue-DRTQvy6p.js";
|
|
25
|
+
import "./find-errors-C3oUMeRi.js";
|
|
26
|
+
import "./find-transactions-BiBgg-AE.js";
|
|
27
|
+
import "./create-team-zHz00C6Q.js";
|
|
28
|
+
import "./logging-DzxYBMrn.js";
|
|
29
|
+
import "./create-project-K1od5Rhx.js";
|
|
30
|
+
import "./update-project-YLxt2ry2.js";
|
|
31
|
+
import "./create-dsn-D530I7Lr.js";
|
|
32
|
+
import "./find-dsns-BoEP0N7B.js";
|
|
33
|
+
import "./analyze-issue-with-seer-CoqsTklL.js";
|
|
34
34
|
import "./fetch-utils-BMKjO-cc.js";
|
|
35
35
|
import "./fetch-utils-DlPjrSk2.js";
|
|
36
36
|
import "./search-docs-BLbB_GV2.js";
|
|
37
37
|
import "./get-doc-YTiQznr1.js";
|
|
38
|
-
import "./tools-
|
|
38
|
+
import "./tools-CdXGgq1W.js";
|
|
39
39
|
import "./resources-BHF8a1ZB.js";
|
|
40
40
|
import "./promptDefinitions-CSKE8T0a.js";
|
|
41
41
|
import "./prompts-C8Y9w5c4.js";
|
|
42
|
-
import { configureServer } from "./server-
|
|
42
|
+
import { configureServer } from "./server-BSRxzYFd.js";
|
|
43
43
|
|
|
44
44
|
export { configureServer };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
-
const require_server = require('./server-
|
|
3
|
-
const require_version = require('./version-
|
|
2
|
+
const require_server = require('./server-Dgkqz8bA.cjs');
|
|
3
|
+
const require_version = require('./version-rDjaSkPw.cjs');
|
|
4
4
|
const __modelcontextprotocol_sdk_server_stdio_js = require_chunk.__toESM(require("@modelcontextprotocol/sdk/server/stdio.js"));
|
|
5
5
|
const __sentry_node = require_chunk.__toESM(require("@sentry/node"));
|
|
6
6
|
|
|
@@ -54,4 +54,4 @@ Object.defineProperty(exports, 'startStdio', {
|
|
|
54
54
|
return startStdio;
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
|
-
//# sourceMappingURL=stdio-
|
|
57
|
+
//# sourceMappingURL=stdio-BQAm0Liz.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stdio-
|
|
1
|
+
{"version":3,"file":"stdio-BQAm0Liz.cjs","names":["server: McpServer","context: ServerContext","LIB_VERSION","StdioServerTransport"],"sources":["../src/transports/stdio.ts"],"sourcesContent":["/**\n * Standard I/O Transport for MCP Server.\n *\n * Provides stdio-based communication for the Sentry MCP server, typically used\n * when the server runs as a subprocess communicating via stdin/stdout pipes.\n *\n * @example Basic Usage\n * ```typescript\n * import { Server } from \"@modelcontextprotocol/sdk/server/index.js\";\n * import { startStdio } from \"./transports/stdio.js\";\n *\n * const server = new Server();\n * const context = {\n * accessToken: process.env.SENTRY_TOKEN,\n * host: \"sentry.io\"\n * };\n *\n * await startStdio(server, context);\n * ```\n */\nimport { StdioServerTransport } from \"@modelcontextprotocol/sdk/server/stdio.js\";\nimport type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { configureServer } from \"../server\";\nimport type { ServerContext } from \"../types\";\nimport * as Sentry from \"@sentry/node\";\nimport { LIB_VERSION } from \"../version\";\n\n/**\n * Starts the MCP server with stdio transport and telemetry.\n *\n * Configures the server with all tools, prompts, and resources, then connects\n * using stdio transport for process-based communication. All operations are\n * wrapped in Sentry tracing for observability.\n *\n * @param server - MCP server instance to configure and start\n * @param context - Server context with authentication and configuration\n *\n * @example CLI Integration\n * ```typescript\n * // In a CLI tool or IDE extension:\n * const server = new McpServer();\n * await startStdio(server, {\n * accessToken: userToken,\n * host: userHost,\n * userId: \"user-123\",\n * clientId: \"cursor-ide\"\n * });\n * ```\n */\nexport async function startStdio(server: McpServer, context: ServerContext) {\n await Sentry.startNewTrace(async () => {\n return await Sentry.startSpan(\n {\n name: \"mcp.server/stdio\",\n attributes: {\n \"mcp.transport\": \"stdio\",\n \"network.transport\": \"pipe\",\n \"service.version\": LIB_VERSION,\n },\n },\n async () => {\n const transport = new StdioServerTransport();\n await configureServer({ server, context });\n await server.connect(transport);\n },\n );\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,eAAsB,WAAWA,QAAmBC,SAAwB;AAC1E,OAAM,cAAO,cAAc,YAAY;AACrC,SAAO,MAAM,cAAO,UAClB;GACE,MAAM;GACN,YAAY;IACV,iBAAiB;IACjB,qBAAqB;IACrB,mBAAmBC;GACpB;EACF,GACD,YAAY;GACV,MAAM,YAAY,IAAIC;AACtB,SAAM,+BAAgB;IAAE;IAAQ;GAAS,EAAC;AAC1C,SAAM,OAAO,QAAQ,UAAU;EAChC,EACF;CACF,EAAC;AACH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { configureServer } from "./server-
|
|
2
|
-
import { LIB_VERSION } from "./version-
|
|
1
|
+
import { configureServer } from "./server-BSRxzYFd.js";
|
|
2
|
+
import { LIB_VERSION } from "./version-CcTnFB56.js";
|
|
3
3
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
4
|
import * as Sentry from "@sentry/node";
|
|
5
5
|
|
|
@@ -48,4 +48,4 @@ async function startStdio(server, context) {
|
|
|
48
48
|
|
|
49
49
|
//#endregion
|
|
50
50
|
export { startStdio };
|
|
51
|
-
//# sourceMappingURL=stdio-
|
|
51
|
+
//# sourceMappingURL=stdio-BcihaDjO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stdio-
|
|
1
|
+
{"version":3,"file":"stdio-BcihaDjO.js","names":["server: McpServer","context: ServerContext"],"sources":["../src/transports/stdio.ts"],"sourcesContent":["/**\n * Standard I/O Transport for MCP Server.\n *\n * Provides stdio-based communication for the Sentry MCP server, typically used\n * when the server runs as a subprocess communicating via stdin/stdout pipes.\n *\n * @example Basic Usage\n * ```typescript\n * import { Server } from \"@modelcontextprotocol/sdk/server/index.js\";\n * import { startStdio } from \"./transports/stdio.js\";\n *\n * const server = new Server();\n * const context = {\n * accessToken: process.env.SENTRY_TOKEN,\n * host: \"sentry.io\"\n * };\n *\n * await startStdio(server, context);\n * ```\n */\nimport { StdioServerTransport } from \"@modelcontextprotocol/sdk/server/stdio.js\";\nimport type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { configureServer } from \"../server\";\nimport type { ServerContext } from \"../types\";\nimport * as Sentry from \"@sentry/node\";\nimport { LIB_VERSION } from \"../version\";\n\n/**\n * Starts the MCP server with stdio transport and telemetry.\n *\n * Configures the server with all tools, prompts, and resources, then connects\n * using stdio transport for process-based communication. All operations are\n * wrapped in Sentry tracing for observability.\n *\n * @param server - MCP server instance to configure and start\n * @param context - Server context with authentication and configuration\n *\n * @example CLI Integration\n * ```typescript\n * // In a CLI tool or IDE extension:\n * const server = new McpServer();\n * await startStdio(server, {\n * accessToken: userToken,\n * host: userHost,\n * userId: \"user-123\",\n * clientId: \"cursor-ide\"\n * });\n * ```\n */\nexport async function startStdio(server: McpServer, context: ServerContext) {\n await Sentry.startNewTrace(async () => {\n return await Sentry.startSpan(\n {\n name: \"mcp.server/stdio\",\n attributes: {\n \"mcp.transport\": \"stdio\",\n \"network.transport\": \"pipe\",\n \"service.version\": LIB_VERSION,\n },\n },\n async () => {\n const transport = new StdioServerTransport();\n await configureServer({ server, context });\n await server.connect(transport);\n },\n );\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,eAAsB,WAAWA,QAAmBC,SAAwB;AAC1E,OAAM,OAAO,cAAc,YAAY;AACrC,SAAO,MAAM,OAAO,UAClB;GACE,MAAM;GACN,YAAY;IACV,iBAAiB;IACjB,qBAAqB;IACrB,mBAAmB;GACpB;EACF,GACD,YAAY;GACV,MAAM,YAAY,IAAI;AACtB,SAAM,gBAAgB;IAAE;IAAQ;GAAS,EAAC;AAC1C,SAAM,OAAO,QAAQ,UAAU;EAChC,EACF;CACF,EAAC;AACH"}
|