@seekrit/mcp 0.8.5 → 0.8.6

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 (2) hide show
  1. package/dist/index.js +620 -30
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -275,12 +275,24 @@ const ENTITLEMENT_KEYS = Object.keys({
275
275
  description: "Single sign-on beyond the built-in providers.",
276
276
  default: true
277
277
  },
278
+ "feature.approvals": {
279
+ kind: "feature",
280
+ label: "Approval workflows",
281
+ description: "Require review before a change to a protected environment lands.",
282
+ default: true
283
+ },
278
284
  "feature.sync": {
279
285
  kind: "feature",
280
286
  label: "Third-party sync",
281
287
  description: "Push environment secrets to external platforms like Vercel.",
282
288
  default: true
283
289
  },
290
+ "feature.vault": {
291
+ kind: "feature",
292
+ label: "Vault",
293
+ description: "Capture, hold and apply your end users' credentials for an agent — without your systems or seekrit ever holding a plaintext.",
294
+ default: true
295
+ },
284
296
  "apps.max": {
285
297
  kind: "limit",
286
298
  label: "Applications",
@@ -341,6 +353,12 @@ const ENTITLEMENT_KEYS = Object.keys({
341
353
  description: "Maximum secrets with managed rotation configured.",
342
354
  default: null
343
355
  },
356
+ "vault.connections.max": {
357
+ kind: "limit",
358
+ label: "Vault connections",
359
+ description: "Maximum active end-user connections across the organization's Vault projects.",
360
+ default: null
361
+ },
344
362
  members: {
345
363
  kind: "metered",
346
364
  label: "Members",
@@ -449,6 +467,15 @@ function parseBranchTtl(input) {
449
467
  return value * multiplier;
450
468
  }
451
469
  //#endregion
470
+ //#region ../../packages/core/src/change-requests.ts
471
+ const CHANGE_REQUEST_STATUSES = [
472
+ "open",
473
+ "applied",
474
+ "rejected",
475
+ "withdrawn",
476
+ "superseded"
477
+ ];
478
+ //#endregion
452
479
  //#region ../../packages/core/src/dotenv.ts
453
480
  /**
454
481
  * Apply double-quote escapes in a single left-to-right pass.
@@ -1056,7 +1083,9 @@ const NOTIFICATION_TYPES = [
1056
1083
  "lease_expired",
1057
1084
  "sync_failed",
1058
1085
  "honey_token_tripped",
1059
- "secret_rotation_failed"
1086
+ "secret_rotation_failed",
1087
+ "change_request_opened",
1088
+ "change_request_decided"
1060
1089
  ];
1061
1090
  //#endregion
1062
1091
  //#region ../../packages/core/src/schemas.ts
@@ -1109,7 +1138,12 @@ z.object({
1109
1138
  z.object({
1110
1139
  groupId: z.string().min(1),
1111
1140
  /** Precedence among an env's groups (higher wins). Appended if omitted. */
1112
- position: z.number().int().min(0).optional()
1141
+ position: z.number().int().min(0).optional(),
1142
+ /** Client-wrapped group DEK for each sync connection newly reading this group. */
1143
+ syncGrants: z.array(z.object({
1144
+ connectionId: z.string().min(1),
1145
+ wrappedDek: z.string().min(1)
1146
+ })).optional()
1113
1147
  });
1114
1148
  z.object({
1115
1149
  name: nameSchema,
@@ -1128,6 +1162,17 @@ z.object({
1128
1162
  ciphertext: z.string().min(1).max(65536) });
1129
1163
  z.object({ version: z.number().int().positive() });
1130
1164
  z.object({ limit: z.coerce.number().int().min(1).max(200).default(50) });
1165
+ z.object({
1166
+ requiredApprovals: z.number().int().min(1).max(10).default(1),
1167
+ allowSelfApproval: z.boolean().default(false)
1168
+ });
1169
+ z.object({ comment: z.string().trim().max(1e3).optional() });
1170
+ z.string().trim().min(1).max(1e3);
1171
+ z.object({
1172
+ status: z.enum(CHANGE_REQUEST_STATUSES).optional(),
1173
+ envId: z.string().min(1).optional(),
1174
+ limit: z.coerce.number().int().min(1).max(200).default(50)
1175
+ });
1131
1176
  z.object({
1132
1177
  publicKeyJwk: z.string().min(1),
1133
1178
  /**
@@ -1450,7 +1495,9 @@ z.enum([
1450
1495
  "gcp-secret-manager",
1451
1496
  "langgraph-platform",
1452
1497
  "azure-key-vault",
1453
- "huggingface-spaces"
1498
+ "huggingface-spaces",
1499
+ "openai-vault",
1500
+ "claude-managed-agents"
1454
1501
  ]);
1455
1502
  /**
1456
1503
  * Vercel account scope. The API token itself is never here — it is wrapped to
@@ -1828,6 +1875,25 @@ const azureKeyVaultConnectionConfigSchema = z.object({
1828
1875
  * would invite pointing a connection at a host that silently swallows secrets.
1829
1876
  */
1830
1877
  const huggingfaceSpacesConnectionConfigSchema = z.object({ provider: z.literal("huggingface-spaces") });
1878
+ /** The wrapped credential is an OpenAI project API key with vault read/write access. */
1879
+ const openaiVaultConnectionConfigSchema = z.object({ provider: z.literal("openai-vault") });
1880
+ /**
1881
+ * Claude Managed Agents account scope — empty, for Hugging Face's reason.
1882
+ *
1883
+ * An Anthropic API key belongs to exactly one **workspace**, and vaults are
1884
+ * workspace-scoped: the key can reach every vault in its workspace and none
1885
+ * outside it. A vault ID is globally unique. So the key plus the destination is
1886
+ * the whole address, and the API's `anthropic-workspace-id` header — which
1887
+ * exists for credentials that span several workspaces — has nothing to select.
1888
+ *
1889
+ * There is no `baseUrl`, and adding one would not be enough. Bedrock, Vertex
1890
+ * AI, and Foundry do not offer Managed Agents at all. Claude Platform on AWS
1891
+ * does, at `aws-external-anthropic.{region}.api.aws` — but it authenticates
1892
+ * with SigV4 over an IAM credential, not an API key, so it is a different
1893
+ * credential shape and a different connector (one that would reuse
1894
+ * `lib/leases/aws-sigv4.ts`), not a different host for this one.
1895
+ */
1896
+ const claudeManagedAgentsConnectionConfigSchema = z.object({ provider: z.literal("claude-managed-agents") });
1831
1897
  const syncConnectionConfigSchema = z.discriminatedUnion("provider", [
1832
1898
  vercelConnectionConfigSchema,
1833
1899
  cloudflareWorkersConnectionConfigSchema,
@@ -1847,7 +1913,9 @@ const syncConnectionConfigSchema = z.discriminatedUnion("provider", [
1847
1913
  gcpSecretManagerConnectionConfigSchema,
1848
1914
  langgraphPlatformConnectionConfigSchema,
1849
1915
  azureKeyVaultConnectionConfigSchema,
1850
- huggingfaceSpacesConnectionConfigSchema
1916
+ huggingfaceSpacesConnectionConfigSchema,
1917
+ openaiVaultConnectionConfigSchema,
1918
+ claudeManagedAgentsConnectionConfigSchema
1851
1919
  ]);
1852
1920
  const vercelDestinationSchema = z.object({
1853
1921
  provider: z.literal("vercel"),
@@ -2626,6 +2694,83 @@ const huggingfaceSpacesDestinationSchema = z.object({
2626
2694
  /** Space ID as `owner/name`, e.g. `acme/support-demo`. */
2627
2695
  repoId: huggingfaceRepoIdSchema
2628
2696
  });
2697
+ /** One existing OpenAI vault; every credential in this binding gets the same host boundary. */
2698
+ const openaiVaultDestinationSchema = z.object({
2699
+ provider: z.literal("openai-vault"),
2700
+ vaultId: z.string().trim().regex(/^vault_[A-Za-z0-9_-]+$/, "must be an OpenAI vault ID"),
2701
+ allowedHosts: z.array(z.string().trim().toLowerCase().max(253).regex(/^(?=.{1,253}$)[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)+$/, "must be an exact hostname without scheme, port, path, or wildcard")).min(1).max(100).refine((hosts) => new Set(hosts).size === hosts.length, "hostnames must be unique")
2702
+ });
2703
+ /**
2704
+ * A vault ID as the Claude Console and API show it: `vlt_` and an opaque
2705
+ * alphanumeric tail. Held to that shape because the habitual slip — pasting the
2706
+ * vault's display name — is a 404 from inside an alarm, which says nothing
2707
+ * about which half of the address was wrong.
2708
+ */
2709
+ const claudeVaultIdSchema = z.string().trim().regex(/^vlt_[A-Za-z0-9]{1,128}$/, "must be a vault ID, e.g. vlt_01ABC… — not its display name");
2710
+ /** Ceiling on per-name host rules; a vault itself holds at most 20 credentials. */
2711
+ const CLAUDE_VAULT_MAX_HOST_RULES = 100;
2712
+ /** A hostname of two or more labels whose last label starts with a letter. */
2713
+ const CLAUDE_VAULT_HOSTNAME = /^(?:\*\.)?(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?$/;
2714
+ const CLAUDE_VAULT_IPV4 = /^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}$/;
2715
+ /**
2716
+ * One host a secret's value may be substituted on, in the three forms the vault
2717
+ * API takes: a bare hostname (`api.openai.com`), a `*.`-prefixed wildcard
2718
+ * (`*.stripe.com`), or an IPv4 address.
2719
+ *
2720
+ * The API refuses URLs, ports, paths, and IPv6, so those are refused here too —
2721
+ * pasting `https://api.openai.com/v1` is the slip this exists for. Note the
2722
+ * wildcard's documented reach: `*.stripe.com` matches every subdomain of
2723
+ * `stripe.com` **but not `stripe.com` itself**, so a service reached at its apex
2724
+ * needs both entries. A bare TLD wildcard (`*.com`) is refused by shape.
2725
+ */
2726
+ const claudeVaultHostSchema = z.string().trim().toLowerCase().max(253).refine((host) => CLAUDE_VAULT_HOSTNAME.test(host) || CLAUDE_VAULT_IPV4.test(host), "must be a bare hostname (api.example.com), a *.example.com wildcard, or an IPv4 address — not a URL");
2727
+ /**
2728
+ * Where one secret's value may be substituted: a list of hosts, or the literal
2729
+ * `"unrestricted"`, which lets it reach any host the agent's *environment*
2730
+ * permits. The literal is spelled out rather than implied by an empty list, so
2731
+ * the widest setting is never something a binding arrives at by omission.
2732
+ */
2733
+ const claudeVaultHostRuleSchema = z.union([z.literal("unrestricted"), z.array(claudeVaultHostSchema).min(1).max(16)]);
2734
+ /**
2735
+ * One **Claude Managed Agents vault**, whose `environment_variable` credentials
2736
+ * a binding owns.
2737
+ *
2738
+ * Like `openai-vault`, a destination where the workload never holds the
2739
+ * plaintext either: an agent's sandbox sees an opaque placeholder in the
2740
+ * variable, and Anthropic's egress proxy swaps the real value in only on a
2741
+ * request to a host the credential names. So every name needs somewhere it is
2742
+ * allowed to go, and that is most of this shape:
2743
+ *
2744
+ * - `allowedHostsByName` — per destination name, after `nameTransform`. The
2745
+ * right tool: a Stripe key belongs on `api.stripe.com` and nowhere else.
2746
+ * - `allowedHosts` — for every name without its own rule.
2747
+ *
2748
+ * At least one must be given. A pushed name covered by neither **fails** rather
2749
+ * than going out `unrestricted` — the default-deny stance `apps/proxy` takes, so
2750
+ * a secret added to the environment later cannot silently widen where values
2751
+ * flow. Both levels apply beside the agent environment's own network policy,
2752
+ * which must also let the host through; this shape cannot see that policy.
2753
+ */
2754
+ const claudeManagedAgentsDestinationSchema = z.object({
2755
+ provider: z.literal("claude-managed-agents"),
2756
+ /** The vault's ID, e.g. `vlt_01ABC…`. */
2757
+ vaultId: claudeVaultIdSchema,
2758
+ /** Hosts for every name without its own entry in `allowedHostsByName`. */
2759
+ allowedHosts: claudeVaultHostRuleSchema.optional(),
2760
+ /** Destination name → the hosts that one value may be substituted on. */
2761
+ allowedHostsByName: z.record(secretNameSchema, claudeVaultHostRuleSchema).optional(),
2762
+ injectionLocation: z.enum([
2763
+ "header",
2764
+ "body",
2765
+ "both"
2766
+ ]).default("header")
2767
+ }).refine((d) => d.allowedHosts !== void 0 || Object.keys(d.allowedHostsByName ?? {}).length > 0, {
2768
+ message: "name the hosts each secret may be used on — allowedHosts for all of them, allowedHostsByName per name, or \"unrestricted\"",
2769
+ path: ["allowedHosts"]
2770
+ }).refine((d) => Object.keys(d.allowedHostsByName ?? {}).length <= CLAUDE_VAULT_MAX_HOST_RULES, {
2771
+ message: `at most ${CLAUDE_VAULT_MAX_HOST_RULES} per-name host rules`,
2772
+ path: ["allowedHostsByName"]
2773
+ });
2629
2774
  const syncDestinationSchema = z.discriminatedUnion("provider", [
2630
2775
  vercelDestinationSchema,
2631
2776
  cloudflareWorkersDestinationSchema,
@@ -2645,7 +2790,9 @@ const syncDestinationSchema = z.discriminatedUnion("provider", [
2645
2790
  gcpSecretManagerDestinationSchema,
2646
2791
  langgraphPlatformDestinationSchema,
2647
2792
  azureKeyVaultDestinationSchema,
2648
- huggingfaceSpacesDestinationSchema
2793
+ huggingfaceSpacesDestinationSchema,
2794
+ openaiVaultDestinationSchema,
2795
+ claudeManagedAgentsDestinationSchema
2649
2796
  ]);
2650
2797
  /**
2651
2798
  * How seekrit secret names become destination key names. Applied in order:
@@ -2706,6 +2853,291 @@ z.object({
2706
2853
  enabled: z.boolean().optional()
2707
2854
  });
2708
2855
  //#endregion
2856
+ //#region ../../packages/core/src/vault.ts
2857
+ /** One encrypted credential within a connection. */
2858
+ const VAULT_SLOTS = [
2859
+ "oauth2",
2860
+ "api_key",
2861
+ "session",
2862
+ "login"
2863
+ ];
2864
+ const VAULT_CONNECTION_STATUSES = [
2865
+ "active",
2866
+ "reauth_required",
2867
+ "revoked"
2868
+ ];
2869
+ const VAULT_CONNECT_SESSION_MAX_TTL_SECONDS = 86400;
2870
+ /** Ciphertext bound: a `sc1.` blob of a 512 KiB session, with room for base64. */
2871
+ const VAULT_CIPHERTEXT_MAX_CHARS = 819200;
2872
+ /** Never above Browser Run's keep-alive ceiling, whatever a site profile asks for. */
2873
+ const VAULT_LEASE_MAX_MS = 12e5;
2874
+ const VAULT_LEASE_MIN_MS = 1e4;
2875
+ /** Fields `browser.fill` can type from a `login` slot. */
2876
+ const VAULT_FILL_FIELDS = [
2877
+ "username",
2878
+ "password",
2879
+ "totp"
2880
+ ];
2881
+ const VAULT_WEBHOOK_EVENTS = [
2882
+ "connection.ready",
2883
+ "connection.reauth_required",
2884
+ "connection.revoked"
2885
+ ];
2886
+ const base64urlMember = z.string().regex(/^[A-Za-z0-9_-]{43}$/, "not a P-256 coordinate");
2887
+ const vaultPublicJwkSchema = z.object({
2888
+ kty: z.literal("EC"),
2889
+ crv: z.literal("P-256"),
2890
+ x: base64urlMember,
2891
+ y: base64urlMember
2892
+ });
2893
+ const isoInstant = z.iso.datetime({ offset: true });
2894
+ z.object({
2895
+ v: z.literal(1),
2896
+ accessToken: z.string().min(1).max(16384),
2897
+ tokenType: z.literal("Bearer"),
2898
+ accessTokenExpiresAt: isoInstant.optional(),
2899
+ refreshToken: z.string().min(1).max(16384).optional(),
2900
+ refreshTokenExpiresAt: isoInstant.optional(),
2901
+ scope: z.array(z.string().max(512)).max(128),
2902
+ obtainedAt: isoInstant
2903
+ });
2904
+ z.object({
2905
+ v: z.literal(1),
2906
+ key: z.string().min(1).max(8192)
2907
+ });
2908
+ /** RFC 6238 parameters, as an authenticator app would hold them. */
2909
+ const vaultTotpSchema = z.object({
2910
+ /** Base32 (RFC 4648), upper case, no padding, no separators. */
2911
+ secret: z.string().regex(/^[A-Z2-7]{16,128}$/, "TOTP secret must be base32"),
2912
+ digits: z.union([z.literal(6), z.literal(8)]),
2913
+ period: z.number().int().min(15).max(120),
2914
+ algorithm: z.enum([
2915
+ "SHA1",
2916
+ "SHA256",
2917
+ "SHA512"
2918
+ ])
2919
+ });
2920
+ z.object({
2921
+ v: z.literal(1),
2922
+ username: z.string().min(1).max(512),
2923
+ password: z.string().min(1).max(4096),
2924
+ totp: vaultTotpSchema.optional()
2925
+ });
2926
+ const vaultSessionCookieSchema = z.object({
2927
+ name: z.string().min(1).max(4096),
2928
+ value: z.string().max(16384),
2929
+ /** Kept exactly as captured — parent-domain cookies restore to their parent. */
2930
+ domain: z.string().min(1).max(253),
2931
+ path: z.string().min(1).max(4096),
2932
+ /** Unix seconds; -1 ⇒ a session cookie. */
2933
+ expires: z.number(),
2934
+ httpOnly: z.boolean(),
2935
+ secure: z.boolean(),
2936
+ sameSite: z.enum([
2937
+ "Strict",
2938
+ "Lax",
2939
+ "None"
2940
+ ]).optional(),
2941
+ partitionKey: z.unknown().optional()
2942
+ });
2943
+ z.object({
2944
+ v: z.literal(1),
2945
+ siteId: z.string().min(1).max(64),
2946
+ capturedAt: isoInstant,
2947
+ userAgent: z.string().max(1024),
2948
+ cookies: z.array(vaultSessionCookieSchema).max(4096),
2949
+ /** origin → key → value. */
2950
+ localStorage: z.record(z.string(), z.record(z.string(), z.string()))
2951
+ });
2952
+ const vaultProviderIdSchema = z.string().trim().min(1).max(64).regex(/^[a-z0-9][a-z0-9._-]*$/, "provider ids are lowercase letters, digits, dots and dashes");
2953
+ /**
2954
+ * What the dashboard, Connect and the SDK may know about a provider: its name,
2955
+ * its method, and — for the consent screen — a plain sentence about what the
2956
+ * agent will be able to do. Never the rules, the endpoints or the injection:
2957
+ * those are compiled into the executor and the API must not be able to serve a
2958
+ * different version of them.
2959
+ */
2960
+ const vaultCatalogProviderSchema = z.object({
2961
+ id: vaultProviderIdSchema,
2962
+ displayName: z.string().trim().min(1).max(80),
2963
+ method: z.enum(["oauth2", "api_key"]),
2964
+ /** The one sentence Connect shows: "read and send email as you". */
2965
+ consentSummary: z.string().trim().min(1).max(240),
2966
+ /** Hosts the executor will forward to, for display. */
2967
+ hosts: z.array(z.string().trim().min(1).max(253)).max(64).default([]),
2968
+ /** Where the end user finds the key (api_key providers). */
2969
+ helpUrl: z.url().max(2048).optional(),
2970
+ /** Label for the key field (api_key providers), e.g. "API key". */
2971
+ keyLabel: z.string().trim().min(1).max(60).optional(),
2972
+ /** OAuth scopes the provider will be asked for (oauth2 providers), for display. */
2973
+ scopes: z.array(z.string().trim().min(1).max(512)).max(64).optional()
2974
+ });
2975
+ const vaultCatalogSiteSchema = z.object({
2976
+ id: vaultProviderIdSchema,
2977
+ displayName: z.string().trim().min(1).max(80),
2978
+ consentSummary: z.string().trim().min(1).max(240),
2979
+ /** Origins the login form must live on (shown so the person can check). */
2980
+ loginOrigins: z.array(z.url().max(2048)).max(16).default([]),
2981
+ /** Where a restored session lands, for display. */
2982
+ startUrl: z.url().max(2048).optional()
2983
+ });
2984
+ const vaultCatalogSchema = z.object({
2985
+ v: z.literal(1),
2986
+ providers: z.array(vaultCatalogProviderSchema).max(200).default([]),
2987
+ sites: z.array(vaultCatalogSiteSchema).max(200).default([])
2988
+ });
2989
+ const vaultDisplaySchema = z.object({
2990
+ /** The platform's name as its users know it: "Instinct", not "instinct-prod". */
2991
+ name: z.string().trim().min(1).max(80),
2992
+ logoUrl: z.url().max(2048).startsWith("https://").optional(),
2993
+ /** `#rrggbb`. */
2994
+ accent: z.string().regex(/^#[0-9a-fA-F]{6}$/, "accent must be a #rrggbb colour").optional(),
2995
+ /** Origins a `returnUrl` may point at. Exact-match, scheme + host (+ port). */
2996
+ returnOrigins: z.array(z.url().max(2048)).max(16).default([])
2997
+ });
2998
+ z.object({
2999
+ name: nameSchema,
3000
+ display: vaultDisplaySchema.optional()
3001
+ });
3002
+ z.object({
3003
+ name: nameSchema.optional(),
3004
+ display: vaultDisplaySchema.optional(),
3005
+ status: z.enum(["active", "disabled"]).optional()
3006
+ });
3007
+ z.object({ name: nameSchema });
3008
+ /**
3009
+ * The platform's opaque identifier for its end user. Stored as given and
3010
+ * returned as given. It must not be an email address or anything else that
3011
+ * identifies the person outside the platform: the person has no seekrit
3012
+ * account, and this is the one field about them Vault holds in the clear.
3013
+ */
3014
+ const vaultUserRefSchema = z.string().trim().min(1).max(200).refine((v) => !/\s/.test(v), { message: "userRef must not contain whitespace" }).refine((v) => !/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(v), { message: "userRef must be an opaque identifier, not an email address" });
3015
+ z.object({
3016
+ userRef: vaultUserRefSchema,
3017
+ providerId: vaultProviderIdSchema,
3018
+ purpose: z.enum(["connect", "reconnect"]).default("connect"),
3019
+ /** Required for `reconnect`: the connection being repaired. */
3020
+ connectionId: z.string().trim().min(1).max(64).optional(),
3021
+ /** Where the done screen may send the person. Must match a registered origin. */
3022
+ returnUrl: z.url().max(2048).optional(),
3023
+ expiresInSeconds: z.number().int().min(60).max(VAULT_CONNECT_SESSION_MAX_TTL_SECONDS).optional()
3024
+ });
3025
+ z.object({
3026
+ userRef: vaultUserRefSchema,
3027
+ returnUrl: z.url().max(2048).optional(),
3028
+ expiresInSeconds: z.number().int().min(60).max(VAULT_CONNECT_SESSION_MAX_TTL_SECONDS).optional()
3029
+ });
3030
+ z.object({
3031
+ url: z.url().max(2048).refine((u) => u.startsWith("https://"), "webhook URLs must be https"),
3032
+ /** Defaults to every event. */
3033
+ events: z.array(z.enum(VAULT_WEBHOOK_EVENTS)).min(1).max(VAULT_WEBHOOK_EVENTS.length).optional(),
3034
+ description: z.string().trim().max(200).optional()
3035
+ });
3036
+ z.object({
3037
+ userRef: vaultUserRefSchema.optional(),
3038
+ status: z.enum(VAULT_CONNECTION_STATUSES).optional(),
3039
+ cursor: z.string().max(200).optional(),
3040
+ limit: z.coerce.number().int().min(1).max(200).default(50)
3041
+ });
3042
+ /** An `https://host[:port]` origin with nothing after it; `http://localhost` in dev. */
3043
+ const vaultOriginSchema = z.string().trim().max(2048).refine((v) => {
3044
+ let url;
3045
+ try {
3046
+ url = new URL(v);
3047
+ } catch {
3048
+ return false;
3049
+ }
3050
+ if (url.origin !== v) return false;
3051
+ if (url.protocol === "https:") return true;
3052
+ return url.protocol === "http:" && [
3053
+ "localhost",
3054
+ "127.0.0.1",
3055
+ "[::1]"
3056
+ ].includes(url.hostname);
3057
+ }, { message: "must be an https origin (scheme + host, nothing else)" });
3058
+ const vaultWrappingKeySchema = z.object({
3059
+ jwk: vaultPublicJwkSchema,
3060
+ thumbprint: z.string().regex(/^[A-Za-z0-9_-]{43}$/)
3061
+ });
3062
+ z.object({
3063
+ code: z.string().trim().min(16).max(200),
3064
+ origin: vaultOriginSchema,
3065
+ wrappingKey: vaultWrappingKeySchema,
3066
+ catalog: vaultCatalogSchema,
3067
+ sdkVersion: z.string().trim().min(1).max(40)
3068
+ });
3069
+ z.object({
3070
+ catalog: vaultCatalogSchema,
3071
+ sdkVersion: z.string().trim().min(1).max(40)
3072
+ });
3073
+ z.object({ wrappingKey: vaultWrappingKeySchema });
3074
+ /** One encrypted slot, as produced by Connect or the executor. */
3075
+ const vaultEncryptedSlotSchema = z.object({
3076
+ slot: z.enum(VAULT_SLOTS),
3077
+ revision: z.number().int().min(1),
3078
+ ciphertext: z.string().startsWith("sc1.").max(VAULT_CIPHERTEXT_MAX_CHARS),
3079
+ wrappedDek: z.string().startsWith("wd1.").max(2048),
3080
+ keyThumbprint: z.string().regex(/^[A-Za-z0-9_-]{43}$/)
3081
+ });
3082
+ z.object({
3083
+ slots: z.array(vaultEncryptedSlotSchema).min(1).max(2),
3084
+ /** "ava@example.com" / "@ava" — shown to the platform and the org, never used for auth. */
3085
+ accountLabel: z.string().trim().min(1).max(200).optional()
3086
+ });
3087
+ z.object({
3088
+ /** The revision the writer read; the write lands as `expectedRevision + 1`. */
3089
+ expectedRevision: z.number().int().min(0),
3090
+ ciphertext: z.string().startsWith("sc1.").max(VAULT_CIPHERTEXT_MAX_CHARS),
3091
+ wrappedDek: z.string().startsWith("wd1.").max(2048),
3092
+ keyThumbprint: z.string().regex(/^[A-Za-z0-9_-]{43}$/)
3093
+ });
3094
+ z.discriminatedUnion("status", [z.object({
3095
+ status: z.literal("reauth_required"),
3096
+ reason: z.string().trim().min(1).max(120)
3097
+ }), z.object({ status: z.literal("active") })]);
3098
+ z.object({ claimToken: z.string().min(16).max(200) });
3099
+ z.object({ token: z.string().min(16).max(200) });
3100
+ z.object({ consentVersion: z.literal(1) });
3101
+ z.object({ connectionId: z.string().trim().min(1).max(64) });
3102
+ z.object({
3103
+ login: vaultEncryptedSlotSchema.refine((slot) => slot.slot === "login", "must be the login slot").optional(),
3104
+ accountLabel: z.string().trim().min(1).max(200).optional()
3105
+ });
3106
+ z.object({
3107
+ userRef: vaultUserRefSchema,
3108
+ connectionId: z.string().trim().min(1).max(64),
3109
+ request: z.object({
3110
+ method: z.string().trim().toUpperCase().regex(/^[A-Z]{3,10}$/),
3111
+ url: z.url().max(8192),
3112
+ headers: z.record(z.string().max(256), z.string().max(16384)).optional(),
3113
+ /** UTF-8 text. Binary bodies are out of scope for V1. */
3114
+ body: z.string().max(4194304).optional()
3115
+ })
3116
+ });
3117
+ const connectionIdSchema = z.string().trim().min(1).max(64);
3118
+ const leaseIdSchema = z.string().trim().min(1).max(64);
3119
+ z.object({
3120
+ userRef: vaultUserRefSchema,
3121
+ connectionId: connectionIdSchema,
3122
+ /** How long the agent may hold the browser. Clamped to the site's ceiling. */
3123
+ keepAliveMs: z.number().int().min(VAULT_LEASE_MIN_MS).max(VAULT_LEASE_MAX_MS).optional()
3124
+ });
3125
+ z.object({
3126
+ userRef: vaultUserRefSchema,
3127
+ leaseId: leaseIdSchema,
3128
+ field: z.enum(VAULT_FILL_FIELDS)
3129
+ });
3130
+ z.object({
3131
+ userRef: vaultUserRefSchema,
3132
+ leaseId: leaseIdSchema,
3133
+ /** Write the rotated session back (default). `false` drops the browser without saving. */
3134
+ save: z.boolean().default(true)
3135
+ });
3136
+ z.object({
3137
+ userRef: vaultUserRefSchema,
3138
+ leaseId: leaseIdSchema
3139
+ });
3140
+ //#endregion
2709
3141
  //#region ../../packages/crypto/src/encoding.ts
2710
3142
  const CHUNK = 32768;
2711
3143
  /** Base64url (no padding) — portable across browsers, Workers, and Node. */
@@ -3375,7 +3807,7 @@ function isServiceToken(value) {
3375
3807
  }
3376
3808
  //#endregion
3377
3809
  //#region ../cli/package.json
3378
- var version$1 = "1.6.5";
3810
+ var version$1 = "1.9.2";
3379
3811
  const PROJECT_FILE = "seekrit.json";
3380
3812
  function globalConfigPath() {
3381
3813
  return join(process.env.XDG_CONFIG_HOME ?? join(homedir(), ".config"), "seekrit", "config.json");
@@ -3427,6 +3859,15 @@ function writeProjectConfig(config, dir = process.cwd()) {
3427
3859
  }
3428
3860
  //#endregion
3429
3861
  //#region ../../packages/api-client/src/index.ts
3862
+ /**
3863
+ * The proposer's note travels as a header, not a body field: an unprotected
3864
+ * environment ignores it, so the same call works either way and no caller has
3865
+ * to know in advance whether a write will be queued.
3866
+ */
3867
+ function changeNoteHeader(note) {
3868
+ const trimmed = note?.trim();
3869
+ return trimmed ? { "x-seekrit-change-note": trimmed } : void 0;
3870
+ }
3430
3871
  var SeekritApiError = class extends Error {
3431
3872
  status;
3432
3873
  code;
@@ -3448,8 +3889,11 @@ var SeekritClient = class {
3448
3889
  this.fetchImpl = options.fetch ?? ((...args) => fetch(...args));
3449
3890
  this.client = options.client;
3450
3891
  }
3451
- async request(method, path, body) {
3452
- const headers = { accept: "application/json" };
3892
+ async request(method, path, body, extraHeaders) {
3893
+ const headers = {
3894
+ accept: "application/json",
3895
+ ...extraHeaders
3896
+ };
3453
3897
  if (this.client) headers["x-seekrit-client"] = this.client;
3454
3898
  if (this.auth.type === "bearer") headers.authorization = `Bearer ${this.auth.token}`;
3455
3899
  else if (this.auth.type === "dynamic") {
@@ -3664,11 +4108,21 @@ var SeekritClient = class {
3664
4108
  listSecrets(orgId, envId) {
3665
4109
  return this.request("GET", `/v1/orgs/${orgId}/envs/${envId}/secrets`);
3666
4110
  }
3667
- setSecret(orgId, envId, name, ciphertext) {
3668
- return this.request("PUT", `/v1/orgs/${orgId}/envs/${envId}/secrets/${name}`, { ciphertext });
4111
+ /**
4112
+ * Store a ciphertext. In a **protected** environment this does not write: the
4113
+ * server queues the change for review and answers `{ queued: true,
4114
+ * changeRequest }` (HTTP 202). Callers must branch on `queued` — reporting
4115
+ * success on a queued change tells someone a secret rotated when it has not.
4116
+ *
4117
+ * `note` is the proposer's explanation, carried as a header so it is simply
4118
+ * ignored by an unprotected environment.
4119
+ */
4120
+ setSecret(orgId, envId, name, ciphertext, note) {
4121
+ return this.request("PUT", `/v1/orgs/${orgId}/envs/${envId}/secrets/${name}`, { ciphertext }, changeNoteHeader(note));
3669
4122
  }
3670
- deleteSecret(orgId, envId, name) {
3671
- return this.request("DELETE", `/v1/orgs/${orgId}/envs/${envId}/secrets/${name}`);
4123
+ /** Queued for review in a protected environment — see {@link setSecret}. */
4124
+ deleteSecret(orgId, envId, name, note) {
4125
+ return this.request("DELETE", `/v1/orgs/${orgId}/envs/${envId}/secrets/${name}`, void 0, changeNoteHeader(note));
3672
4126
  }
3673
4127
  /** A secret's append-only history, newest version first. */
3674
4128
  listSecretVersions(orgId, envId, name, query = {}) {
@@ -3680,8 +4134,45 @@ var SeekritClient = class {
3680
4134
  * ciphertext it already stores, so this appends a new version rather than
3681
4135
  * rewinding, and needs no DEK on the caller's side.
3682
4136
  */
3683
- restoreSecret(orgId, envId, name, version) {
3684
- return this.request("POST", `/v1/orgs/${orgId}/envs/${envId}/secrets/${name}/restore`, { version });
4137
+ restoreSecret(orgId, envId, name, version, note) {
4138
+ return this.request("POST", `/v1/orgs/${orgId}/envs/${envId}/secrets/${name}/restore`, { version }, changeNoteHeader(note));
4139
+ }
4140
+ /** An environment's protection settings, plus how many changes are waiting. */
4141
+ getEnvironmentProtection(orgId, envId) {
4142
+ return this.request("GET", `/v1/orgs/${orgId}/envs/${envId}/protection`);
4143
+ }
4144
+ /** Protect an environment, or change its settings. Admin only. */
4145
+ setEnvironmentProtection(orgId, envId, input = {}) {
4146
+ return this.request("PUT", `/v1/orgs/${orgId}/envs/${envId}/protection`, input);
4147
+ }
4148
+ /** Take the gate down. Queued changes stay queued. Admin only. */
4149
+ deleteEnvironmentProtection(orgId, envId) {
4150
+ return this.request("DELETE", `/v1/orgs/${orgId}/envs/${envId}/protection`);
4151
+ }
4152
+ listChangeRequests(orgId, query = {}) {
4153
+ const params = new URLSearchParams();
4154
+ if (query.status) params.set("status", query.status);
4155
+ if (query.envId) params.set("envId", query.envId);
4156
+ if (query.limit) params.set("limit", String(query.limit));
4157
+ const qs = params.size > 0 ? `?${params}` : "";
4158
+ return this.request("GET", `/v1/orgs/${orgId}/change-requests${qs}`);
4159
+ }
4160
+ getChangeRequest(orgId, id) {
4161
+ return this.request("GET", `/v1/orgs/${orgId}/change-requests/${id}`);
4162
+ }
4163
+ /**
4164
+ * Approve. When this is the approval that meets the threshold the change is
4165
+ * applied in the same call, so `status` comes back `applied` — or
4166
+ * `superseded`, if the secret moved on since the change was proposed.
4167
+ */
4168
+ approveChangeRequest(orgId, id, comment) {
4169
+ return this.request("POST", `/v1/orgs/${orgId}/change-requests/${id}/approve`, { comment });
4170
+ }
4171
+ rejectChangeRequest(orgId, id, comment) {
4172
+ return this.request("POST", `/v1/orgs/${orgId}/change-requests/${id}/reject`, { comment });
4173
+ }
4174
+ withdrawChangeRequest(orgId, id) {
4175
+ return this.request("POST", `/v1/orgs/${orgId}/change-requests/${id}/withdraw`);
3685
4176
  }
3686
4177
  /** The calling principal's wrapped DEK for this environment. */
3687
4178
  getMyEnvKey(orgId, envId) {
@@ -4102,6 +4593,52 @@ var SeekritClient = class {
4102
4593
  redeemPromoCode(orgId, input) {
4103
4594
  return this.request("POST", `/v1/orgs/${orgId}/billing/promo`, input);
4104
4595
  }
4596
+ listVaultProjects(orgId) {
4597
+ return this.request("GET", `/v1/orgs/${orgId}/vault/projects`);
4598
+ }
4599
+ createVaultProject(orgId, input) {
4600
+ return this.request("POST", `/v1/orgs/${orgId}/vault/projects`, input);
4601
+ }
4602
+ getVaultProject(orgId, projectId) {
4603
+ return this.request("GET", `/v1/orgs/${orgId}/vault/projects/${projectId}`);
4604
+ }
4605
+ updateVaultProject(orgId, projectId, input) {
4606
+ return this.request("PATCH", `/v1/orgs/${orgId}/vault/projects/${projectId}`, input);
4607
+ }
4608
+ /**
4609
+ * Mint a platform key. The `secret` is the `skv_…` string, returned exactly
4610
+ * once; the server keeps only its hash. Needs a browser session with a fresh
4611
+ * second factor — the API answers `mfa_required` otherwise.
4612
+ */
4613
+ createVaultPlatformKey(orgId, projectId, input) {
4614
+ return this.request("POST", `/v1/orgs/${orgId}/vault/projects/${projectId}/keys`, input);
4615
+ }
4616
+ revokeVaultPlatformKey(orgId, projectId, keyId) {
4617
+ return this.request("DELETE", `/v1/orgs/${orgId}/vault/projects/${projectId}/keys/${keyId}`);
4618
+ }
4619
+ /** A one-time executor registration code (10 minutes). Same step-up rule as a key. */
4620
+ createVaultRegistrationCode(orgId, projectId) {
4621
+ return this.request("POST", `/v1/orgs/${orgId}/vault/projects/${projectId}/registration-codes`);
4622
+ }
4623
+ disableVaultExecutor(orgId, projectId) {
4624
+ return this.request("POST", `/v1/orgs/${orgId}/vault/projects/${projectId}/executor/disable`);
4625
+ }
4626
+ listVaultConnections(orgId, projectId, query = {}) {
4627
+ const params = new URLSearchParams();
4628
+ for (const [key, value] of Object.entries(query)) if (value !== void 0 && value !== "") params.set(key, String(value));
4629
+ const qs = params.toString();
4630
+ return this.request("GET", `/v1/orgs/${orgId}/vault/projects/${projectId}/connections${qs ? `?${qs}` : ""}`);
4631
+ }
4632
+ revokeVaultConnection(orgId, projectId, connectionId) {
4633
+ return this.request("POST", `/v1/orgs/${orgId}/vault/projects/${projectId}/connections/${connectionId}/revoke`);
4634
+ }
4635
+ /** Webhook endpoints a platform registered with its key; the dashboard reads and removes. */
4636
+ listVaultWebhooks(orgId, projectId) {
4637
+ return this.request("GET", `/v1/orgs/${orgId}/vault/projects/${projectId}/webhooks`);
4638
+ }
4639
+ deleteVaultWebhook(orgId, projectId, webhookId) {
4640
+ return this.request("DELETE", `/v1/orgs/${orgId}/vault/projects/${projectId}/webhooks/${webhookId}`);
4641
+ }
4105
4642
  };
4106
4643
  //#endregion
4107
4644
  //#region ../cli/src/io.ts
@@ -4233,6 +4770,32 @@ async function getDek(ctx, orgId, envId) {
4233
4770
  return unwrapDek(wrappedDek, privateKey);
4234
4771
  }
4235
4772
  //#endregion
4773
+ //#region ../cli/src/group-sync-grants.ts
4774
+ /** Wrap a newly composed group layer for connections already syncing the app env or its branches. */
4775
+ async function syncGrantsForGroupLink(ctx, orgId, envId, envSlug, groupId) {
4776
+ const [{ groups }, { bindings }, { branches }] = await Promise.all([
4777
+ ctx.client.listEnvGroups(orgId, envId),
4778
+ ctx.client.listSyncBindings(orgId),
4779
+ ctx.client.listBranches(orgId, envId)
4780
+ ]);
4781
+ if (groups.some((group) => group.groupId === groupId)) return void 0;
4782
+ const targets = /* @__PURE__ */ new Set([envId, ...branches.map((branch) => branch.id)]);
4783
+ const connectionIds = new Set(bindings.filter((binding) => targets.has(binding.environmentId)).map((b) => b.connectionId));
4784
+ if (connectionIds.size === 0) return void 0;
4785
+ const [{ environments }, { connections }] = await Promise.all([ctx.client.listGroupEnvs(orgId, groupId), ctx.client.listSyncConnections(orgId)]);
4786
+ const groupEnv = environments.find((entry) => entry.slug === envSlug);
4787
+ if (!groupEnv) fail(`create a ${envSlug} environment in this group before composing it`);
4788
+ const dek = await getDek(ctx, orgId, groupEnv.id);
4789
+ return Promise.all([...connectionIds].map(async (connectionId) => {
4790
+ const connection = connections.find((entry) => entry.id === connectionId);
4791
+ if (!connection) fail("a sync connection could not be found; refresh and retry");
4792
+ return {
4793
+ connectionId,
4794
+ wrappedDek: await wrapDek(dek, connection.publicKeyJwk)
4795
+ };
4796
+ }));
4797
+ }
4798
+ //#endregion
4236
4799
  //#region ../cli/src/target.ts
4237
4800
  /** Resolve the target org from a flag, the committed config, or a lone org. */
4238
4801
  async function resolveOrg(ctx, orgSlug) {
@@ -4588,9 +5151,15 @@ async function fetchDecryptedVersion(ctx, orgId, envId, name, version) {
4588
5151
  if (!row) fail(`${name} has no version ${version} in its ${versions.length} newest versions`);
4589
5152
  return decryptSecret(dek, row.ciphertext, secretAad(envId, name));
4590
5153
  }
4591
- async function encryptAndSetSecret(ctx, orgId, envId, name, value) {
5154
+ /**
5155
+ * Encrypt and store one value. Returns the change request when the environment
5156
+ * is protected and the write was queued instead of stored — callers must say so
5157
+ * rather than reporting a write that has not happened.
5158
+ */
5159
+ async function encryptAndSetSecret(ctx, orgId, envId, name, value, note) {
4592
5160
  const ciphertext = await encryptSecret(await getDek(ctx, orgId, envId), value, secretAad(envId, name));
4593
- await ctx.client.setSecret(orgId, envId, name, ciphertext);
5161
+ const result = await ctx.client.setSecret(orgId, envId, name, ciphertext, note);
5162
+ return result.queued ? result.changeRequest : null;
4594
5163
  }
4595
5164
  /**
4596
5165
  * Resolve the full, layered environment for a running app: composed group
@@ -5307,9 +5876,11 @@ async function runMcpServer(options = {}) {
5307
5876
  org,
5308
5877
  group
5309
5878
  });
5879
+ const syncGrants = await syncGrantsForGroupLink(ctx, target.orgId, target.envId, target.envSlug, g.id);
5310
5880
  return (await ctx.client.linkEnvGroup(target.orgId, target.envId, {
5311
5881
  groupId: g.id,
5312
- position
5882
+ position,
5883
+ syncGrants
5313
5884
  })).group;
5314
5885
  });
5315
5886
  tool("uncompose_group", "Remove a composed group from an application environment.", { idempotent: true }, {
@@ -5331,16 +5902,23 @@ async function runMcpServer(options = {}) {
5331
5902
  await ctx.client.unlinkEnvGroup(target.orgId, target.envId, g.id);
5332
5903
  return { ok: true };
5333
5904
  });
5334
- tool("set_secret", "Encrypt a value locally and store it in an environment. A value may reference another secret as ${OTHER_SECRET}: the reference is stored literally and expanded whenever the secret is read, so it tracks the referenced value. Write $${OTHER_SECRET} for a literal.", { idempotent: false }, {
5905
+ tool("set_secret", "Encrypt a value locally and store it in an environment. A value may reference another secret as ${OTHER_SECRET}: the reference is stored literally and expanded whenever the secret is read, so it tracks the referenced value. Write $${OTHER_SECRET} for a literal. If the environment requires approval the write is QUEUED, not stored: the result carries queued:true and a changeRequestId, and the secret keeps its old value until a human approves.", { idempotent: false }, {
5335
5906
  ...targetShape,
5336
5907
  name: z.string(),
5337
- value: z.string()
5908
+ value: z.string(),
5909
+ note: z.string().optional()
5338
5910
  }, async (o) => {
5339
5911
  const ctx = getCtx();
5340
5912
  ensureDecryptable(ctx);
5341
5913
  const { orgId, envId } = await resolveEnvTarget(ctx, o);
5342
- await encryptAndSetSecret(ctx, orgId, envId, o.name, o.value);
5343
- return {
5914
+ const queued = await encryptAndSetSecret(ctx, orgId, envId, o.name, o.value, o.note);
5915
+ return queued ? {
5916
+ ok: true,
5917
+ queued: true,
5918
+ name: o.name,
5919
+ changeRequestId: queued.id,
5920
+ requiredApprovals: queued.requiredApprovals
5921
+ } : {
5344
5922
  ok: true,
5345
5923
  name: o.name
5346
5924
  };
@@ -5403,26 +5981,38 @@ async function runMcpServer(options = {}) {
5403
5981
  tool("restore_secret", "Roll a secret back to an earlier version. The stored ciphertext is replayed as a NEW version (history is append-only, nothing is overwritten). Keyless — no decryption happens, so this works even without a key.", { idempotent: false }, {
5404
5982
  ...targetShape,
5405
5983
  name: z.string(),
5406
- version: z.number().int().positive()
5984
+ version: z.number().int().positive(),
5985
+ note: z.string().optional()
5407
5986
  }, async (o) => {
5408
5987
  const ctx = getCtx();
5409
5988
  const { orgId, envId } = await resolveEnvTarget(ctx, o);
5410
- const { secret, restoredFrom } = await ctx.client.restoreSecret(orgId, envId, o.name, o.version);
5411
- return {
5989
+ const result = await ctx.client.restoreSecret(orgId, envId, o.name, o.version, o.note);
5990
+ return result.queued ? {
5991
+ ok: true,
5992
+ queued: true,
5993
+ name: o.name,
5994
+ changeRequestId: result.changeRequest.id
5995
+ } : {
5412
5996
  ok: true,
5413
5997
  name: o.name,
5414
- restoredFrom,
5415
- version: secret.version
5998
+ restoredFrom: result.restoredFrom,
5999
+ version: result.secret.version
5416
6000
  };
5417
6001
  });
5418
6002
  tool("delete_secret", "Delete a secret from an environment.", destructive, {
5419
6003
  ...targetShape,
5420
- name: z.string()
6004
+ name: z.string(),
6005
+ note: z.string().optional()
5421
6006
  }, async (o) => {
5422
6007
  const ctx = getCtx();
5423
6008
  const { orgId, envId } = await resolveEnvTarget(ctx, o);
5424
- await ctx.client.deleteSecret(orgId, envId, o.name);
5425
- return {
6009
+ const removed = await ctx.client.deleteSecret(orgId, envId, o.name, o.note);
6010
+ return removed.queued ? {
6011
+ ok: true,
6012
+ queued: true,
6013
+ name: o.name,
6014
+ changeRequestId: removed.changeRequest.id
6015
+ } : {
5426
6016
  ok: true,
5427
6017
  name: o.name
5428
6018
  };
@@ -5721,7 +6311,7 @@ async function runMcpServer(options = {}) {
5721
6311
  * `seekrit mcp`. tsdown bundles the shared server source in at build time, so the
5722
6312
  * published package is self-contained and needs no `@seekrit/cli` install.
5723
6313
  */
5724
- runMcpServer({ version: "0.8.5" }).catch((err) => {
6314
+ runMcpServer({ version: "0.8.6" }).catch((err) => {
5725
6315
  const message = err instanceof Error ? err.message : String(err);
5726
6316
  process.stderr.write(`seekrit-mcp: fatal: ${message}\n`);
5727
6317
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekrit/mcp",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "description": "npx-able MCP server for seekrit — let Claude Code and other MCP clients provision, manage, and inject end-to-end encrypted secrets.",
5
5
  "mcpName": "dev.seekrit/mcp",
6
6
  "type": "module",
@@ -17,14 +17,14 @@
17
17
  "node": ">=20"
18
18
  },
19
19
  "dependencies": {
20
- "@modelcontextprotocol/sdk": "^1.30.0",
21
- "zod": "^4.6.2"
20
+ "@modelcontextprotocol/sdk": "^1.30.1",
21
+ "zod": "^4.6.5"
22
22
  },
23
23
  "devDependencies": {
24
- "@types/node": "^26.5.1",
24
+ "@types/node": "^26.6.1",
25
25
  "tsdown": "^0.23.0",
26
- "vitest": "^4.1.11",
27
- "@seekrit/cli": "1.6.5"
26
+ "vitest": "^5.0.1",
27
+ "@seekrit/cli": "1.9.2"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "tsdown",