@seekrit/mcp 0.8.3 → 0.8.4

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 +11 -11
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ z.object({
27
27
  });
28
28
  z.object({
29
29
  /** `ap1.<body>.<signature>` — opaque to the server. */
30
- bundle: z.string().min(16).max(256 * 1024) });
30
+ bundle: z.string().min(16).max(262144) });
31
31
  z.object({
32
32
  name: z.string().trim().min(1).max(120),
33
33
  slug: z.string().trim().min(1).max(64).regex(/^[a-z0-9][a-z0-9-]*$/, "slug is lowercase letters, digits, and dashes"),
@@ -92,7 +92,7 @@ z.object({
92
92
  * to bound one run; something that needs longer wants a policy change, not a
93
93
  * longer ticket.
94
94
  */
95
- const TASK_MAX_TTL_SECONDS = 720 * 60;
95
+ const TASK_MAX_TTL_SECONDS = 43200;
96
96
  /** An EC P-256 public JWK, for a sender-constraint proof key. */
97
97
  const taskProofJwkSchema = z.object({
98
98
  kty: z.literal("EC"),
@@ -425,7 +425,7 @@ const SUBSCRIPTION_STATUSES = [
425
425
  * composition (matched by slug) and have no single parent to overlay.
426
426
  */
427
427
  /** Longest life a branch may be given. Bounds sprawl even if nobody cleans up. */
428
- const MAX_BRANCH_TTL_SECONDS = 720 * 60 * 60;
428
+ const MAX_BRANCH_TTL_SECONDS = 2592e3;
429
429
  /**
430
430
  * Parse a human TTL — `30m`, `12h`, `7d`, `2w`, or bare seconds — into seconds.
431
431
  * Returns null for anything unparseable, so callers can report the input back.
@@ -879,13 +879,13 @@ const sshTargetConfigSchema = z.object({
879
879
  caPublicKey: sshPublicKeySchema,
880
880
  allowedPrincipals: z.array(sshPrincipalSchema).max(64).optional(),
881
881
  extensions: z.array(sshExtensionSchema).max(16).optional(),
882
- maxTtlSeconds: z.number().int().min(60).max(3600 * 24 * 7).optional(),
882
+ maxTtlSeconds: z.number().int().min(60).max(604800).optional(),
883
883
  connection: z.object({
884
884
  host: z.string().min(1).optional(),
885
885
  user: sshPrincipalSchema.optional()
886
886
  }).optional()
887
887
  });
888
- const AWS_MAX_TTL_SECONDS = 3600 * 12;
888
+ const AWS_MAX_TTL_SECONDS = 43200;
889
889
  const awsTargetConfigSchema = z.object({
890
890
  provider: z.literal("aws"),
891
891
  executor: z.literal("in_do"),
@@ -895,7 +895,7 @@ const awsTargetConfigSchema = z.object({
895
895
  sessionPolicy: z.string().min(1).max(4e3).optional(),
896
896
  maxTtlSeconds: z.number().int().min(900).max(AWS_MAX_TTL_SECONDS).optional()
897
897
  });
898
- const GCP_MAX_TTL_SECONDS = 3600 * 12;
898
+ const GCP_MAX_TTL_SECONDS = 43200;
899
899
  const gcpTargetConfigSchema = z.object({
900
900
  provider: z.literal("gcp"),
901
901
  executor: z.literal("in_do"),
@@ -912,7 +912,7 @@ const mongoTargetConfigSchema = z.object({
912
912
  authSource: mongoDatabaseNameSchema.optional(),
913
913
  roles: z.array(mongoRoleSchema).min(1).max(32).optional(),
914
914
  tls: z.boolean().optional(),
915
- maxTtlSeconds: z.number().int().min(60).max(3600 * 24 * 7).optional()
915
+ maxTtlSeconds: z.number().int().min(60).max(604800).optional()
916
916
  });
917
917
  const leaseTargetConfigSchema = z.discriminatedUnion("provider", [
918
918
  postgresTargetConfigSchema,
@@ -934,7 +934,7 @@ z.object({
934
934
  wrappedAdminSecret: z.string().min(1)
935
935
  });
936
936
  /** Requested lease lifetime, shared by all providers. */
937
- const ttlSecondsSchema = z.number().int().min(60).max(3600 * 24 * 7);
937
+ const ttlSecondsSchema = z.number().int().min(60).max(604800);
938
938
  /**
939
939
  * Client → API: mint a Postgres lease. The client generates the password and
940
940
  * its SCRAM verifier locally and sends only the verifier — the plaintext
@@ -1357,7 +1357,7 @@ const rotationAlphabetSchema = z.enum([
1357
1357
  "base64url",
1358
1358
  "printable"
1359
1359
  ]);
1360
- const rotationIntervalSchema = z.number().int().min(300).max(3600 * 24 * 365);
1360
+ const rotationIntervalSchema = z.number().int().min(300).max(31536e3);
1361
1361
  /**
1362
1362
  * A database user name we are willing to *re-key*. Deliberately more permissive
1363
1363
  * than the lease providers' name schemas — those name accounts seekrit creates,
@@ -3375,7 +3375,7 @@ function isServiceToken(value) {
3375
3375
  }
3376
3376
  //#endregion
3377
3377
  //#region ../cli/package.json
3378
- var version$1 = "1.6.3";
3378
+ var version$1 = "1.6.4";
3379
3379
  const PROJECT_FILE = "seekrit.json";
3380
3380
  function globalConfigPath() {
3381
3381
  return join(process.env.XDG_CONFIG_HOME ?? join(homedir(), ".config"), "seekrit", "config.json");
@@ -5721,7 +5721,7 @@ async function runMcpServer(options = {}) {
5721
5721
  * `seekrit mcp`. tsdown bundles the shared server source in at build time, so the
5722
5722
  * published package is self-contained and needs no `@seekrit/cli` install.
5723
5723
  */
5724
- runMcpServer({ version: "0.8.3" }).catch((err) => {
5724
+ runMcpServer({ version: "0.8.4" }).catch((err) => {
5725
5725
  const message = err instanceof Error ? err.message : String(err);
5726
5726
  process.stderr.write(`seekrit-mcp: fatal: ${message}\n`);
5727
5727
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekrit/mcp",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
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",
@@ -22,9 +22,9 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/node": "^26.5.1",
25
- "tsdown": "^0.22.3",
25
+ "tsdown": "^0.23.0",
26
26
  "vitest": "^4.1.11",
27
- "@seekrit/cli": "1.6.3"
27
+ "@seekrit/cli": "1.6.4"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "tsdown",