@sentry/mcp-server 0.27.0 → 0.28.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/index.cjs +69 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +69 -55
- package/dist/index.js.map +1 -1
- package/dist/{stdio-D7VKnapT.js → stdio-By-q6V_4.js} +3 -3
- package/dist/{stdio-D7VKnapT.js.map → stdio-By-q6V_4.js.map} +1 -1
- package/dist/{stdio-Dv01oTty.cjs → stdio-CjpLGbyD.cjs} +3 -3
- package/dist/{stdio-Dv01oTty.cjs.map → stdio-CjpLGbyD.cjs.map} +1 -1
- package/dist/transports/stdio.cjs +1 -1
- package/dist/transports/stdio.js +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const require_chunk = require('./chunk-DoeelZqw.cjs');
|
|
3
3
|
const require_resolve = require('./resolve-DFUPLqHE.cjs');
|
|
4
|
-
const require_stdio = require('./stdio-
|
|
4
|
+
const require_stdio = require('./stdio-CjpLGbyD.cjs');
|
|
5
5
|
const require_config_CEjP2CYO = require('./config-CEjP2CYO-CZKUamRu.cjs');
|
|
6
6
|
const require_usage = require('./usage-D9Tpyb5N.cjs');
|
|
7
7
|
const require_parse = require('./parse-c_3eNB2Z.cjs');
|
|
@@ -2489,7 +2489,7 @@ function createApiError(message, status, detail, responseBody) {
|
|
|
2489
2489
|
}
|
|
2490
2490
|
|
|
2491
2491
|
//#endregion
|
|
2492
|
-
//#region ../mcp-core/dist/client-
|
|
2492
|
+
//#region ../mcp-core/dist/client-B2nQcl5S.js
|
|
2493
2493
|
/**
|
|
2494
2494
|
* Mapping of common network error codes to user-friendly messages.
|
|
2495
2495
|
* These help users understand and resolve connection issues.
|
|
@@ -3656,7 +3656,7 @@ function validateRegionUrl(regionUrl, baseHost) {
|
|
|
3656
3656
|
}
|
|
3657
3657
|
|
|
3658
3658
|
//#endregion
|
|
3659
|
-
//#region ../mcp-core/dist/api-
|
|
3659
|
+
//#region ../mcp-core/dist/api-DVbaHIM5.js
|
|
3660
3660
|
/**
|
|
3661
3661
|
* Create a Sentry API service from server context with optional region override
|
|
3662
3662
|
* @param context - Server context containing host and access token
|
|
@@ -3677,7 +3677,7 @@ function apiServiceFromContext(context$1, opts = {}) {
|
|
|
3677
3677
|
}
|
|
3678
3678
|
|
|
3679
3679
|
//#endregion
|
|
3680
|
-
//#region ../mcp-core/dist/whoami-
|
|
3680
|
+
//#region ../mcp-core/dist/whoami-CEHtgXJv.js
|
|
3681
3681
|
var whoami_default = defineTool({
|
|
3682
3682
|
name: "whoami",
|
|
3683
3683
|
description: [
|
|
@@ -3710,7 +3710,7 @@ var whoami_default = defineTool({
|
|
|
3710
3710
|
});
|
|
3711
3711
|
|
|
3712
3712
|
//#endregion
|
|
3713
|
-
//#region ../mcp-core/dist/find-organizations-
|
|
3713
|
+
//#region ../mcp-core/dist/find-organizations-Bs2wsqQ7.js
|
|
3714
3714
|
const RESULT_LIMIT$2 = 25;
|
|
3715
3715
|
var find_organizations_default = defineTool({
|
|
3716
3716
|
name: "find_organizations",
|
|
@@ -3762,7 +3762,7 @@ var find_organizations_default = defineTool({
|
|
|
3762
3762
|
});
|
|
3763
3763
|
|
|
3764
3764
|
//#endregion
|
|
3765
|
-
//#region ../mcp-core/dist/find-teams-
|
|
3765
|
+
//#region ../mcp-core/dist/find-teams-CgsSmQ8X.js
|
|
3766
3766
|
const RESULT_LIMIT$1 = 25;
|
|
3767
3767
|
var find_teams_default = defineTool({
|
|
3768
3768
|
name: "find_teams",
|
|
@@ -3810,7 +3810,7 @@ var find_teams_default = defineTool({
|
|
|
3810
3810
|
});
|
|
3811
3811
|
|
|
3812
3812
|
//#endregion
|
|
3813
|
-
//#region ../mcp-core/dist/find-projects-
|
|
3813
|
+
//#region ../mcp-core/dist/find-projects-Cxw1nnPQ.js
|
|
3814
3814
|
const RESULT_LIMIT = 25;
|
|
3815
3815
|
var find_projects_default = defineTool({
|
|
3816
3816
|
name: "find_projects",
|
|
@@ -3854,7 +3854,7 @@ var find_projects_default = defineTool({
|
|
|
3854
3854
|
});
|
|
3855
3855
|
|
|
3856
3856
|
//#endregion
|
|
3857
|
-
//#region ../mcp-core/dist/find-releases-
|
|
3857
|
+
//#region ../mcp-core/dist/find-releases-zWgFsagR.js
|
|
3858
3858
|
var find_releases_default = defineTool({
|
|
3859
3859
|
name: "find_releases",
|
|
3860
3860
|
skills: ["inspect"],
|
|
@@ -5099,7 +5099,7 @@ function enhanceNotFoundError(error, params) {
|
|
|
5099
5099
|
}
|
|
5100
5100
|
|
|
5101
5101
|
//#endregion
|
|
5102
|
-
//#region ../mcp-core/dist/get-issue-details-
|
|
5102
|
+
//#region ../mcp-core/dist/get-issue-details-CsNkINzN.js
|
|
5103
5103
|
var get_issue_details_default = defineTool({
|
|
5104
5104
|
name: "get_issue_details",
|
|
5105
5105
|
skills: [
|
|
@@ -5280,7 +5280,7 @@ function shouldFetchTraceForEvent(event) {
|
|
|
5280
5280
|
}
|
|
5281
5281
|
|
|
5282
5282
|
//#endregion
|
|
5283
|
-
//#region ../mcp-core/dist/get-issue-tag-values-
|
|
5283
|
+
//#region ../mcp-core/dist/get-issue-tag-values-B4lzlivL.js
|
|
5284
5284
|
var get_issue_tag_values_default = defineTool({
|
|
5285
5285
|
name: "get_issue_tag_values",
|
|
5286
5286
|
skills: ["inspect"],
|
|
@@ -5395,7 +5395,7 @@ var get_issue_tag_values_default = defineTool({
|
|
|
5395
5395
|
});
|
|
5396
5396
|
|
|
5397
5397
|
//#endregion
|
|
5398
|
-
//#region ../mcp-core/dist/get-trace-details-
|
|
5398
|
+
//#region ../mcp-core/dist/get-trace-details-DAPondqS.js
|
|
5399
5399
|
const MAX_DEPTH = 2;
|
|
5400
5400
|
const MINIMUM_DURATION_THRESHOLD_MS = 10;
|
|
5401
5401
|
const MIN_MEANINGFUL_CHILD_DURATION = 5;
|
|
@@ -5694,7 +5694,7 @@ function formatTraceOutput({ organizationSlug, traceId, traceMeta, trace: trace$
|
|
|
5694
5694
|
}
|
|
5695
5695
|
|
|
5696
5696
|
//#endregion
|
|
5697
|
-
//#region ../mcp-core/dist/get-event-attachment-
|
|
5697
|
+
//#region ../mcp-core/dist/get-event-attachment-C-huGpTH.js
|
|
5698
5698
|
var get_event_attachment_default = defineTool({
|
|
5699
5699
|
name: "get_event_attachment",
|
|
5700
5700
|
skills: ["inspect"],
|
|
@@ -5842,7 +5842,7 @@ function formatAssignedTo(assignedTo) {
|
|
|
5842
5842
|
}
|
|
5843
5843
|
|
|
5844
5844
|
//#endregion
|
|
5845
|
-
//#region ../mcp-core/dist/update-issue-
|
|
5845
|
+
//#region ../mcp-core/dist/update-issue-BArI_SjL.js
|
|
5846
5846
|
var update_issue_default = defineTool({
|
|
5847
5847
|
name: "update_issue",
|
|
5848
5848
|
skills: ["triage"],
|
|
@@ -9133,14 +9133,8 @@ function createOpenAI(options = {}) {
|
|
|
9133
9133
|
var openai = createOpenAI({ compatibility: "strict" });
|
|
9134
9134
|
|
|
9135
9135
|
//#endregion
|
|
9136
|
-
//#region ../mcp-core/dist/openai-provider-
|
|
9136
|
+
//#region ../mcp-core/dist/openai-provider-Cc13TpEA.js
|
|
9137
9137
|
const DEFAULT_OPENAI_MODEL = "gpt-5";
|
|
9138
|
-
const VALID_REASONING_EFFORTS = [
|
|
9139
|
-
"low",
|
|
9140
|
-
"medium",
|
|
9141
|
-
"high"
|
|
9142
|
-
];
|
|
9143
|
-
const DEFAULT_REASONING_EFFORT = "low";
|
|
9144
9138
|
let configuredBaseUrl$1;
|
|
9145
9139
|
/**
|
|
9146
9140
|
* Configure the OpenAI base URL (CLI flag only, not environment variable).
|
|
@@ -9152,27 +9146,27 @@ function setOpenAIBaseUrl(baseUrl) {
|
|
|
9152
9146
|
/**
|
|
9153
9147
|
* Retrieve an OpenAI language model configured from environment variables and explicit config.
|
|
9154
9148
|
*
|
|
9149
|
+
* Works with:
|
|
9150
|
+
* - OpenAI API directly (default)
|
|
9151
|
+
* - Any OpenAI-compatible API via custom base URL (Vercel AI Gateway, Azure OpenAI, etc.)
|
|
9152
|
+
*
|
|
9155
9153
|
* Configuration:
|
|
9154
|
+
* - OPENAI_API_KEY: API key for authentication (required)
|
|
9156
9155
|
* - OPENAI_MODEL: Model to use (default: "gpt-5") - env var OK
|
|
9157
|
-
* - OPENAI_REASONING_EFFORT: Reasoning effort for o1 models: "low", "medium", "high", or "" to disable (default: "low") - env var OK
|
|
9158
9156
|
* - Base URL: Must be set via setOpenAIBaseUrl() - NOT from env vars (security risk)
|
|
9157
|
+
*
|
|
9158
|
+
* Note: Model name format depends on your provider:
|
|
9159
|
+
* - Direct OpenAI: "gpt-4o", "gpt-4-turbo", etc.
|
|
9160
|
+
* - Vercel AI Gateway: "openai/gpt-4o", "anthropic/claude-sonnet-4.5", etc.
|
|
9161
|
+
* - Other providers: Check their documentation
|
|
9159
9162
|
*/
|
|
9160
9163
|
function getOpenAIModel(model) {
|
|
9161
9164
|
const defaultModel = process.env.OPENAI_MODEL || DEFAULT_OPENAI_MODEL;
|
|
9162
|
-
const envReasoningEffort = process.env.OPENAI_REASONING_EFFORT;
|
|
9163
|
-
let reasoningEffort;
|
|
9164
|
-
if (envReasoningEffort === "") reasoningEffort = void 0;
|
|
9165
|
-
else if (envReasoningEffort === void 0) reasoningEffort = DEFAULT_REASONING_EFFORT;
|
|
9166
|
-
else if (VALID_REASONING_EFFORTS.includes(envReasoningEffort)) reasoningEffort = envReasoningEffort;
|
|
9167
|
-
else {
|
|
9168
|
-
const validValues = VALID_REASONING_EFFORTS.map((v) => `"${v}"`).join(", ");
|
|
9169
|
-
throw new Error(`Invalid OPENAI_REASONING_EFFORT value: "${envReasoningEffort}". Must be one of: ${validValues}, or "" (empty string to disable). Default is "${DEFAULT_REASONING_EFFORT}".`);
|
|
9170
|
-
}
|
|
9171
9165
|
const factory = createOpenAI({
|
|
9172
9166
|
...configuredBaseUrl$1 && { baseURL: configuredBaseUrl$1 },
|
|
9173
9167
|
headers: { "User-Agent": require_stdio.USER_AGENT }
|
|
9174
9168
|
});
|
|
9175
|
-
return factory(model ?? defaultModel
|
|
9169
|
+
return factory(model ?? defaultModel);
|
|
9176
9170
|
}
|
|
9177
9171
|
|
|
9178
9172
|
//#endregion
|
|
@@ -10278,7 +10272,7 @@ function createAnthropic(options = {}) {
|
|
|
10278
10272
|
var anthropic = createAnthropic();
|
|
10279
10273
|
|
|
10280
10274
|
//#endregion
|
|
10281
|
-
//#region ../mcp-core/dist/anthropic-provider-
|
|
10275
|
+
//#region ../mcp-core/dist/anthropic-provider-DOE-j9k3.js
|
|
10282
10276
|
const DEFAULT_ANTHROPIC_MODEL = "claude-sonnet-4-5";
|
|
10283
10277
|
let configuredBaseUrl;
|
|
10284
10278
|
/**
|
|
@@ -10292,6 +10286,7 @@ function setAnthropicBaseUrl(baseUrl) {
|
|
|
10292
10286
|
* Retrieve an Anthropic language model configured from environment variables and explicit config.
|
|
10293
10287
|
*
|
|
10294
10288
|
* Configuration:
|
|
10289
|
+
* - ANTHROPIC_API_KEY: API key for authentication (required)
|
|
10295
10290
|
* - ANTHROPIC_MODEL: Model to use (default: "claude-sonnet-4-5") - env var OK
|
|
10296
10291
|
* - Base URL: Must be set via setAnthropicBaseUrl() - NOT from env vars (security risk)
|
|
10297
10292
|
*/
|
|
@@ -10305,7 +10300,7 @@ function getAnthropicModel(model) {
|
|
|
10305
10300
|
}
|
|
10306
10301
|
|
|
10307
10302
|
//#endregion
|
|
10308
|
-
//#region ../mcp-core/dist/provider-factory-
|
|
10303
|
+
//#region ../mcp-core/dist/provider-factory-BPN0JlR3.js
|
|
10309
10304
|
let configuredProvider;
|
|
10310
10305
|
/**
|
|
10311
10306
|
* Configure the embedded agent provider explicitly.
|
|
@@ -15685,7 +15680,7 @@ function trimStartOfStream() {
|
|
|
15685
15680
|
var HANGING_STREAM_WARNING_TIME_MS = 15 * 1e3;
|
|
15686
15681
|
|
|
15687
15682
|
//#endregion
|
|
15688
|
-
//#region ../mcp-core/dist/callEmbeddedAgent
|
|
15683
|
+
//#region ../mcp-core/dist/callEmbeddedAgent-BoQGUoqc.js
|
|
15689
15684
|
/**
|
|
15690
15685
|
* Call an embedded agent with tool call capture
|
|
15691
15686
|
* This is the standard way to call embedded AI agents within MCP tools
|
|
@@ -20774,7 +20769,7 @@ Use these examples as patterns for constructing your query.`;
|
|
|
20774
20769
|
}
|
|
20775
20770
|
|
|
20776
20771
|
//#endregion
|
|
20777
|
-
//#region ../mcp-core/dist/agent-
|
|
20772
|
+
//#region ../mcp-core/dist/agent-ChQa0if8.js
|
|
20778
20773
|
const searchEventsAgentOutputSchema = zod.z.object({
|
|
20779
20774
|
dataset: zod.z.enum([
|
|
20780
20775
|
"spans",
|
|
@@ -21045,7 +21040,7 @@ function formatSpanResults(params) {
|
|
|
21045
21040
|
}
|
|
21046
21041
|
|
|
21047
21042
|
//#endregion
|
|
21048
|
-
//#region ../mcp-core/dist/handler-
|
|
21043
|
+
//#region ../mcp-core/dist/handler-DdfFan0E.js
|
|
21049
21044
|
var handler_default = defineTool({
|
|
21050
21045
|
name: "search_events",
|
|
21051
21046
|
skills: [
|
|
@@ -21186,7 +21181,7 @@ var handler_default = defineTool({
|
|
|
21186
21181
|
});
|
|
21187
21182
|
|
|
21188
21183
|
//#endregion
|
|
21189
|
-
//#region ../mcp-core/dist/create-team-
|
|
21184
|
+
//#region ../mcp-core/dist/create-team-ybunuUI_.js
|
|
21190
21185
|
var create_team_default = defineTool({
|
|
21191
21186
|
name: "create_team",
|
|
21192
21187
|
skills: ["project-management"],
|
|
@@ -21241,7 +21236,7 @@ var create_team_default = defineTool({
|
|
|
21241
21236
|
});
|
|
21242
21237
|
|
|
21243
21238
|
//#endregion
|
|
21244
|
-
//#region ../mcp-core/dist/create-project-
|
|
21239
|
+
//#region ../mcp-core/dist/create-project-BozSQ6GO.js
|
|
21245
21240
|
var create_project_default = defineTool({
|
|
21246
21241
|
name: "create_project",
|
|
21247
21242
|
skills: ["project-management"],
|
|
@@ -21318,7 +21313,7 @@ var create_project_default = defineTool({
|
|
|
21318
21313
|
});
|
|
21319
21314
|
|
|
21320
21315
|
//#endregion
|
|
21321
|
-
//#region ../mcp-core/dist/update-project-
|
|
21316
|
+
//#region ../mcp-core/dist/update-project-CSbOMuOW.js
|
|
21322
21317
|
var update_project_default = defineTool({
|
|
21323
21318
|
name: "update_project",
|
|
21324
21319
|
skills: ["project-management"],
|
|
@@ -21436,7 +21431,7 @@ var update_project_default = defineTool({
|
|
|
21436
21431
|
});
|
|
21437
21432
|
|
|
21438
21433
|
//#endregion
|
|
21439
|
-
//#region ../mcp-core/dist/create-dsn-
|
|
21434
|
+
//#region ../mcp-core/dist/create-dsn-BymieFiV.js
|
|
21440
21435
|
var create_dsn_default = defineTool({
|
|
21441
21436
|
name: "create_dsn",
|
|
21442
21437
|
skills: ["project-management"],
|
|
@@ -21496,7 +21491,7 @@ var create_dsn_default = defineTool({
|
|
|
21496
21491
|
});
|
|
21497
21492
|
|
|
21498
21493
|
//#endregion
|
|
21499
|
-
//#region ../mcp-core/dist/find-dsns-
|
|
21494
|
+
//#region ../mcp-core/dist/find-dsns-_H3b8I5-.js
|
|
21500
21495
|
var find_dsns_default = defineTool({
|
|
21501
21496
|
name: "find_dsns",
|
|
21502
21497
|
skills: ["project-management"],
|
|
@@ -21597,7 +21592,7 @@ async function retryWithBackoff(fn, { maxRetries = 3, initialDelay = 1e3, should
|
|
|
21597
21592
|
}
|
|
21598
21593
|
|
|
21599
21594
|
//#endregion
|
|
21600
|
-
//#region ../mcp-core/dist/analyze-issue-with-seer-
|
|
21595
|
+
//#region ../mcp-core/dist/analyze-issue-with-seer-C6Ke4lsw.js
|
|
21601
21596
|
var analyze_issue_with_seer_default = defineTool({
|
|
21602
21597
|
name: "analyze_issue_with_seer",
|
|
21603
21598
|
skills: ["seer"],
|
|
@@ -21868,7 +21863,7 @@ var search_docs_default = defineTool({
|
|
|
21868
21863
|
});
|
|
21869
21864
|
|
|
21870
21865
|
//#endregion
|
|
21871
|
-
//#region ../mcp-core/dist/get-doc-
|
|
21866
|
+
//#region ../mcp-core/dist/get-doc-Ce6QYANY.js
|
|
21872
21867
|
var get_doc_default = defineTool({
|
|
21873
21868
|
name: "get_doc",
|
|
21874
21869
|
skills: ["docs"],
|
|
@@ -22175,7 +22170,7 @@ Always use the issueFields tool to discover available fields when needed.
|
|
|
22175
22170
|
Use the whoami tool when you need to resolve 'me' references.`;
|
|
22176
22171
|
|
|
22177
22172
|
//#endregion
|
|
22178
|
-
//#region ../mcp-core/dist/agent-
|
|
22173
|
+
//#region ../mcp-core/dist/agent-qJanDgXA.js
|
|
22179
22174
|
const searchIssuesAgentOutputSchema = zod.z.object({
|
|
22180
22175
|
query: zod.z.string().describe("The Sentry issue search query"),
|
|
22181
22176
|
sort: zod.z.enum([
|
|
@@ -22292,7 +22287,7 @@ function formatDate(dateString) {
|
|
|
22292
22287
|
}
|
|
22293
22288
|
|
|
22294
22289
|
//#endregion
|
|
22295
|
-
//#region ../mcp-core/dist/handler-
|
|
22290
|
+
//#region ../mcp-core/dist/handler-DriMefmS.js
|
|
22296
22291
|
var handler_default$1 = defineTool({
|
|
22297
22292
|
name: "search_issues",
|
|
22298
22293
|
skills: [
|
|
@@ -22827,7 +22822,7 @@ Received: ${params.issueUrl}`);
|
|
|
22827
22822
|
}
|
|
22828
22823
|
|
|
22829
22824
|
//#endregion
|
|
22830
|
-
//#region ../mcp-core/dist/agent-
|
|
22825
|
+
//#region ../mcp-core/dist/agent-BGV8TUGG.js
|
|
22831
22826
|
const searchIssueEventsAgentOutputSchema = zod.z.object({
|
|
22832
22827
|
query: zod.z.string().describe("Sentry query filters for tags/fields (NOT including issue: prefix - handler adds that)"),
|
|
22833
22828
|
fields: zod.z.array(zod.z.string()).describe("Array of field names to return in results"),
|
|
@@ -22869,7 +22864,7 @@ async function searchIssueEventsAgent(options) {
|
|
|
22869
22864
|
}
|
|
22870
22865
|
|
|
22871
22866
|
//#endregion
|
|
22872
|
-
//#region ../mcp-core/dist/handler-
|
|
22867
|
+
//#region ../mcp-core/dist/handler-dNZGGGFd.js
|
|
22873
22868
|
var handler_default$2 = defineTool({
|
|
22874
22869
|
name: "search_issue_events",
|
|
22875
22870
|
skills: ["inspect", "triage"],
|
|
@@ -22990,7 +22985,7 @@ The user may include various parameters to pass to those tools in their prompt.
|
|
|
22990
22985
|
You MUST return tool results directly without interpreting them.`;
|
|
22991
22986
|
|
|
22992
22987
|
//#endregion
|
|
22993
|
-
//#region ../mcp-core/dist/agent-
|
|
22988
|
+
//#region ../mcp-core/dist/agent-2JRDh9Lm.js
|
|
22994
22989
|
/**
|
|
22995
22990
|
* Output schema for the embedded agent.
|
|
22996
22991
|
* The agent returns the final result string directly from its tool calls.
|
|
@@ -23011,7 +23006,7 @@ async function useSentryAgent(options) {
|
|
|
23011
23006
|
}
|
|
23012
23007
|
|
|
23013
23008
|
//#endregion
|
|
23014
|
-
//#region ../mcp-core/dist/list-issues-
|
|
23009
|
+
//#region ../mcp-core/dist/list-issues-DpmIWiEG.js
|
|
23015
23010
|
var list_issues_default = defineTool({
|
|
23016
23011
|
name: "list_issues",
|
|
23017
23012
|
skills: [
|
|
@@ -23094,7 +23089,7 @@ var list_issues_default = defineTool({
|
|
|
23094
23089
|
});
|
|
23095
23090
|
|
|
23096
23091
|
//#endregion
|
|
23097
|
-
//#region ../mcp-core/dist/list-events-
|
|
23092
|
+
//#region ../mcp-core/dist/list-events-BCMaD3UM.js
|
|
23098
23093
|
const DEFAULT_FIELDS = {
|
|
23099
23094
|
errors: require_config_CEjP2CYO.RECOMMENDED_FIELDS.errors.basic,
|
|
23100
23095
|
logs: require_config_CEjP2CYO.RECOMMENDED_FIELDS.logs.basic,
|
|
@@ -23216,7 +23211,7 @@ var list_events_default = defineTool({
|
|
|
23216
23211
|
});
|
|
23217
23212
|
|
|
23218
23213
|
//#endregion
|
|
23219
|
-
//#region ../mcp-core/dist/list-issue-events-
|
|
23214
|
+
//#region ../mcp-core/dist/list-issue-events-D2EcLe8P.js
|
|
23220
23215
|
var list_issue_events_default = defineTool({
|
|
23221
23216
|
name: "list_issue_events",
|
|
23222
23217
|
skills: ["inspect", "triage"],
|
|
@@ -23453,7 +23448,7 @@ function getConstraintParametersToInject(constraints, toolInputSchema) {
|
|
|
23453
23448
|
}
|
|
23454
23449
|
|
|
23455
23450
|
//#endregion
|
|
23456
|
-
//#region ../mcp-core/dist/server-
|
|
23451
|
+
//#region ../mcp-core/dist/server-CbkVklfg.js
|
|
23457
23452
|
/**
|
|
23458
23453
|
* Format tool calls into a readable trace
|
|
23459
23454
|
*/
|
|
@@ -23915,6 +23910,25 @@ if (cli.agent) {
|
|
|
23915
23910
|
console.warn("");
|
|
23916
23911
|
}
|
|
23917
23912
|
const SENTRY_TIMEOUT = 5e3;
|
|
23913
|
+
async function shutdown(signal) {
|
|
23914
|
+
console.error(`${signal} received, shutting down...`);
|
|
23915
|
+
await __sentry_node.flush(SENTRY_TIMEOUT);
|
|
23916
|
+
process.exit(0);
|
|
23917
|
+
}
|
|
23918
|
+
process.on("SIGTERM", () => shutdown("SIGTERM"));
|
|
23919
|
+
process.on("SIGINT", () => shutdown("SIGINT"));
|
|
23920
|
+
process.on("uncaughtException", async (error) => {
|
|
23921
|
+
console.error("Uncaught exception:", error);
|
|
23922
|
+
__sentry_node.captureException(error);
|
|
23923
|
+
await __sentry_node.flush(SENTRY_TIMEOUT);
|
|
23924
|
+
process.exit(1);
|
|
23925
|
+
});
|
|
23926
|
+
process.on("unhandledRejection", async (reason) => {
|
|
23927
|
+
console.error("Unhandled rejection:", reason);
|
|
23928
|
+
__sentry_node.captureException(reason);
|
|
23929
|
+
await __sentry_node.flush(SENTRY_TIMEOUT);
|
|
23930
|
+
process.exit(1);
|
|
23931
|
+
});
|
|
23918
23932
|
const context = {
|
|
23919
23933
|
accessToken: cfg.accessToken,
|
|
23920
23934
|
grantedSkills: cfg.finalSkills,
|
|
@@ -23930,12 +23944,12 @@ const server = buildServer({
|
|
|
23930
23944
|
context,
|
|
23931
23945
|
agentMode: cli.agent
|
|
23932
23946
|
});
|
|
23933
|
-
require_stdio.startStdio(server, context).catch((err) => {
|
|
23947
|
+
require_stdio.startStdio(server, context).catch(async (err) => {
|
|
23934
23948
|
console.error("Server error:", err);
|
|
23935
|
-
__sentry_node.
|
|
23949
|
+
__sentry_node.captureException(err);
|
|
23950
|
+
await __sentry_node.flush(SENTRY_TIMEOUT);
|
|
23936
23951
|
process.exit(1);
|
|
23937
23952
|
});
|
|
23938
|
-
__sentry_node.flush(SENTRY_TIMEOUT);
|
|
23939
23953
|
|
|
23940
23954
|
//#endregion
|
|
23941
23955
|
//# sourceMappingURL=index.cjs.map
|