@integrity-labs/agt-cli 0.28.1204 → 0.28.1206

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.
Files changed (30) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-PRW37VJ2.js → chunk-4KVM4X2T.js} +5 -5
  3. package/dist/{chunk-WCN2OJQT.js → chunk-DL7C7A67.js} +160 -1
  4. package/dist/chunk-DL7C7A67.js.map +1 -0
  5. package/dist/{chunk-M5XKZVBC.js → chunk-XMLBF6V3.js} +3 -3
  6. package/dist/{chunk-QL7LKEYQ.js → chunk-XNOYEQAX.js} +2 -2
  7. package/dist/{chunk-KKQRAJQV.js → chunk-YI3KCZXM.js} +2 -2
  8. package/dist/{claude-code-updater-QRDRPUGF.js → claude-code-updater-QZTNU4CD.js} +3 -3
  9. package/dist/{claude-pair-runtime-PQNF3H4Q.js → claude-pair-runtime-GETOMHWO.js} +3 -3
  10. package/dist/lib/manager-worker.js +19 -19
  11. package/dist/mcp/augmented-admin.js +1 -1
  12. package/dist/mcp/direct-chat-channel.js +159 -0
  13. package/dist/mcp/index.js +159 -0
  14. package/dist/mcp/origami.js +159 -0
  15. package/dist/mcp/slack-channel.js +159 -0
  16. package/dist/mcp/telegram-channel.js +159 -0
  17. package/dist/{persistent-session-SJ25HFBM.js → persistent-session-7CQA4G4I.js} +4 -4
  18. package/dist/{responsiveness-probe-TB2T2Q4L.js → responsiveness-probe-FEJ4I6EB.js} +4 -4
  19. package/dist/{session-auth-dead-2XSQ6BRX.js → session-auth-dead-6GJ3PL4P.js} +3 -3
  20. package/package.json +1 -1
  21. package/dist/chunk-WCN2OJQT.js.map +0 -1
  22. /package/dist/{chunk-PRW37VJ2.js.map → chunk-4KVM4X2T.js.map} +0 -0
  23. /package/dist/{chunk-M5XKZVBC.js.map → chunk-XMLBF6V3.js.map} +0 -0
  24. /package/dist/{chunk-QL7LKEYQ.js.map → chunk-XNOYEQAX.js.map} +0 -0
  25. /package/dist/{chunk-KKQRAJQV.js.map → chunk-YI3KCZXM.js.map} +0 -0
  26. /package/dist/{claude-code-updater-QRDRPUGF.js.map → claude-code-updater-QZTNU4CD.js.map} +0 -0
  27. /package/dist/{claude-pair-runtime-PQNF3H4Q.js.map → claude-pair-runtime-GETOMHWO.js.map} +0 -0
  28. /package/dist/{persistent-session-SJ25HFBM.js.map → persistent-session-7CQA4G4I.js.map} +0 -0
  29. /package/dist/{responsiveness-probe-TB2T2Q4L.js.map → responsiveness-probe-FEJ4I6EB.js.map} +0 -0
  30. /package/dist/{session-auth-dead-2XSQ6BRX.js.map → session-auth-dead-6GJ3PL4P.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  rotateDailySession,
5
5
  sessionFileExists,
6
6
  todayLocalIso
7
- } from "./chunk-KKQRAJQV.js";
7
+ } from "./chunk-YI3KCZXM.js";
8
8
  import {
9
9
  classifyUnanswerablePane,
10
10
  customApiKeyDialogKeys,
@@ -51,7 +51,7 @@ import {
51
51
  remoteMcpConnectionEnvInfix,
52
52
  remoteMcpConnectionLabel,
53
53
  remoteMcpConnectionScopedEnvVar
54
- } from "./chunk-WCN2OJQT.js";
54
+ } from "./chunk-DL7C7A67.js";
55
55
  import {
56
56
  CLAUDE_CONFIG_DIR_ENV,
57
57
  approveApiKeyInClaudeConfig,
@@ -6173,4 +6173,4 @@ export {
6173
6173
  stopAllSessionsAndWait,
6174
6174
  getProjectDir
6175
6175
  };
6176
- //# sourceMappingURL=chunk-M5XKZVBC.js.map
6176
+ //# sourceMappingURL=chunk-XMLBF6V3.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XWVM4KPK.js";
5
5
  import {
6
6
  FORCED_UPDATE_HARD_DEADLINE_MS
7
- } from "./chunk-WCN2OJQT.js";
7
+ } from "./chunk-DL7C7A67.js";
8
8
  import {
9
9
  effectiveClaudeJsonPath
10
10
  } from "./chunk-AIUIMEUS.js";
@@ -722,4 +722,4 @@ export {
722
722
  probeClaudeInstalls,
723
723
  maybeUpdateClaudeCode
724
724
  };
725
- //# sourceMappingURL=chunk-QL7LKEYQ.js.map
725
+ //# sourceMappingURL=chunk-XNOYEQAX.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  encodeClaudeProjectPath
3
- } from "./chunk-WCN2OJQT.js";
3
+ } from "./chunk-DL7C7A67.js";
4
4
 
5
5
  // src/lib/daily-session.ts
6
6
  import { randomUUID } from "crypto";
@@ -240,4 +240,4 @@ export {
240
240
  peekPreviousSession,
241
241
  readDailySessionPin
242
242
  };
243
- //# sourceMappingURL=chunk-KKQRAJQV.js.map
243
+ //# sourceMappingURL=chunk-YI3KCZXM.js.map
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-QL7LKEYQ.js";
16
+ } from "./chunk-XNOYEQAX.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-WCN2OJQT.js";
18
+ import "./chunk-DL7C7A67.js";
19
19
  import "./chunk-AIUIMEUS.js";
