@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.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { ALL_SKILLS, SKILLS, finalize, getIssueUrl, getIssuesSearchUrl, getTraceUrl, isEnabledBySkills, isSentryHost } from "./resolve-DpUhCbfh.js";
|
|
3
|
-
import { LIB_VERSION, USER_AGENT, startStdio } from "./stdio-
|
|
3
|
+
import { LIB_VERSION, USER_AGENT, startStdio } from "./stdio-By-q6V_4.js";
|
|
4
4
|
import { RECOMMENDED_FIELDS, systemPrompt } from "./config-CEjP2CYO-DNCUeo0R.js";
|
|
5
5
|
import { buildUsage } from "./usage-DR57Krum.js";
|
|
6
6
|
import { merge, parseArgv, parseEnv } from "./parse-B9o4fVyT.js";
|
|
@@ -2520,7 +2520,7 @@ function createApiError(message, status, detail, responseBody) {
|
|
|
2520
2520
|
}
|
|
2521
2521
|
|
|
2522
2522
|
//#endregion
|
|
2523
|
-
//#region ../mcp-core/dist/client-
|
|
2523
|
+
//#region ../mcp-core/dist/client-B2nQcl5S.js
|
|
2524
2524
|
/**
|
|
2525
2525
|
* Mapping of common network error codes to user-friendly messages.
|
|
2526
2526
|
* These help users understand and resolve connection issues.
|
|
@@ -3687,7 +3687,7 @@ function validateRegionUrl(regionUrl, baseHost) {
|
|
|
3687
3687
|
}
|
|
3688
3688
|
|
|
3689
3689
|
//#endregion
|
|
3690
|
-
//#region ../mcp-core/dist/api-
|
|
3690
|
+
//#region ../mcp-core/dist/api-DVbaHIM5.js
|
|
3691
3691
|
/**
|
|
3692
3692
|
* Create a Sentry API service from server context with optional region override
|
|
3693
3693
|
* @param context - Server context containing host and access token
|
|
@@ -3708,7 +3708,7 @@ function apiServiceFromContext(context$1, opts = {}) {
|
|
|
3708
3708
|
}
|
|
3709
3709
|
|
|
3710
3710
|
//#endregion
|
|
3711
|
-
//#region ../mcp-core/dist/whoami-
|
|
3711
|
+
//#region ../mcp-core/dist/whoami-CEHtgXJv.js
|
|
3712
3712
|
var whoami_default = defineTool({
|
|
3713
3713
|
name: "whoami",
|
|
3714
3714
|
description: [
|
|
@@ -3741,7 +3741,7 @@ var whoami_default = defineTool({
|
|
|
3741
3741
|
});
|
|
3742
3742
|
|
|
3743
3743
|
//#endregion
|
|
3744
|
-
//#region ../mcp-core/dist/find-organizations-
|
|
3744
|
+
//#region ../mcp-core/dist/find-organizations-Bs2wsqQ7.js
|
|
3745
3745
|
const RESULT_LIMIT$2 = 25;
|
|
3746
3746
|
var find_organizations_default = defineTool({
|
|
3747
3747
|
name: "find_organizations",
|
|
@@ -3793,7 +3793,7 @@ var find_organizations_default = defineTool({
|
|
|
3793
3793
|
});
|
|
3794
3794
|
|
|
3795
3795
|
//#endregion
|
|
3796
|
-
//#region ../mcp-core/dist/find-teams-
|
|
3796
|
+
//#region ../mcp-core/dist/find-teams-CgsSmQ8X.js
|
|
3797
3797
|
const RESULT_LIMIT$1 = 25;
|
|
3798
3798
|
var find_teams_default = defineTool({
|
|
3799
3799
|
name: "find_teams",
|
|
@@ -3841,7 +3841,7 @@ var find_teams_default = defineTool({
|
|
|
3841
3841
|
});
|
|
3842
3842
|
|
|
3843
3843
|
//#endregion
|
|
3844
|
-
//#region ../mcp-core/dist/find-projects-
|
|
3844
|
+
//#region ../mcp-core/dist/find-projects-Cxw1nnPQ.js
|
|
3845
3845
|
const RESULT_LIMIT = 25;
|
|
3846
3846
|
var find_projects_default = defineTool({
|
|
3847
3847
|
name: "find_projects",
|
|
@@ -3885,7 +3885,7 @@ var find_projects_default = defineTool({
|
|
|
3885
3885
|
});
|
|
3886
3886
|
|
|
3887
3887
|
//#endregion
|
|
3888
|
-
//#region ../mcp-core/dist/find-releases-
|
|
3888
|
+
//#region ../mcp-core/dist/find-releases-zWgFsagR.js
|
|
3889
3889
|
var find_releases_default = defineTool({
|
|
3890
3890
|
name: "find_releases",
|
|
3891
3891
|
skills: ["inspect"],
|
|
@@ -5130,7 +5130,7 @@ function enhanceNotFoundError(error, params) {
|
|
|
5130
5130
|
}
|
|
5131
5131
|
|
|
5132
5132
|
//#endregion
|
|
5133
|
-
//#region ../mcp-core/dist/get-issue-details-
|
|
5133
|
+
//#region ../mcp-core/dist/get-issue-details-CsNkINzN.js
|
|
5134
5134
|
var get_issue_details_default = defineTool({
|
|
5135
5135
|
name: "get_issue_details",
|
|
5136
5136
|
skills: [
|
|
@@ -5311,7 +5311,7 @@ function shouldFetchTraceForEvent(event) {
|
|
|
5311
5311
|
}
|
|
5312
5312
|
|
|
5313
5313
|
//#endregion
|
|
5314
|
-
//#region ../mcp-core/dist/get-issue-tag-values-
|
|
5314
|
+
//#region ../mcp-core/dist/get-issue-tag-values-B4lzlivL.js
|
|
5315
5315
|
var get_issue_tag_values_default = defineTool({
|
|
5316
5316
|
name: "get_issue_tag_values",
|
|
5317
5317
|
skills: ["inspect"],
|
|
@@ -5426,7 +5426,7 @@ var get_issue_tag_values_default = defineTool({
|
|
|
5426
5426
|
});
|
|
5427
5427
|
|
|
5428
5428
|
//#endregion
|
|
5429
|
-
//#region ../mcp-core/dist/get-trace-details-
|
|
5429
|
+
//#region ../mcp-core/dist/get-trace-details-DAPondqS.js
|
|
5430
5430
|
const MAX_DEPTH = 2;
|
|
5431
5431
|
const MINIMUM_DURATION_THRESHOLD_MS = 10;
|
|
5432
5432
|
const MIN_MEANINGFUL_CHILD_DURATION = 5;
|
|
@@ -5725,7 +5725,7 @@ function formatTraceOutput({ organizationSlug, traceId, traceMeta, trace: trace$
|
|
|
5725
5725
|
}
|
|
5726
5726
|
|
|
5727
5727
|
//#endregion
|
|
5728
|
-
//#region ../mcp-core/dist/get-event-attachment-
|
|
5728
|
+
//#region ../mcp-core/dist/get-event-attachment-C-huGpTH.js
|
|
5729
5729
|
var get_event_attachment_default = defineTool({
|
|
5730
5730
|
name: "get_event_attachment",
|
|
5731
5731
|
skills: ["inspect"],
|
|
@@ -5873,7 +5873,7 @@ function formatAssignedTo(assignedTo) {
|
|
|
5873
5873
|
}
|
|
5874
5874
|
|
|
5875
5875
|
//#endregion
|
|
5876
|
-
//#region ../mcp-core/dist/update-issue-
|
|
5876
|
+
//#region ../mcp-core/dist/update-issue-BArI_SjL.js
|
|
5877
5877
|
var update_issue_default = defineTool({
|
|
5878
5878
|
name: "update_issue",
|
|
5879
5879
|
skills: ["triage"],
|
|
@@ -9164,14 +9164,8 @@ function createOpenAI(options = {}) {
|
|
|
9164
9164
|
var openai = createOpenAI({ compatibility: "strict" });
|
|
9165
9165
|
|
|
9166
9166
|
//#endregion
|
|
9167
|
-
//#region ../mcp-core/dist/openai-provider-
|
|
9167
|
+
//#region ../mcp-core/dist/openai-provider-Cc13TpEA.js
|
|
9168
9168
|
const DEFAULT_OPENAI_MODEL = "gpt-5";
|
|
9169
|
-
const VALID_REASONING_EFFORTS = [
|
|
9170
|
-
"low",
|
|
9171
|
-
"medium",
|
|
9172
|
-
"high"
|
|
9173
|
-
];
|
|
9174
|
-
const DEFAULT_REASONING_EFFORT = "low";
|
|
9175
9169
|
let configuredBaseUrl$1;
|
|
9176
9170
|
/**
|
|
9177
9171
|
* Configure the OpenAI base URL (CLI flag only, not environment variable).
|
|
@@ -9183,27 +9177,27 @@ function setOpenAIBaseUrl(baseUrl) {
|
|
|
9183
9177
|
/**
|
|
9184
9178
|
* Retrieve an OpenAI language model configured from environment variables and explicit config.
|
|
9185
9179
|
*
|
|
9180
|
+
* Works with:
|
|
9181
|
+
* - OpenAI API directly (default)
|
|
9182
|
+
* - Any OpenAI-compatible API via custom base URL (Vercel AI Gateway, Azure OpenAI, etc.)
|
|
9183
|
+
*
|
|
9186
9184
|
* Configuration:
|
|
9185
|
+
* - OPENAI_API_KEY: API key for authentication (required)
|
|
9187
9186
|
* - OPENAI_MODEL: Model to use (default: "gpt-5") - env var OK
|
|
9188
|
-
* - OPENAI_REASONING_EFFORT: Reasoning effort for o1 models: "low", "medium", "high", or "" to disable (default: "low") - env var OK
|
|
9189
9187
|
* - Base URL: Must be set via setOpenAIBaseUrl() - NOT from env vars (security risk)
|
|
9188
|
+
*
|
|
9189
|
+
* Note: Model name format depends on your provider:
|
|
9190
|
+
* - Direct OpenAI: "gpt-4o", "gpt-4-turbo", etc.
|
|
9191
|
+
* - Vercel AI Gateway: "openai/gpt-4o", "anthropic/claude-sonnet-4.5", etc.
|
|
9192
|
+
* - Other providers: Check their documentation
|
|
9190
9193
|
*/
|
|
9191
9194
|
function getOpenAIModel(model) {
|
|
9192
9195
|
const defaultModel = process.env.OPENAI_MODEL || DEFAULT_OPENAI_MODEL;
|
|
9193
|
-
const envReasoningEffort = process.env.OPENAI_REASONING_EFFORT;
|
|
9194
|
-
let reasoningEffort;
|
|
9195
|
-
if (envReasoningEffort === "") reasoningEffort = void 0;
|
|
9196
|
-
else if (envReasoningEffort === void 0) reasoningEffort = DEFAULT_REASONING_EFFORT;
|
|
9197
|
-
else if (VALID_REASONING_EFFORTS.includes(envReasoningEffort)) reasoningEffort = envReasoningEffort;
|
|
9198
|
-
else {
|
|
9199
|
-
const validValues = VALID_REASONING_EFFORTS.map((v) => `"${v}"`).join(", ");
|
|
9200
|
-
throw new Error(`Invalid OPENAI_REASONING_EFFORT value: "${envReasoningEffort}". Must be one of: ${validValues}, or "" (empty string to disable). Default is "${DEFAULT_REASONING_EFFORT}".`);
|
|
9201
|
-
}
|
|
9202
9196
|
const factory = createOpenAI({
|
|
9203
9197
|
...configuredBaseUrl$1 && { baseURL: configuredBaseUrl$1 },
|
|
9204
9198
|
headers: { "User-Agent": USER_AGENT }
|
|
9205
9199
|
});
|
|
9206
|
-
return factory(model ?? defaultModel
|
|
9200
|
+
return factory(model ?? defaultModel);
|
|
9207
9201
|
}
|
|
9208
9202
|
|
|
9209
9203
|
//#endregion
|
|
@@ -10309,7 +10303,7 @@ function createAnthropic(options = {}) {
|
|
|
10309
10303
|
var anthropic = createAnthropic();
|
|
10310
10304
|
|
|
10311
10305
|
//#endregion
|
|
10312
|
-
//#region ../mcp-core/dist/anthropic-provider-
|
|
10306
|
+
//#region ../mcp-core/dist/anthropic-provider-DOE-j9k3.js
|
|
10313
10307
|
const DEFAULT_ANTHROPIC_MODEL = "claude-sonnet-4-5";
|
|
10314
10308
|
let configuredBaseUrl;
|
|
10315
10309
|
/**
|
|
@@ -10323,6 +10317,7 @@ function setAnthropicBaseUrl(baseUrl) {
|
|
|
10323
10317
|
* Retrieve an Anthropic language model configured from environment variables and explicit config.
|
|
10324
10318
|
*
|
|
10325
10319
|
* Configuration:
|
|
10320
|
+
* - ANTHROPIC_API_KEY: API key for authentication (required)
|
|
10326
10321
|
* - ANTHROPIC_MODEL: Model to use (default: "claude-sonnet-4-5") - env var OK
|
|
10327
10322
|
* - Base URL: Must be set via setAnthropicBaseUrl() - NOT from env vars (security risk)
|
|
10328
10323
|
*/
|
|
@@ -10336,7 +10331,7 @@ function getAnthropicModel(model) {
|
|
|
10336
10331
|
}
|
|
10337
10332
|
|
|
10338
10333
|
//#endregion
|
|
10339
|
-
//#region ../mcp-core/dist/provider-factory-
|
|
10334
|
+
//#region ../mcp-core/dist/provider-factory-BPN0JlR3.js
|
|
10340
10335
|
let configuredProvider;
|
|
10341
10336
|
/**
|
|
10342
10337
|
* Configure the embedded agent provider explicitly.
|
|
@@ -15716,7 +15711,7 @@ function trimStartOfStream() {
|
|
|
15716
15711
|
var HANGING_STREAM_WARNING_TIME_MS = 15 * 1e3;
|
|
15717
15712
|
|
|
15718
15713
|
//#endregion
|
|
15719
|
-
//#region ../mcp-core/dist/callEmbeddedAgent
|
|
15714
|
+
//#region ../mcp-core/dist/callEmbeddedAgent-BoQGUoqc.js
|
|
15720
15715
|
/**
|
|
15721
15716
|
* Call an embedded agent with tool call capture
|
|
15722
15717
|
* This is the standard way to call embedded AI agents within MCP tools
|
|
@@ -20805,7 +20800,7 @@ Use these examples as patterns for constructing your query.`;
|
|
|
20805
20800
|
}
|
|
20806
20801
|
|
|
20807
20802
|
//#endregion
|
|
20808
|
-
//#region ../mcp-core/dist/agent-
|
|
20803
|
+
//#region ../mcp-core/dist/agent-ChQa0if8.js
|
|
20809
20804
|
const searchEventsAgentOutputSchema = z.object({
|
|
20810
20805
|
dataset: z.enum([
|
|
20811
20806
|
"spans",
|
|
@@ -21076,7 +21071,7 @@ function formatSpanResults(params) {
|
|
|
21076
21071
|
}
|
|
21077
21072
|
|
|
21078
21073
|
//#endregion
|
|
21079
|
-
//#region ../mcp-core/dist/handler-
|
|
21074
|
+
//#region ../mcp-core/dist/handler-DdfFan0E.js
|
|
21080
21075
|
var handler_default = defineTool({
|
|
21081
21076
|
name: "search_events",
|
|
21082
21077
|
skills: [
|
|
@@ -21217,7 +21212,7 @@ var handler_default = defineTool({
|
|
|
21217
21212
|
});
|
|
21218
21213
|
|
|
21219
21214
|
//#endregion
|
|
21220
|
-
//#region ../mcp-core/dist/create-team-
|
|
21215
|
+
//#region ../mcp-core/dist/create-team-ybunuUI_.js
|
|
21221
21216
|
var create_team_default = defineTool({
|
|
21222
21217
|
name: "create_team",
|
|
21223
21218
|
skills: ["project-management"],
|
|
@@ -21272,7 +21267,7 @@ var create_team_default = defineTool({
|
|
|
21272
21267
|
});
|
|
21273
21268
|
|
|
21274
21269
|
//#endregion
|
|
21275
|
-
//#region ../mcp-core/dist/create-project-
|
|
21270
|
+
//#region ../mcp-core/dist/create-project-BozSQ6GO.js
|
|
21276
21271
|
var create_project_default = defineTool({
|
|
21277
21272
|
name: "create_project",
|
|
21278
21273
|
skills: ["project-management"],
|
|
@@ -21349,7 +21344,7 @@ var create_project_default = defineTool({
|
|
|
21349
21344
|
});
|
|
21350
21345
|
|
|
21351
21346
|
//#endregion
|
|
21352
|
-
//#region ../mcp-core/dist/update-project-
|
|
21347
|
+
//#region ../mcp-core/dist/update-project-CSbOMuOW.js
|
|
21353
21348
|
var update_project_default = defineTool({
|
|
21354
21349
|
name: "update_project",
|
|
21355
21350
|
skills: ["project-management"],
|
|
@@ -21467,7 +21462,7 @@ var update_project_default = defineTool({
|
|
|
21467
21462
|
});
|
|
21468
21463
|
|
|
21469
21464
|
//#endregion
|
|
21470
|
-
//#region ../mcp-core/dist/create-dsn-
|
|
21465
|
+
//#region ../mcp-core/dist/create-dsn-BymieFiV.js
|
|
21471
21466
|
var create_dsn_default = defineTool({
|
|
21472
21467
|
name: "create_dsn",
|
|
21473
21468
|
skills: ["project-management"],
|
|
@@ -21527,7 +21522,7 @@ var create_dsn_default = defineTool({
|
|
|
21527
21522
|
});
|
|
21528
21523
|
|
|
21529
21524
|
//#endregion
|
|
21530
|
-
//#region ../mcp-core/dist/find-dsns-
|
|
21525
|
+
//#region ../mcp-core/dist/find-dsns-_H3b8I5-.js
|
|
21531
21526
|
var find_dsns_default = defineTool({
|
|
21532
21527
|
name: "find_dsns",
|
|
21533
21528
|
skills: ["project-management"],
|
|
@@ -21628,7 +21623,7 @@ async function retryWithBackoff(fn, { maxRetries = 3, initialDelay = 1e3, should
|
|
|
21628
21623
|
}
|
|
21629
21624
|
|
|
21630
21625
|
//#endregion
|
|
21631
|
-
//#region ../mcp-core/dist/analyze-issue-with-seer-
|
|
21626
|
+
//#region ../mcp-core/dist/analyze-issue-with-seer-C6Ke4lsw.js
|
|
21632
21627
|
var analyze_issue_with_seer_default = defineTool({
|
|
21633
21628
|
name: "analyze_issue_with_seer",
|
|
21634
21629
|
skills: ["seer"],
|
|
@@ -21899,7 +21894,7 @@ var search_docs_default = defineTool({
|
|
|
21899
21894
|
});
|
|
21900
21895
|
|
|
21901
21896
|
//#endregion
|
|
21902
|
-
//#region ../mcp-core/dist/get-doc-
|
|
21897
|
+
//#region ../mcp-core/dist/get-doc-Ce6QYANY.js
|
|
21903
21898
|
var get_doc_default = defineTool({
|
|
21904
21899
|
name: "get_doc",
|
|
21905
21900
|
skills: ["docs"],
|
|
@@ -22206,7 +22201,7 @@ Always use the issueFields tool to discover available fields when needed.
|
|
|
22206
22201
|
Use the whoami tool when you need to resolve 'me' references.`;
|
|
22207
22202
|
|
|
22208
22203
|
//#endregion
|
|
22209
|
-
//#region ../mcp-core/dist/agent-
|
|
22204
|
+
//#region ../mcp-core/dist/agent-qJanDgXA.js
|
|
22210
22205
|
const searchIssuesAgentOutputSchema = z.object({
|
|
22211
22206
|
query: z.string().describe("The Sentry issue search query"),
|
|
22212
22207
|
sort: z.enum([
|
|
@@ -22323,7 +22318,7 @@ function formatDate(dateString) {
|
|
|
22323
22318
|
}
|
|
22324
22319
|
|
|
22325
22320
|
//#endregion
|
|
22326
|
-
//#region ../mcp-core/dist/handler-
|
|
22321
|
+
//#region ../mcp-core/dist/handler-DriMefmS.js
|
|
22327
22322
|
var handler_default$1 = defineTool({
|
|
22328
22323
|
name: "search_issues",
|
|
22329
22324
|
skills: [
|
|
@@ -22858,7 +22853,7 @@ Received: ${params.issueUrl}`);
|
|
|
22858
22853
|
}
|
|
22859
22854
|
|
|
22860
22855
|
//#endregion
|
|
22861
|
-
//#region ../mcp-core/dist/agent-
|
|
22856
|
+
//#region ../mcp-core/dist/agent-BGV8TUGG.js
|
|
22862
22857
|
const searchIssueEventsAgentOutputSchema = z.object({
|
|
22863
22858
|
query: z.string().describe("Sentry query filters for tags/fields (NOT including issue: prefix - handler adds that)"),
|
|
22864
22859
|
fields: z.array(z.string()).describe("Array of field names to return in results"),
|
|
@@ -22900,7 +22895,7 @@ async function searchIssueEventsAgent(options) {
|
|
|
22900
22895
|
}
|
|
22901
22896
|
|
|
22902
22897
|
//#endregion
|
|
22903
|
-
//#region ../mcp-core/dist/handler-
|
|
22898
|
+
//#region ../mcp-core/dist/handler-dNZGGGFd.js
|
|
22904
22899
|
var handler_default$2 = defineTool({
|
|
22905
22900
|
name: "search_issue_events",
|
|
22906
22901
|
skills: ["inspect", "triage"],
|
|
@@ -23021,7 +23016,7 @@ The user may include various parameters to pass to those tools in their prompt.
|
|
|
23021
23016
|
You MUST return tool results directly without interpreting them.`;
|
|
23022
23017
|
|
|
23023
23018
|
//#endregion
|
|
23024
|
-
//#region ../mcp-core/dist/agent-
|
|
23019
|
+
//#region ../mcp-core/dist/agent-2JRDh9Lm.js
|
|
23025
23020
|
/**
|
|
23026
23021
|
* Output schema for the embedded agent.
|
|
23027
23022
|
* The agent returns the final result string directly from its tool calls.
|
|
@@ -23042,7 +23037,7 @@ async function useSentryAgent(options) {
|
|
|
23042
23037
|
}
|
|
23043
23038
|
|
|
23044
23039
|
//#endregion
|
|
23045
|
-
//#region ../mcp-core/dist/list-issues-
|
|
23040
|
+
//#region ../mcp-core/dist/list-issues-DpmIWiEG.js
|
|
23046
23041
|
var list_issues_default = defineTool({
|
|
23047
23042
|
name: "list_issues",
|
|
23048
23043
|
skills: [
|
|
@@ -23125,7 +23120,7 @@ var list_issues_default = defineTool({
|
|
|
23125
23120
|
});
|
|
23126
23121
|
|
|
23127
23122
|
//#endregion
|
|
23128
|
-
//#region ../mcp-core/dist/list-events-
|
|
23123
|
+
//#region ../mcp-core/dist/list-events-BCMaD3UM.js
|
|
23129
23124
|
const DEFAULT_FIELDS = {
|
|
23130
23125
|
errors: RECOMMENDED_FIELDS.errors.basic,
|
|
23131
23126
|
logs: RECOMMENDED_FIELDS.logs.basic,
|
|
@@ -23247,7 +23242,7 @@ var list_events_default = defineTool({
|
|
|
23247
23242
|
});
|
|
23248
23243
|
|
|
23249
23244
|
//#endregion
|
|
23250
|
-
//#region ../mcp-core/dist/list-issue-events-
|
|
23245
|
+
//#region ../mcp-core/dist/list-issue-events-D2EcLe8P.js
|
|
23251
23246
|
var list_issue_events_default = defineTool({
|
|
23252
23247
|
name: "list_issue_events",
|
|
23253
23248
|
skills: ["inspect", "triage"],
|
|
@@ -23484,7 +23479,7 @@ function getConstraintParametersToInject(constraints, toolInputSchema) {
|
|
|
23484
23479
|
}
|
|
23485
23480
|
|
|
23486
23481
|
//#endregion
|
|
23487
|
-
//#region ../mcp-core/dist/server-
|
|
23482
|
+
//#region ../mcp-core/dist/server-CbkVklfg.js
|
|
23488
23483
|
/**
|
|
23489
23484
|
* Format tool calls into a readable trace
|
|
23490
23485
|
*/
|
|
@@ -23946,6 +23941,25 @@ if (cli.agent) {
|
|
|
23946
23941
|
console.warn("");
|
|
23947
23942
|
}
|
|
23948
23943
|
const SENTRY_TIMEOUT = 5e3;
|
|
23944
|
+
async function shutdown(signal) {
|
|
23945
|
+
console.error(`${signal} received, shutting down...`);
|
|
23946
|
+
await Sentry.flush(SENTRY_TIMEOUT);
|
|
23947
|
+
process.exit(0);
|
|
23948
|
+
}
|
|
23949
|
+
process.on("SIGTERM", () => shutdown("SIGTERM"));
|
|
23950
|
+
process.on("SIGINT", () => shutdown("SIGINT"));
|
|
23951
|
+
process.on("uncaughtException", async (error) => {
|
|
23952
|
+
console.error("Uncaught exception:", error);
|
|
23953
|
+
Sentry.captureException(error);
|
|
23954
|
+
await Sentry.flush(SENTRY_TIMEOUT);
|
|
23955
|
+
process.exit(1);
|
|
23956
|
+
});
|
|
23957
|
+
process.on("unhandledRejection", async (reason) => {
|
|
23958
|
+
console.error("Unhandled rejection:", reason);
|
|
23959
|
+
Sentry.captureException(reason);
|
|
23960
|
+
await Sentry.flush(SENTRY_TIMEOUT);
|
|
23961
|
+
process.exit(1);
|
|
23962
|
+
});
|
|
23949
23963
|
const context = {
|
|
23950
23964
|
accessToken: cfg.accessToken,
|
|
23951
23965
|
grantedSkills: cfg.finalSkills,
|
|
@@ -23961,12 +23975,12 @@ const server = buildServer({
|
|
|
23961
23975
|
context,
|
|
23962
23976
|
agentMode: cli.agent
|
|
23963
23977
|
});
|
|
23964
|
-
startStdio(server, context).catch((err) => {
|
|
23978
|
+
startStdio(server, context).catch(async (err) => {
|
|
23965
23979
|
console.error("Server error:", err);
|
|
23966
|
-
Sentry.
|
|
23980
|
+
Sentry.captureException(err);
|
|
23981
|
+
await Sentry.flush(SENTRY_TIMEOUT);
|
|
23967
23982
|
process.exit(1);
|
|
23968
23983
|
});
|
|
23969
|
-
Sentry.flush(SENTRY_TIMEOUT);
|
|
23970
23984
|
|
|
23971
23985
|
//#endregion
|
|
23972
23986
|
//# sourceMappingURL=index.js.map
|