@fruggr/zendesk-mcp-server 3.5.1 → 3.5.3

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.
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { A as __commonJSMin, C as isLegacyRequest, D as STARTUP_DOCS, E as OAuthErrorCode, M as __require, N as __toESM, O as createStartupError, S as createMcpHandler, T as OAuthError, _ as deadlineSignal, a as watchGrantAlerts, b as DEFAULT_MAX_REQUEST_BODY_SIZE, c as configDir, g as REQUEST_TIMEOUT_MS, h as zendeskGet, i as defaultServerFactory, j as __exportAll, k as errnoCode, m as silentLogger, n as listenedUris, o as startSlaRuntime, p as createRequestStateCodec, r as createServerCaches, t as createListenFeed, w as verifyBearerToken, x as WebStandardStreamableHTTPServerTransport, y as getOAuthUrls } from "./index.js";
2
+ import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } from "./rolldown-runtime-BbXq-jo1.js";
3
+ import { A as createStartupError, C as WebStandardStreamableHTTPServerTransport, D as OAuthError, E as verifyBearerToken, O as OAuthErrorCode, S as DEFAULT_MAX_REQUEST_BODY_SIZE, T as isLegacyRequest, _ as zendeskGet, a as toolEnv, g as createAllTools, h as silentLogger, i as defaultServerFactory, j as errnoCode, k as STARTUP_DOCS, l as configDir, m as createRequestStateCodec, n as listenedUris, o as watchGrantAlerts, r as createServerCaches, s as startSlaRuntime, t as createListenFeed, v as REQUEST_TIMEOUT_MS, w as createMcpHandler, x as getOAuthUrls, y as deadlineSignal } from "./index.js";
3
4
  import { a as supportedScopes, i as requestedScope, n as generateCodeVerifier, o as escapeHtml, t as generateCodeChallenge } from "./pkce-DE_v9NQy.js";
4
5
  import * as util from "node:util";
5
6
  import { format, inspect } from "node:util";
@@ -7,15 +8,15 @@ import * as crypto$2 from "node:crypto";
7
8
  import { createHash, createPrivateKey, createSecretKey, hkdfSync, randomBytes, randomFillSync, randomUUID, timingSafeEqual } from "node:crypto";
8
9
  import { dirname, join, resolve } from "node:path";
9
10
  import { fileURLToPath, pathToFileURL } from "node:url";
11
+ import { accessSync, chmodSync, constants, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
12
+ import { STATUS_CODES, createServer } from "node:http";
13
+ import { Http2ServerRequest, constants as constants$1 } from "http2";
10
14
  import { Readable } from "stream";
15
+ import crypto$1 from "crypto";
11
16
  import { strict } from "node:assert";
12
- import { STATUS_CODES, createServer } from "node:http";
13
- import * as querystring from "node:querystring";
14
17
  import * as events from "node:events";
15
18
  import { AsyncLocalStorage } from "node:async_hooks";
16
- import { accessSync, chmodSync, constants, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
17
- import { Http2ServerRequest, constants as constants$1 } from "http2";
18
- import crypto$1 from "crypto";
19
+ import * as querystring from "node:querystring";
19
20
  //#region node_modules/.pnpm/@hono+node-server@1.19.17_hono@4.13.13/node_modules/@hono/node-server/dist/index.mjs
20
21
  var RequestError = class extends Error {
21
22
  constructor(message, options) {
@@ -36775,6 +36776,7 @@ const startHttpTransport = async (config, logger = silentLogger, options = {}) =
36775
36776
  const idleTimeoutMs = options.sessionIdleTimeoutMs ?? SESSION_IDLE_TIMEOUT_MS;
36776
36777
  const maxBodyBytes = options.maxBodyBytes ?? 4194304;
36777
36778
  const serverFactory = options.serverFactory ?? defaultServerFactory;
36779
+ const tools = createAllTools(toolEnv(config));
36778
36780
  const grants = createGrantRegistry({
36779
36781
  idleTimeoutMs,
36780
36782
  onCloseError: (grantId, err) => logger.warn("grant_close_failed", {
@@ -36807,6 +36809,7 @@ const startHttpTransport = async (config, logger = silentLogger, options = {}) =
36807
36809
  getToken: () => auth.zendeskToken,
36808
36810
  logger,
36809
36811
  onUnauthorized: () => void as.revokeGrant(auth.grantId),
36812
+ tools,
36810
36813
  slaRuntime: sla.runtime,
36811
36814
  requestStateCodec: createRequestStateCodec({
36812
36815
  key: as.requestStateKey,
@@ -36860,6 +36863,7 @@ const startHttpTransport = async (config, logger = silentLogger, options = {}) =
36860
36863
  logger,
36861
36864
  onUnauthorized,
36862
36865
  caches,
36866
+ tools,
36863
36867
  requestStateCodec,
36864
36868
  slaRuntime: sla.runtime,
36865
36869
  alertPolling: "grant",