20
20
  import "./chunk-DGUM43GV.js";
21
21
  export {
@@ -34,4 +34,4 @@ export {
34
34
  readsAsNativeInstall,
35
35
  shouldRunClaudeCodeUpdater
36
36
  };
37
- //# sourceMappingURL=claude-code-updater-QRDRPUGF.js.map
37
+ //# sourceMappingURL=claude-code-updater-QZTNU4CD.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  redactPaneFrame,
10
10
  sanitizeTerminalFrame
11
- } from "./chunk-WCN2OJQT.js";
11
+ } from "./chunk-DL7C7A67.js";
12
12
  import {
13
13
  CLAUDE_CONFIG_DIR_ENV,
14
14
  claudeConfigDirFor,
@@ -321,7 +321,7 @@ async function spawnPairSession(session) {
321
321
  return { ok: true };
322
322
  } catch {
323
323
  }
324
- const { resolveClaudeBinary } = await import("./persistent-session-SJ25HFBM.js");
324
+ const { resolveClaudeBinary } = await import("./persistent-session-7CQA4G4I.js");
325
325
  const claudeBin = resolveClaudeBinary();
326
326
  const pairEnv = {
327
327
  ...process.env,
@@ -836,4 +836,4 @@ export {
836
836
  startClaudePair,
837
837
  submitClaudePairCode
838
838
  };
839
- //# sourceMappingURL=claude-pair-runtime-PQNF3H4Q.js.map
839
+ //# sourceMappingURL=claude-pair-runtime-GETOMHWO.js.map
@@ -85,7 +85,7 @@ import {
85
85
  tripClass,
86
86
  writeEtcEnvironment,
87
87
  writeProfileDScript
88
- } from "../chunk-PRW37VJ2.js";
88
+ } from "../chunk-4KVM4X2T.js";
89
89
  import {
90
90
  CLAUDE_CODE_SECURITY_FLOOR,
91
91
  SELF_UPDATE_TIMEOUTS,
@@ -99,7 +99,7 @@ import {
99
99
  runSafeCleanup,
100
100
  tightestDiskStat,
101
101
  withPackageCacheLock
102
- } from "../chunk-QL7LKEYQ.js";
102
+ } from "../chunk-XNOYEQAX.js";
103
103
  import {
104
104
  rewriteSupervisorApiKey,
105
105
  supervisorChannelsRefusing
@@ -192,7 +192,7 @@ import {
192
192
  webFetchBaselineValue,
193
193
  webFetchRestartNeeded,
194
194
  writeEgressAllowlist
195
- } from "../chunk-M5XKZVBC.js";
195
+ } from "../chunk-XMLBF6V3.js";
196
196
  import {
197
197
  isAgentIdle,
198
198
  isStaleForToday,
@@ -202,7 +202,7 @@ import {
202
202
  sessionTranscriptDir,
203
203
  subagentActivityAgeSeconds,
204
204
  transcriptActivityAgeSeconds
205
- } from "../chunk-KKQRAJQV.js";
205
+ } from "../chunk-YI3KCZXM.js";
206
206
  import {
207
207
  classifyUnanswerablePane,
208
208
  focusedConfirmDialogBlock,
@@ -330,7 +330,7 @@ import {
330
330
  stabiliseResetInstant,
331
331
  sumTranscriptUsageInWindow,
332
332
  summarizeTranscriptActivity
333
- } from "../chunk-WCN2OJQT.js";
333
+ } from "../chunk-DL7C7A67.js";
334
334
  import {
335
335
  CLAUDE_CONFIG_DIR_ENV,
336
336
  claudeConfigDirFor,
@@ -15562,7 +15562,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
15562
15562
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
15563
15563
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
15564
15564
  async function channelInboundActivityAgeSecondsFor(codeName) {
15565
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-TB2T2Q4L.js");
15565
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-FEJ4I6EB.js");
15566
15566
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
15567
15567
  if (newest === null) return null;
15568
15568
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -16359,7 +16359,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
16359
16359
  var lastVersionCheckAt = 0;
16360
16360
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
16361
16361
  var lastResponsivenessProbeAt = 0;
16362
- var agtCliVersion = true ? "0.28.1204" : "dev";
16362
+ var agtCliVersion = true ? "0.28.1206" : "dev";
16363
16363
  function resolveBrewPath(execFileSync3) {
16364
16364
  try {
16365
16365
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -18263,7 +18263,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
18263
18263
  if (codeNames.length === 0) return;
18264
18264
  void (async () => {
18265
18265
  try {
18266
- const { collectDiagnostics } = await import("../persistent-session-SJ25HFBM.js");
18266
+ const { collectDiagnostics } = await import("../persistent-session-7CQA4G4I.js");
18267
18267
  await api.post("/host/heartbeat", {
18268
18268
  host_id: hostId,
18269
18269
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -18406,7 +18406,7 @@ async function pollCycleInner() {
18406
18406
  }
18407
18407
  try {
18408
18408
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
18409
- const { collectDiagnostics } = await import("../persistent-session-SJ25HFBM.js");
18409
+ const { collectDiagnostics } = await import("../persistent-session-7CQA4G4I.js");
18410
18410
  const diagCodeNames = [...agentState.persistentSessionAgents];
18411
18411
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
18412
18412
  let tailscaleHostname;
@@ -18664,7 +18664,7 @@ async function pollCycleInner() {
18664
18664
  }
18665
18665
  try {
18666
18666
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
18667
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-QRDRPUGF.js");
18667
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-QZTNU4CD.js");
18668
18668
  const securityFloor = currentSecurityFloor();
18669
18669
  claudeUpdaterInFlight = true;
18670
18670
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -18699,7 +18699,7 @@ async function pollCycleInner() {
18699
18699
  collectPanelessActivityProbes,
18700
18700
  getResponsivenessIntervalMs,
18701
18701
  occupancyQualificationClassifications
18702
- } = await import("../responsiveness-probe-TB2T2Q4L.js");
18702
+ } = await import("../responsiveness-probe-FEJ4I6EB.js");
18703
18703
  const probeIntervalMs = getResponsivenessIntervalMs();
18704
18704
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
18705
18705
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -18816,7 +18816,7 @@ async function pollCycleInner() {
18816
18816
  collectResponsivenessProbes,
18817
18817
  livePendingInboundOldestAgeSeconds,
18818
18818
  parkPendingInbound
18819
- } = await import("../responsiveness-probe-TB2T2Q4L.js");
18819
+ } = await import("../responsiveness-probe-FEJ4I6EB.js");
18820
18820
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
18821
18821
  const wedgeNow = /* @__PURE__ */ new Date();
18822
18822
  const liveAgents = agentState.persistentSessionAgents;
@@ -19102,7 +19102,7 @@ async function pollCycleInner() {
19102
19102
  }
19103
19103
  }
19104
19104
  );
19105
- const { parkPendingInbound } = await import("../responsiveness-probe-TB2T2Q4L.js");
19105
+ const { parkPendingInbound } = await import("../responsiveness-probe-FEJ4I6EB.js");
19106
19106
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
19107
19107
  paneFatalStreak.delete(codeName);
19108
19108
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -19133,7 +19133,7 @@ async function pollCycleInner() {
19133
19133
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
19134
19134
  bindSourceEscalations
19135
19135
  } = await import("../transcript-mount-health-OHE6IVJV.js");
19136
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-SJ25HFBM.js");
19136
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-7CQA4G4I.js");
19137
19137
  const mountConfig = resolveTranscriptMountConfig();
19138
19138
  const liveAgents = agentState.persistentSessionAgents;
19139
19139
  for (const tracked of [
@@ -19298,7 +19298,7 @@ async function pollCycleInner() {
19298
19298
  }
19299
19299
  try {
19300
19300
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
19301
- const { probeSessionAuth } = await import("../session-auth-dead-2XSQ6BRX.js");
19301
+ const { probeSessionAuth } = await import("../session-auth-dead-6GJ3PL4P.js");
19302
19302
  const observations = [];
19303
19303
  const pendingCacheCommits = [];
19304
19304
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -24028,7 +24028,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24028
24028
  try {
24029
24029
  const freshId = rotateSessionForWedge(codeName);
24030
24030
  consecutiveWedgeCycles.delete(codeName);
24031
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-TB2T2Q4L.js");
24031
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-FEJ4I6EB.js");
24032
24032
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
24033
24033
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
24034
24034
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -24071,7 +24071,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24071
24071
  void api.post("/host/restart-ack", { host_id: hostId, agent_id: agentId, restart_requested_at: requestedAt }).catch((err) => log(`[restart-lane] ack failed for '${codeName}': ${err.message}`));
24072
24072
  void (async () => {
24073
24073
  try {
24074
- const { collectDiagnostics } = await import("../persistent-session-SJ25HFBM.js");
24074
+ const { collectDiagnostics } = await import("../persistent-session-7CQA4G4I.js");
24075
24075
  await api.post("/host/heartbeat", {
24076
24076
  host_id: hostId,
24077
24077
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24122,7 +24122,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
24122
24122
  }
24123
24123
  try {
24124
24124
  const hostId = await getHostId();
24125
- const { collectDiagnostics } = await import("../persistent-session-SJ25HFBM.js");
24125
+ const { collectDiagnostics } = await import("../persistent-session-7CQA4G4I.js");
24126
24126
  await api.post("/host/heartbeat", {
24127
24127
  host_id: hostId,
24128
24128
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24824,7 +24824,7 @@ async function processClaudePairSessions(agents) {
24824
24824
  snapshotPairConfig,
24825
24825
  // ENG-11659: result -> report body + the manager.log line that records it.
24826
24826
  planPairStartReport
24827
- } = await import("../claude-pair-runtime-PQNF3H4Q.js");
24827
+ } = await import("../claude-pair-runtime-GETOMHWO.js");
24828
24828
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
24829
24829
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
24830
24830
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
@@ -21881,7 +21881,7 @@ server.registerTool(
21881
21881
  );
21882
21882
  server.registerTool(
21883
21883
  "debug_search_orgs",
21884
- { description: `List the ORGANIZATIONS you're authorized to read \u2014 the org-level entry point for triage and access decisions, so you don't have to infer orgs off agent/host rows or probe one org's tier with debug_request_access. Returns a projection per org: { organization_id, organization_slug, display_name, is_internal, management_mode (fully_managed | self_managed), standing_reason (internal | fully_managed | granted \u2014 WHY you can read it), has_active_grant (do you hold a live grant right now), host_count, agent_count, active_agent_count, open_alert_count, created_at, plan_key, subscription_status, byo_credentials }. plan_key is the plan the product enforces now, not the one purchased: past_due or incomplete reads starter, so read it with subscription_status (trialing | active | past_due | incomplete | canceled, or null if the org never subscribed). byo_credentials is whether that plan lets the org use its own credential for premium integrations. If the plan read fails, all three are null, so a null byo_credentials means unknown, not no. No billing amounts. Use it to (1) decide access in one read \u2014 see a self_managed org and its grant state before deciding to debug_request_access; (2) triage the fleet \u2014 "which orgs have open alerts" (open_alert_count includes stuck-restart alerts) without walking agents; (3) disambiguate a slug \u2192 id \u2192 tier without needing an agent/host to exist. Authorized = IL-owned (is_internal) + fully-managed orgs (standing) plus any self-managed org you hold an active grant for. Filter with { q (slug/name substring), management_mode, is_internal, limit }. Projection only \u2014 no secrets, no transcripts; org-walled in SQL and audited as a cross-org access.`, inputSchema: searchOrgsSchema },
21884
+ { description: `List the ORGANIZATIONS you're authorized to read \u2014 the org-level entry point for triage and access decisions, so you don't have to infer orgs off agent/host rows or probe one org's tier with debug_request_access. Returns a projection per org: { organization_id, organization_slug, display_name, is_internal, management_mode (fully_managed | self_managed), standing_reason (internal | fully_managed | granted \u2014 WHY you can read it), has_active_grant (do you hold a live grant right now), host_count, agent_count, active_agent_count, open_alert_count, created_at, plan_key, subscription_status, byo_credentials, purchased_plan_key, billing_method, trial_ends_at, plan_override { org_plan_cache, active_addons } }. To judge WHO the customer is (routing, "is this an enterprise customer") use purchased_plan_key with billing_method. purchased_plan_key is the plan on the live subscription, or none if there is no live one. It does not prove payment: a new org's seed row and an admin editing the plan both set it. billing_method says how it pays: stripe, invoice or manual_invoice are committed payers, comp is a complimentary grant, pending is a seed or a no-card trial. To judge WHAT WORKS for them today use plan_key: the plan the product enforces, where past_due or incomplete reads starter, so an enterprise customer in arrears shows purchased_plan_key enterprise and plan_key starter. Never route on plan_key. subscription_status is trialing | active | past_due | incomplete | canceled, or null if the org never subscribed. A plan set by hand can't be told apart here. plan_override.org_plan_cache is the rare org with no subscription at all, and active_addons add to the plan without changing plan_key. byo_credentials is whether that plan lets the org use its own credential for premium integrations. If the plan read fails, every plan field is null, so null means unknown, not no. No billing amounts or payment details. Use it to (1) decide access in one read \u2014 see a self_managed org and its grant state before deciding to debug_request_access; (2) triage the fleet \u2014 "which orgs have open alerts" (open_alert_count includes stuck-restart alerts) without walking agents; (3) disambiguate a slug \u2192 id \u2192 tier without needing an agent/host to exist. Authorized = IL-owned (is_internal) + fully-managed orgs (standing) plus any self-managed org you hold an active grant for. Filter with { q (slug/name substring), management_mode, is_internal, limit }. Projection only \u2014 no secrets, no transcripts; org-walled in SQL and audited as a cross-org access.`, inputSchema: searchOrgsSchema },
21885
21885
  async (args) => {
21886
21886
  try {
21887
21887
  const result = await client.searchOrgs(args);
@@ -39291,6 +39291,27 @@ var DEFAULT_CHUNK_BUDGET_BYTES = 180 * 1024;
39291
39291
  var textEncoder = new TextEncoder();
39292
39292
 
39293
39293
  // ../core/dist/integrations/oauth-providers.js
39294
+ var DATADOG_READ_TOOLS = [
39295
+ "search_datadog_events",
39296
+ "get_datadog_incident",
39297
+ "get_datadog_metric",
39298
+ "get_datadog_metric_context",
39299
+ "search_datadog_monitors",
39300
+ "get_datadog_trace",
39301
+ "search_datadog_dashboards",
39302
+ "get_datadog_notebook",
39303
+ "search_datadog_notebooks",
39304
+ "search_datadog_hosts",
39305
+ "search_datadog_incidents",
39306
+ "search_datadog_metrics",
39307
+ "search_datadog_entities",
39308
+ "search_datadog_spans",
39309
+ "aggregate_spans",
39310
+ "analyze_datadog_logs",
39311
+ "search_datadog_logs",
39312
+ "search_datadog_rum_events",
39313
+ "aggregate_rum_events"
39314
+ ];
39294
39315
  var OAUTH_PROVIDERS = {
39295
39316
  "google-workspace": {
39296
39317
  definitionId: "google-workspace",
@@ -39711,6 +39732,110 @@ var OAUTH_PROVIDERS = {
39711
39732
  // (runbook Step 3, a gate before customer use).
39712
39733
  toolAllowlist: ["get_current_user", "list_files", "get_file", "get_note", "get_transcript"]
39713
39734
  },
39735
+ "datadog-ap1": {
39736
+ // CS-2136: Datadog's official MCP on the AP1 site - remote streamable-HTTP at
39737
+ // https://mcp.ap1.datadoghq.com/v1/mcp. Same Granola/Kajabi/Otter/Plaud shape:
39738
+ // OAuth 2.1 authorization-code with PKCE (S256, `pkce_required: true`) and a
39739
+ // public client (token_endpoint_auth_method 'none') issued via Dynamic Client
39740
+ // Registration (RFC 7591). Values below are copied verbatim from the metadata
39741
+ // re-read live on 2026-11-05, not inferred:
39742
+ // - https://mcp.ap1.datadoghq.com/.well-known/oauth-protected-resource gives
39743
+ // resource https://mcp.ap1.datadoghq.com and AS
39744
+ // https://mcp.ap1.datadoghq.com/v1/mcp;
39745
+ // - https://mcp.ap1.datadoghq.com/.well-known/oauth-authorization-server/v1/mcp
39746
+ // gives authorize https://ap1.datadoghq.com/oauth2/v1/authorize, token
39747
+ // https://ap1.datadoghq.com/api/v2/oauth2/token, register
39748
+ // https://ap1.datadoghq.com/api/v2/oauth2/register, `none`, PKCE S256 only,
39749
+ // the authorization_code + refresh_token grants, and scopes_supported
39750
+ // ['mcp_all'], the ONLY scope.
39751
+ // NOT advertised: `revocation_endpoint`, so there is no revokeUrl.
39752
+ //
39753
+ // ONE DEFINITION PER SITE, deliberately. A Datadog org lives on exactly one
39754
+ // site, and the authorize/token hosts, the MCP URL and the DCR client all
39755
+ // differ per site. All of those are static per definitionId here and in the
39756
+ // proxy, probe and consent paths; there is no per-install URL. US1 and EU1
39757
+ // are one more entry each when a customer needs them.
39758
+ //
39759
+ // READ-ONLY IS NOT A SCOPE. `mcp_all` is all-or-nothing. Datadog enforces the
39760
+ // connecting USER's own role on every call, so read-only comes from the
39761
+ // customer consenting as a dedicated read-only Datadog user (setup text and
39762
+ // runbook), plus this allowlist on our side.
39763
+ //
39764
+ // DCR (operator step, NOT done as of this commit): POST to
39765
+ // https://ap1.datadoghq.com/api/v2/oauth2/register with BOTH API callbacks,
39766
+ // store the client id as OAUTH_DATADOG_AP1_CLIENT_ID. Unset, Connect
39767
+ // soft-fails "not configured". Full procedure: docs/runbooks/datadog-dogfood.md.
39768
+ definitionId: "datadog-ap1",
39769
+ authorizeUrl: "https://ap1.datadoghq.com/oauth2/v1/authorize",
39770
+ tokenUrl: "https://ap1.datadoghq.com/api/v2/oauth2/token",
39771
+ defaultScopes: ["mcp_all"],
39772
+ supportsRefresh: true,
39773
+ extraAuthorizeParams: {},
39774
+ clientAuthMethod: "body",
39775
+ pkce: "S256",
39776
+ publicClient: true,
39777
+ mcpUrl: "https://mcp.ap1.datadoghq.com/v1/mcp",
39778
+ // The read tools of Datadog's default `core` toolset (docs.datadoghq.com/
39779
+ // bits_ai/mcp_server/tools, re-read 2026-11-05). `core` also serves
39780
+ // create_/edit_/delete_/recover_datadog_notebook, which are excluded. The
39781
+ // names come from the docs, not an authenticated tools/list, and Datadog
39782
+ // says they are still changing; the proxy SKIPS a name the server does not
39783
+ // serve, so confirm against the first live tools/list (runbook Step 3, a
39784
+ // gate before customer use).
39785
+ toolAllowlist: DATADOG_READ_TOOLS
39786
+ },
39787
+ "datadog-ap2": {
39788
+ // CS-2136: Datadog's official MCP on the AP2 site - remote streamable-HTTP at
39789
+ // https://mcp.ap2.datadoghq.com/v1/mcp. Same Granola/Kajabi/Otter/Plaud shape:
39790
+ // OAuth 2.1 authorization-code with PKCE (S256, `pkce_required: true`) and a
39791
+ // public client (token_endpoint_auth_method 'none') issued via Dynamic Client
39792
+ // Registration (RFC 7591). Values below are copied verbatim from the metadata
39793
+ // re-read live on 2026-11-05, not inferred:
39794
+ // - https://mcp.ap2.datadoghq.com/.well-known/oauth-protected-resource gives
39795
+ // resource https://mcp.ap2.datadoghq.com and AS
39796
+ // https://mcp.ap2.datadoghq.com/v1/mcp;
39797
+ // - https://mcp.ap2.datadoghq.com/.well-known/oauth-authorization-server/v1/mcp
39798
+ // gives authorize https://ap2.datadoghq.com/oauth2/v1/authorize, token
39799
+ // https://ap2.datadoghq.com/api/v2/oauth2/token, register
39800
+ // https://ap2.datadoghq.com/api/v2/oauth2/register, `none`, PKCE S256 only,
39801
+ // the authorization_code + refresh_token grants, and scopes_supported
39802
+ // ['mcp_all'], the ONLY scope.
39803
+ // NOT advertised: `revocation_endpoint`, so there is no revokeUrl.
39804
+ //
39805
+ // ONE DEFINITION PER SITE, deliberately. A Datadog org lives on exactly one
39806
+ // site, and the authorize/token hosts, the MCP URL and the DCR client all
39807
+ // differ per site. All of those are static per definitionId here and in the
39808
+ // proxy, probe and consent paths; there is no per-install URL. US1 and EU1
39809
+ // are one more entry each when a customer needs them.
39810
+ //
39811
+ // READ-ONLY IS NOT A SCOPE. `mcp_all` is all-or-nothing. Datadog enforces the
39812
+ // connecting USER's own role on every call, so read-only comes from the
39813
+ // customer consenting as a dedicated read-only Datadog user (setup text and
39814
+ // runbook), plus this allowlist on our side.
39815
+ //
39816
+ // DCR (operator step, NOT done as of this commit): POST to
39817
+ // https://ap2.datadoghq.com/api/v2/oauth2/register with BOTH API callbacks,
39818
+ // store the client id as OAUTH_DATADOG_AP2_CLIENT_ID. Unset, Connect
39819
+ // soft-fails "not configured". Full procedure: docs/runbooks/datadog-dogfood.md.
39820
+ definitionId: "datadog-ap2",
39821
+ authorizeUrl: "https://ap2.datadoghq.com/oauth2/v1/authorize",
39822
+ tokenUrl: "https://ap2.datadoghq.com/api/v2/oauth2/token",
39823
+ defaultScopes: ["mcp_all"],
39824
+ supportsRefresh: true,
39825
+ extraAuthorizeParams: {},
39826
+ clientAuthMethod: "body",
39827
+ pkce: "S256",
39828
+ publicClient: true,
39829
+ mcpUrl: "https://mcp.ap2.datadoghq.com/v1/mcp",
39830
+ // The read tools of Datadog's default `core` toolset (docs.datadoghq.com/
39831
+ // bits_ai/mcp_server/tools, re-read 2026-11-05). `core` also serves
39832
+ // create_/edit_/delete_/recover_datadog_notebook, which are excluded. The
39833
+ // names come from the docs, not an authenticated tools/list, and Datadog
39834
+ // says they are still changing; the proxy SKIPS a name the server does not
39835
+ // serve, so confirm against the first live tools/list (runbook Step 3, a
39836
+ // gate before customer use).
39837
+ toolAllowlist: DATADOG_READ_TOOLS
39838
+ },
39714
39839
  "notion-cli": {
39715
39840
  // Notion's public OAuth app. Tokens are workspace-scoped and long-lived —
39716
39841
  // Notion does not issue refresh_tokens, so `supportsRefresh: false` and
@@ -40197,6 +40322,40 @@ var INTEGRATION_REGISTRY = [
40197
40322
  docs_url: "https://docs.plaud.ai/plaud-mcp-cli/mcp",
40198
40323
  beta: true
40199
40324
  },
40325
+ {
40326
+ id: "datadog-ap1",
40327
+ name: "Datadog (AP1)",
40328
+ category: "infrastructure",
40329
+ description: "Read Datadog on the AP1 site (ap1.datadoghq.com): monitors and alerts, metrics, dashboards, logs, APM traces and services, hosts and incidents.",
40330
+ // CS-2136: Datadog's official remote MCP (OAuth 2.1 + PKCE + DCR, public
40331
+ // client), the Otter/Plaud pattern. One definition per Datadog site; see
40332
+ // OAUTH_PROVIDERS['datadog-ap1'] for why. Read-only is enforced by the
40333
+ // customer consenting as a read-only Datadog user (the only scope is
40334
+ // mcp_all), backed by the proxy's read-tool allowlist.
40335
+ supported_auth_types: ["oauth2"],
40336
+ capabilities: [
40337
+ { id: "datadog-ap1:read", name: "Read Monitoring Data", description: "Search monitors, alert events and incidents, query metrics, list dashboards and hosts, search and analyse logs, and read APM traces and spans", access: "read" }
40338
+ ],
40339
+ docs_url: "https://docs.datadoghq.com/bits_ai/mcp_server/",
40340
+ beta: true
40341
+ },
40342
+ {
40343
+ id: "datadog-ap2",
40344
+ name: "Datadog (AP2)",
40345
+ category: "infrastructure",
40346
+ description: "Read Datadog on the AP2 site (ap2.datadoghq.com): monitors and alerts, metrics, dashboards, logs, APM traces and services, hosts and incidents.",
40347
+ // CS-2136: Datadog's official remote MCP (OAuth 2.1 + PKCE + DCR, public
40348
+ // client), the Otter/Plaud pattern. One definition per Datadog site; see
40349
+ // OAUTH_PROVIDERS['datadog-ap2'] for why. Read-only is enforced by the
40350
+ // customer consenting as a read-only Datadog user (the only scope is
40351
+ // mcp_all), backed by the proxy's read-tool allowlist.
40352
+ supported_auth_types: ["oauth2"],
40353
+ capabilities: [
40354
+ { id: "datadog-ap2:read", name: "Read Monitoring Data", description: "Search monitors, alert events and incidents, query metrics, list dashboards and hosts, search and analyse logs, and read APM traces and spans", access: "read" }
40355
+ ],
40356
+ docs_url: "https://docs.datadoghq.com/bits_ai/mcp_server/",
40357
+ beta: true
40358
+ },
40200
40359
  {
40201
40360
  id: "anchor-browser",
40202
40361
  name: "Anchor Browser",
package/dist/mcp/index.js CHANGED
@@ -25387,6 +25387,27 @@ var DEFAULT_CHUNK_BUDGET_BYTES = 180 * 1024;
25387
25387
  var textEncoder = new TextEncoder();
25388
25388
 
25389
25389
  // ../core/dist/integrations/oauth-providers.js
25390
+ var DATADOG_READ_TOOLS = [
25391
+ "search_datadog_events",
25392
+ "get_datadog_incident",
25393
+ "get_datadog_metric",
25394
+ "get_datadog_metric_context",
25395
+ "search_datadog_monitors",
25396
+ "get_datadog_trace",
25397
+ "search_datadog_dashboards",
25398
+ "get_datadog_notebook",
25399
+ "search_datadog_notebooks",
25400
+ "search_datadog_hosts",
25401
+ "search_datadog_incidents",
25402
+ "search_datadog_metrics",
25403
+ "search_datadog_entities",
25404
+ "search_datadog_spans",
25405
+ "aggregate_spans",
25406
+ "analyze_datadog_logs",
25407
+ "search_datadog_logs",
25408
+ "search_datadog_rum_events",
25409
+ "aggregate_rum_events"
25410
+ ];
25390
25411
  var OAUTH_PROVIDERS = {
25391
25412
  "google-workspace": {
25392
25413
  definitionId: "google-workspace",
@@ -25807,6 +25828,110 @@ var OAUTH_PROVIDERS = {
25807
25828
  // (runbook Step 3, a gate before customer use).
25808
25829
  toolAllowlist: ["get_current_user", "list_files", "get_file", "get_note", "get_transcript"]
25809
25830
  },
25831
+ "datadog-ap1": {
25832
+ // CS-2136: Datadog's official MCP on the AP1 site - remote streamable-HTTP at
25833
+ // https://mcp.ap1.datadoghq.com/v1/mcp. Same Granola/Kajabi/Otter/Plaud shape:
25834
+ // OAuth 2.1 authorization-code with PKCE (S256, `pkce_required: true`) and a
25835
+ // public client (token_endpoint_auth_method 'none') issued via Dynamic Client
25836
+ // Registration (RFC 7591). Values below are copied verbatim from the metadata
25837
+ // re-read live on 2026-11-05, not inferred:
25838
+ // - https://mcp.ap1.datadoghq.com/.well-known/oauth-protected-resource gives
25839
+ // resource https://mcp.ap1.datadoghq.com and AS
25840
+ // https://mcp.ap1.datadoghq.com/v1/mcp;
25841
+ // - https://mcp.ap1.datadoghq.com/.well-known/oauth-authorization-server/v1/mcp
25842
+ // gives authorize https://ap1.datadoghq.com/oauth2/v1/authorize, token
25843
+ // https://ap1.datadoghq.com/api/v2/oauth2/token, register
25844
+ // https://ap1.datadoghq.com/api/v2/oauth2/register, `none`, PKCE S256 only,
25845
+ // the authorization_code + refresh_token grants, and scopes_supported
25846
+ // ['mcp_all'], the ONLY scope.
25847
+ // NOT advertised: `revocation_endpoint`, so there is no revokeUrl.
25848
+ //
25849
+ // ONE DEFINITION PER SITE, deliberately. A Datadog org lives on exactly one
25850
+ // site, and the authorize/token hosts, the MCP URL and the DCR client all
25851
+ // differ per site. All of those are static per definitionId here and in the
25852
+ // proxy, probe and consent paths; there is no per-install URL. US1 and EU1
25853
+ // are one more entry each when a customer needs them.
25854
+ //
25855
+ // READ-ONLY IS NOT A SCOPE. `mcp_all` is all-or-nothing. Datadog enforces the
25856
+ // connecting USER's own role on every call, so read-only comes from the
25857
+ // customer consenting as a dedicated read-only Datadog user (setup text and
25858
+ // runbook), plus this allowlist on our side.
25859
+ //
25860
+ // DCR (operator step, NOT done as of this commit): POST to
25861
+ // https://ap1.datadoghq.com/api/v2/oauth2/register with BOTH API callbacks,
25862
+ // store the client id as OAUTH_DATADOG_AP1_CLIENT_ID. Unset, Connect
25863
+ // soft-fails "not configured". Full procedure: docs/runbooks/datadog-dogfood.md.
25864
+ definitionId: "datadog-ap1",
25865
+ authorizeUrl: "https://ap1.datadoghq.com/oauth2/v1/authorize",
25866
+ tokenUrl: "https://ap1.datadoghq.com/api/v2/oauth2/token",
25867
+ defaultScopes: ["mcp_all"],
25868
+ supportsRefresh: true,
25869
+ extraAuthorizeParams: {},
25870
+ clientAuthMethod: "body",
25871
+ pkce: "S256",
25872
+ publicClient: true,
25873
+ mcpUrl: "https://mcp.ap1.datadoghq.com/v1/mcp",
25874
+ // The read tools of Datadog's default `core` toolset (docs.datadoghq.com/
25875
+ // bits_ai/mcp_server/tools, re-read 2026-11-05). `core` also serves
25876
+ // create_/edit_/delete_/recover_datadog_notebook, which are excluded. The
25877
+ // names come from the docs, not an authenticated tools/list, and Datadog
25878
+ // says they are still changing; the proxy SKIPS a name the server does not
25879
+ // serve, so confirm against the first live tools/list (runbook Step 3, a
25880
+ // gate before customer use).
25881
+ toolAllowlist: DATADOG_READ_TOOLS
25882
+ },
25883
+ "datadog-ap2": {
25884
+ // CS-2136: Datadog's official MCP on the AP2 site - remote streamable-HTTP at
25885
+ // https://mcp.ap2.datadoghq.com/v1/mcp. Same Granola/Kajabi/Otter/Plaud shape:
25886
+ // OAuth 2.1 authorization-code with PKCE (S256, `pkce_required: true`) and a
25887
+ // public client (token_endpoint_auth_method 'none') issued via Dynamic Client
25888
+ // Registration (RFC 7591). Values below are copied verbatim from the metadata
25889
+ // re-read live on 2026-11-05, not inferred:
25890
+ // - https://mcp.ap2.datadoghq.com/.well-known/oauth-protected-resource gives
25891
+ // resource https://mcp.ap2.datadoghq.com and AS
25892
+ // https://mcp.ap2.datadoghq.com/v1/mcp;
25893
+ // - https://mcp.ap2.datadoghq.com/.well-known/oauth-authorization-server/v1/mcp
25894
+ // gives authorize https://ap2.datadoghq.com/oauth2/v1/authorize, token
25895
+ // https://ap2.datadoghq.com/api/v2/oauth2/token, register
25896
+ // https://ap2.datadoghq.com/api/v2/oauth2/register, `none`, PKCE S256 only,
25897
+ // the authorization_code + refresh_token grants, and scopes_supported
25898
+ // ['mcp_all'], the ONLY scope.
25899
+ // NOT advertised: `revocation_endpoint`, so there is no revokeUrl.
25900
+ //
25901
+ // ONE DEFINITION PER SITE, deliberately. A Datadog org lives on exactly one
25902
+ // site, and the authorize/token hosts, the MCP URL and the DCR client all
25903
+ // differ per site. All of those are static per definitionId here and in the
25904
+ // proxy, probe and consent paths; there is no per-install URL. US1 and EU1
25905
+ // are one more entry each when a customer needs them.
25906
+ //
25907
+ // READ-ONLY IS NOT A SCOPE. `mcp_all` is all-or-nothing. Datadog enforces the
25908
+ // connecting USER's own role on every call, so read-only comes from the
25909
+ // customer consenting as a dedicated read-only Datadog user (setup text and
25910
+ // runbook), plus this allowlist on our side.
25911
+ //
25912
+ // DCR (operator step, NOT done as of this commit): POST to
25913
+ // https://ap2.datadoghq.com/api/v2/oauth2/register with BOTH API callbacks,
25914
+ // store the client id as OAUTH_DATADOG_AP2_CLIENT_ID. Unset, Connect
25915
+ // soft-fails "not configured". Full procedure: docs/runbooks/datadog-dogfood.md.
25916
+ definitionId: "datadog-ap2",
25917
+ authorizeUrl: "https://ap2.datadoghq.com/oauth2/v1/authorize",
25918
+ tokenUrl: "https://ap2.datadoghq.com/api/v2/oauth2/token",
25919
+ defaultScopes: ["mcp_all"],
25920
+ supportsRefresh: true,
25921
+ extraAuthorizeParams: {},
25922
+ clientAuthMethod: "body",
25923
+ pkce: "S256",
25924
+ publicClient: true,
25925
+ mcpUrl: "https://mcp.ap2.datadoghq.com/v1/mcp",
25926
+ // The read tools of Datadog's default `core` toolset (docs.datadoghq.com/
25927
+ // bits_ai/mcp_server/tools, re-read 2026-11-05). `core` also serves
25928
+ // create_/edit_/delete_/recover_datadog_notebook, which are excluded. The
25929
+ // names come from the docs, not an authenticated tools/list, and Datadog
25930
+ // says they are still changing; the proxy SKIPS a name the server does not
25931
+ // serve, so confirm against the first live tools/list (runbook Step 3, a
25932
+ // gate before customer use).
25933
+ toolAllowlist: DATADOG_READ_TOOLS
25934
+ },
25810
25935
  "notion-cli": {
25811
25936
  // Notion's public OAuth app. Tokens are workspace-scoped and long-lived —
25812
25937
  // Notion does not issue refresh_tokens, so `supportsRefresh: false` and
@@ -26293,6 +26418,40 @@ var INTEGRATION_REGISTRY = [
26293
26418
  docs_url: "https://docs.plaud.ai/plaud-mcp-cli/mcp",
26294
26419
  beta: true
26295
26420
  },
26421
+ {
26422
+ id: "datadog-ap1",
26423
+ name: "Datadog (AP1)",
26424
+ category: "infrastructure",
26425
+ description: "Read Datadog on the AP1 site (ap1.datadoghq.com): monitors and alerts, metrics, dashboards, logs, APM traces and services, hosts and incidents.",
26426
+ // CS-2136: Datadog's official remote MCP (OAuth 2.1 + PKCE + DCR, public
26427
+ // client), the Otter/Plaud pattern. One definition per Datadog site; see
26428
+ // OAUTH_PROVIDERS['datadog-ap1'] for why. Read-only is enforced by the
26429
+ // customer consenting as a read-only Datadog user (the only scope is
26430
+ // mcp_all), backed by the proxy's read-tool allowlist.
26431
+ supported_auth_types: ["oauth2"],
26432
+ capabilities: [
26433
+ { id: "datadog-ap1:read", name: "Read Monitoring Data", description: "Search monitors, alert events and incidents, query metrics, list dashboards and hosts, search and analyse logs, and read APM traces and spans", access: "read" }
26434
+ ],
26435
+ docs_url: "https://docs.datadoghq.com/bits_ai/mcp_server/",
26436
+ beta: true
26437
+ },
26438
+ {
26439
+ id: "datadog-ap2",
26440
+ name: "Datadog (AP2)",
26441
+ category: "infrastructure",
26442
+ description: "Read Datadog on the AP2 site (ap2.datadoghq.com): monitors and alerts, metrics, dashboards, logs, APM traces and services, hosts and incidents.",
26443
+ // CS-2136: Datadog's official remote MCP (OAuth 2.1 + PKCE + DCR, public
26444
+ // client), the Otter/Plaud pattern. One definition per Datadog site; see
26445
+ // OAUTH_PROVIDERS['datadog-ap2'] for why. Read-only is enforced by the
26446
+ // customer consenting as a read-only Datadog user (the only scope is
26447
+ // mcp_all), backed by the proxy's read-tool allowlist.
26448
+ supported_auth_types: ["oauth2"],
26449
+ capabilities: [
26450
+ { id: "datadog-ap2:read", name: "Read Monitoring Data", description: "Search monitors, alert events and incidents, query metrics, list dashboards and hosts, search and analyse logs, and read APM traces and spans", access: "read" }
26451
+ ],
26452
+ docs_url: "https://docs.datadoghq.com/bits_ai/mcp_server/",
26453
+ beta: true
26454
+ },
26296
26455
  {
26297
26456
  id: "anchor-browser",
26298
26457
  name: "Anchor Browser",