@viberaven/mcp 1.7.6 → 1.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,7 +13,7 @@ Requires Node.js 20 or newer. Transport is **stdio**. Adapt this example to your
13
13
  "mcpServers": {
14
14
  "viberaven": {
15
15
  "command": "npx",
16
- "args": ["-y", "@viberaven/mcp@1.6.12"]
16
+ "args": ["-y", "@viberaven/mcp"]
17
17
  }
18
18
  }
19
19
  }
@@ -26,7 +26,7 @@ On Windows, hosts launching executables directly can use:
26
26
  "mcpServers": {
27
27
  "viberaven": {
28
28
  "command": "cmd.exe",
29
- "args": ["/d", "/s", "/c", "npx", "-y", "@viberaven/mcp@1.6.12"]
29
+ "args": ["/d", "/s", "/c", "npx", "-y", "@viberaven/mcp"]
30
30
  }
31
31
  }
32
32
  }
@@ -89,11 +89,11 @@ The `rls_disabled` migration enables RLS without policies; browser roles lose ro
89
89
 
90
90
  Readiness prints a summary. Read `gate-result.json` or call `viberaven_gate_result`/`viberaven_strict_gate` for full `gate.status`.
91
91
 
92
- Default check allows warnings: 0 without critical blockers, 1 with blockers, 2 on scan error. Strict gate returns 0 for `clear`/`warning`, 1 for `not_clear`, 2 for `error`, 3 for `unknown` or unavailable results. For warning failures, run `npx -y viberaven@1.6.12 --strict=warning --json` from the app root. Unrestricted SELECT can be intentional public content and is a default warning; focused audit returns 1 for any status other than `pass`.
92
+ Default check allows warnings: 0 without critical blockers, 1 with blockers, 2 on scan error. Strict gate returns 0 for `clear`/`warning`, 1 for `not_clear`, 2 for `error`, 3 for `unknown` or unavailable results. For warning failures, run `npx -y viberaven --strict=warning --json` from the app root. Unrestricted SELECT can be intentional public content and is a default warning; focused audit returns 1 for any status other than `pass`.
93
93
 
94
94
  ## Studio And Optional Artifact Mode
95
95
 
96
- From the app root: `npx -y viberaven@1.6.12` opens Studio; `npx -y viberaven@1.6.12 check` checks. Chat needs an installed/authenticated coding CLI and **Test connection**.
96
+ From the app root: `npx -y viberaven` opens Studio; `npx -y viberaven check` checks. Chat needs an installed/authenticated coding CLI and **Test connection**.
97
97
 
98
98
  Artifact compatibility command:
99
99
 
@@ -554,7 +554,7 @@ function mcpVersion() {
554
554
  } catch {
555
555
  }
556
556
  }
557
- found ??= true ? "1.7.6" : void 0;
557
+ found ??= true ? "1.7.8" : void 0;
558
558
  if (!found || !PLAIN_VERSION.test(found)) {
559
559
  throw new Error(`Could not read a valid ${MCP_PACKAGE} version (got ${JSON.stringify(found)}), so the matching ${CLI_PACKAGE} cannot be pinned.`);
560
560
  }
package/dist/server.js CHANGED
@@ -575,11 +575,11 @@ var registry_generated_default = {
575
575
 
576
576
  // ../providers/recent-changes.generated.mjs
577
577
  var recent_changes_generated_default = {
578
- "hash": "d2aaaaf9089270914954d2a8fd7b4fa3933c8525111162650feeb7bf726c67dc",
578
+ "hash": "3d4e3a70798eb1c011c40902cb020cfd469ba9c57358f20c11fcb6c28ea7621f",
579
579
  "pack": {
580
580
  "schemaVersion": 1,
581
- "packVersion": "1.0.0",
582
- "reviewedAt": "2026-10-30",
581
+ "packVersion": "1.1.0",
582
+ "reviewedAt": "2026-11-02",
583
583
  "dateConvention": "effective = provider-stated date; announced = publication/release date; verified = checked date only, not rollout.",
584
584
  "limits": [
585
585
  "Guidance only; repository and live provider state remain not_checked.",
@@ -684,6 +684,36 @@ var recent_changes_generated_default = {
684
684
  "id": "supabase-key-migration",
685
685
  "url": "https://supabase.com/docs/guides/getting-started/migrating-to-new-api-keys",
686
686
  "notes": "Create new keys alongside legacy; replace frontend anon with publishable and backend service_role with secret. Check components then disable legacy keys. Grant/RLS behavior retained, and key switch doesn't fix access policy."
687
+ },
688
+ {
689
+ "id": "next-security-oct-2026",
690
+ "url": "https://nextjs.org/blog/nextjs-security-update-october-14-2026",
691
+ "notes": "Dated October 14, 2026. Out-of-band release fixing two critical remote code execution issues (Image Optimization with SVG; use cache returning typed arrays) and a high-severity Server Actions denial of service. Fixed in next 16.4.1 and 15.5.28."
692
+ },
693
+ {
694
+ "id": "stripe-endive-checkout",
695
+ "url": "https://docs.stripe.com/changelog/endive/2026-09-30/remove-payment-method-types-checkout-sessions",
696
+ "notes": "API version 2026-09-30.endive removes the writable payment_method_types parameter from Checkout Session create; requests that send it fail with payment_method_types_no_longer_supported."
697
+ },
698
+ {
699
+ "id": "stripe-node-endive-pin",
700
+ "url": "https://raw.githubusercontent.com/stripe/stripe-node/master/CHANGELOG.md",
701
+ "notes": "stripe-node 23.0.0 (2026-09-30) pins API version 2026-09-30.endive, so a new install of the stripe package sends Endive requests unless apiVersion says otherwise."
702
+ },
703
+ {
704
+ "id": "openai-deprecations",
705
+ "url": "https://developers.openai.com/api/docs/deprecations",
706
+ "notes": "Shutdowns: legacy GPT snapshots on October 23, 2026 (gpt-3.5-turbo, gpt-4, gpt-4-turbo, o1, o3-mini, o4-mini, gpt-4.1-nano and others); GPT-5 and o3 snapshots on December 11, 2026; dated GPT-4o, GPT-4o mini and GPT-4.1 snapshots on January 14, 2027. Each row names a replacement."
707
+ },
708
+ {
709
+ "id": "lovable-changelog-models",
710
+ "url": "https://docs.lovable.dev/changelog",
711
+ "notes": "Lovable AI retired google/gemini-2.5-pro, -flash and -flash-lite on October 20, 2026 (requests rerouted); google/gemini-3.6-flash stops working November 19, 2026 and google/gemini-3.7-flash January 28, 2027; replacement google/gemini-3.8-flash."
712
+ },
713
+ {
714
+ "id": "anthropic-model-deprecations",
715
+ "url": "https://platform.claude.com/docs/en/about-claude/model-deprecations",
716
+ "notes": "claude-sonnet-4-5-20250929 retires on the Claude API on November 30, 2026 (replacement claude-sonnet-5-5). Earlier retirements include the claude-3-5-sonnet models, claude-3-7-sonnet-20250219, claude-3-5-haiku-20241022, claude-3-haiku-20240307 and the Claude 4 and 4.1 Opus and Sonnet snapshots. Bedrock and Vertex follow their own schedules."
687
717
  }
688
718
  ],
689
719
  "entries": [
@@ -816,6 +846,93 @@ var recent_changes_generated_default = {
816
846
  "supabase-key-migration"
817
847
  ],
818
848
  "limitations": "No key/account/provider inspection, rotation, or live request. Switching key formats does not fix missing grants or RLS policies."
849
+ },
850
+ {
851
+ "id": "next-security-2026-10-14",
852
+ "provider": "nextjs",
853
+ "date": "2026-10-14",
854
+ "dateKind": "announced",
855
+ "dateNote": "Released and announced the same day. A follow-up security release was scheduled for 2026-11-03; its versions are not in this entry.",
856
+ "whatChanged": "Next.js fixed two critical remote code execution vulnerabilities (Image Optimization with SVG input, and use cache returning typed arrays) and a high-severity Server Actions denial of service. Affected: next 10.0.0 to 15.5.27 and 16.0.0 to 16.4.0.",
857
+ "errorText": null,
858
+ "errorTextKind": "not_documented",
859
+ "symptom": "No error: an unpatched app keeps working while exposed.",
860
+ "fix": "Upgrade next to 16.4.1 (16.x) or 15.5.28 (15.x and older lines), reinstall so the lockfile resolves the patched version, rebuild and redeploy. A caret range in package.json may already resolve to a patched version; the lockfile decides.",
861
+ "officialSource": "https://nextjs.org/blog/nextjs-security-update-october-14-2026",
862
+ "sourceIds": [
863
+ "next-security-oct-2026"
864
+ ],
865
+ "limitations": "Version ranges come from the GitHub advisories linked by the post. A repo shows the declared range; only the lockfile or npm ls next shows the installed version. Whether Vercel-hosted deployments are shielded is not stated."
866
+ },
867
+ {
868
+ "id": "stripe-endive-payment-method-types",
869
+ "provider": "stripe",
870
+ "date": "2026-09-30",
871
+ "dateKind": "effective",
872
+ "dateNote": "Applies to requests on API version 2026-09-30.endive or later. stripe-node 23.0.0 pins that version, so a fresh npm install stripe gets it.",
873
+ "whatChanged": "API version Endive removes the writable payment_method_types parameter from Checkout Session create and from PaymentIntent and SetupIntent create, update and confirm. Requests that still send it fail.",
874
+ "errorText": "payment_method_types_no_longer_supported",
875
+ "errorTextKind": "official_documentation_example",
876
+ "errorCode": "payment_method_types_no_longer_supported",
877
+ "symptom": "Checkout or payment creation returns HTTP 400 after upgrading the stripe package.",
878
+ "fix": "Remove payment_method_types from those calls. Rely on dynamic payment methods set in the Dashboard, or use allowed_payment_method_types or excluded_payment_method_types. Test in test mode; reading payment_method_types from a response is unaffected.",
879
+ "officialSource": "https://docs.stripe.com/changelog/endive/2026-09-30/remove-payment-method-types-checkout-sessions",
880
+ "sourceIds": [
881
+ "stripe-endive-checkout",
882
+ "stripe-node-endive-pin"
883
+ ],
884
+ "limitations": "A client built with an explicit pre-Endive apiVersion is not affected, and a raw REST call uses the account default version, which the repo does not show."
885
+ },
886
+ {
887
+ "id": "openai-model-shutdowns-2026",
888
+ "provider": "openai",
889
+ "date": "2026-12-11",
890
+ "dateKind": "effective",
891
+ "dateNote": "Three dates: legacy GPT snapshots shut down 2026-10-23; GPT-5 and o3 snapshots on 2026-12-11; dated GPT-4o, GPT-4o mini and GPT-4.1 snapshots on 2027-01-14.",
892
+ "whatChanged": "OpenAI removes these model IDs from the API: gpt-3.5-turbo, gpt-4, gpt-4-turbo, o1, o3-mini, o4-mini, gpt-4.1-nano and gpt-image-1 (2026-10-23); gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3 and o3-pro (2026-12-11); gpt-4o-2024-08-06, gpt-4o-2024-11-20, gpt-4o-mini-2024-07-18 and gpt-4.1-2025-04-14 (2027-01-14). Requests to a removed model fail.",
893
+ "errorText": null,
894
+ "errorTextKind": "not_documented",
895
+ "symptom": "An AI feature that worked starts failing with a model not found error after the shutdown date.",
896
+ "fix": "Replace each model ID with the replacement the deprecations page lists, then run the feature once and compare output and cost.",
897
+ "officialSource": "https://developers.openai.com/api/docs/deprecations",
898
+ "sourceIds": [
899
+ "openai-deprecations"
900
+ ],
901
+ "limitations": "Azure OpenAI deployments and OpenRouter-style openai/... IDs follow other schedules. The bare aliases gpt-4o and gpt-4o-mini are not on the page."
902
+ },
903
+ {
904
+ "id": "lovable-ai-gemini-retirements",
905
+ "provider": "lovable",
906
+ "date": "2026-11-19",
907
+ "dateKind": "effective",
908
+ "dateNote": "Gemini 2.5 models were retired on 2026-10-20 with requests rerouted; google/gemini-3.6-flash stops on 2026-11-19 and google/gemini-3.7-flash on 2027-01-28.",
909
+ "whatChanged": "Lovable AI retired google/gemini-2.5-pro, google/gemini-2.5-flash and google/gemini-2.5-flash-lite (rerouted to newer models, which changes cost and answers). google/gemini-3.6-flash and google/gemini-3.7-flash stop working on their dates. The replacement is google/gemini-3.8-flash.",
910
+ "errorText": null,
911
+ "errorTextKind": "not_documented",
912
+ "symptom": "AI answers or cost change after 2026-10-20; requests to the 3.6 or 3.7 Flash model fail after their dates.",
913
+ "fix": "Change the model string to google/gemini-3.8-flash (or ask Lovable to), redeploy the edge function, and check one real request.",
914
+ "officialSource": "https://docs.lovable.dev/changelog",
915
+ "sourceIds": [
916
+ "lovable-changelog-models"
917
+ ],
918
+ "limitations": "The same google/... strings sent through OpenRouter or another gateway follow that gateway, not Lovable."
919
+ },
920
+ {
921
+ "id": "anthropic-claude-model-retirements",
922
+ "provider": "anthropic",
923
+ "date": "2026-11-30",
924
+ "dateKind": "effective",
925
+ "dateNote": "claude-sonnet-4-5-20250929 retires on 2026-11-30 (deprecated 2026-09-30). Several older Claude models are already retired.",
926
+ "whatChanged": "Requests to a retired Claude model fail. claude-sonnet-4-5-20250929 retires on 2026-11-30 (replacement claude-sonnet-5-5). Already retired: the claude-3-5-sonnet models, claude-3-7-sonnet-20250219, claude-3-5-haiku-20241022, claude-3-haiku-20240307, claude-sonnet-4-20250514, claude-opus-4-20250514 and claude-opus-4-1-20250805.",
927
+ "errorText": null,
928
+ "errorTextKind": "not_documented",
929
+ "symptom": "An AI feature that worked starts failing after the retirement date.",
930
+ "fix": "Switch each model ID to the replacement on the deprecations page and test the output.",
931
+ "officialSource": "https://platform.claude.com/docs/en/about-claude/model-deprecations",
932
+ "sourceIds": [
933
+ "anthropic-model-deprecations"
934
+ ],
935
+ "limitations": "Amazon Bedrock and Google Vertex AI model IDs follow those platforms. The undated alias claude-sonnet-4-5 is not in the table."
819
936
  }
820
937
  ]
821
938
  }
@@ -893,17 +1010,30 @@ function recentProviderChanges(args) {
893
1010
  var PROVIDER_TOOL = {
894
1011
  name: "provider_playbook",
895
1012
  title: "Get a provider playbook",
896
- description: `Plan setup and integration before implementing a feature that touches a provider. Returns versioned setup guidance, gotchas, dated changes, integration seams, existing repo checks and planned live checks with official sources. Available packs: ${Object.keys(registry_generated_default).sort().join(", ")}.
1013
+ description: `Plan setup and integration before implementing a feature that touches a provider. Returns versioned setup guidance, gotchas, dated changes, integration seams, existing repo checks and planned live checks with official sources. Available packs: ${Object.keys(registry_generated_default).sort().join(", ")}. Pass topic (for example "grants", "auth redirect", "pooler") to get the matching items, a fraction of the whole pack.
897
1014
  Limits: guidance only; does not connect to providers, read your project, run checks or verify that a feature works.`,
898
- inputSchema: { type: "object", properties: { provider: { type: "string", minLength: 1, maxLength: 40, pattern: "^[a-z][a-z0-9-]*$", description: "Provider id, for example supabase. Unsupported ids return the available packs." } }, required: ["provider"], additionalProperties: false },
899
- outputSchema: { type: "object", properties: { provider: { type: "string" }, packVersion: { type: "string" }, packHash: { type: "string" }, pack: { type: "object" }, verification: { type: "object" }, nextStep: { type: "object" } }, required: ["provider", "packVersion", "packHash", "pack", "verification", "nextStep"] },
1015
+ inputSchema: { type: "object", properties: { provider: { type: "string", minLength: 1, maxLength: 40, pattern: "^[a-z][a-z0-9-]*$", description: "Provider id, for example supabase. Unsupported ids return the available packs." }, topic: { type: "string", minLength: 1, maxLength: 80, description: 'Optional words for the part you need, for example "grants" or "auth redirect". Only matching items are returned; with no match, the whole pack.' } }, required: ["provider"], additionalProperties: false },
1016
+ outputSchema: { type: "object", properties: { provider: { type: "string" }, packVersion: { type: "string" }, packHash: { type: "string" }, pack: { type: "object" }, topic: { type: "object" }, verification: { type: "object" }, nextStep: { type: "object" } }, required: ["provider", "packVersion", "packHash", "pack", "verification", "nextStep"] },
900
1017
  annotations: { title: "Get a provider playbook", readOnlyHint: true, destructiveHint: false, openWorldHint: false, idempotentHint: true }
901
1018
  };
902
1019
  var listProviders = () => Object.keys(registry_generated_default).sort();
1020
+ var SECTIONS = ["setup", "gotchas", "changes", "seams", "repo-checks", "live-checks"];
1021
+ var TOPIC_STOPWORDS = /* @__PURE__ */ new Set(["the", "and", "for", "with", "how", "what", "why", "not", "my", "app", "set", "use", "using"]);
1022
+ var topicWords = (topic) => [...new Set(topic.toLowerCase().split(/[^a-z0-9_]+/).filter((w) => w.length >= 3 && !TOPIC_STOPWORDS.has(w)))];
1023
+ function narrowToTopic(pack, topic) {
1024
+ const words2 = topicWords(topic);
1025
+ if (words2.length === 0) return { pack, matched: 0 };
1026
+ const hits = (item) => words2.some((w) => `${item.title} ${item.text} ${item.appliesTo} ${(item.ruleIds ?? []).join(" ")}`.toLowerCase().includes(w));
1027
+ const matched = SECTIONS.reduce((n, s) => n + pack[s].filter(hits).length, 0);
1028
+ if (matched === 0) return { pack, matched: 0 };
1029
+ return { pack: { ...pack, ...Object.fromEntries(SECTIONS.map((s) => [s, pack[s].filter(hits)])) }, matched };
1030
+ }
903
1031
  function renderPlaybook(result) {
904
1032
  const { pack } = result;
905
1033
  const lines = [`${pack.displayName} provider playbook ${pack.packVersion} (reviewed ${pack.reviewedAt})`, pack.summary, "Guidance only. Repository and live checks: not checked.", ""];
906
- for (const section of ["setup", "gotchas", "changes", "seams", "repo-checks", "live-checks"]) {
1034
+ if (result.topic) lines.push(result.topic.matched ? `Topic "${result.topic.query}": ${result.topic.matched} matching items. Call without topic for the whole pack.` : `Topic "${result.topic.query}": no item matched, so this is the whole pack.`, "");
1035
+ for (const section of SECTIONS) {
1036
+ if (result.topic?.matched && pack[section].length === 0) continue;
907
1037
  lines.push(section.toUpperCase());
908
1038
  for (const item of pack[section]) {
909
1039
  lines.push(`- ${item.title}: ${item.text}`, ` Applies: ${item.appliesTo}`, ` Evidence needed: ${item.evidence}`);
@@ -918,20 +1048,23 @@ function renderPlaybook(result) {
918
1048
  return lines.join("\n");
919
1049
  }
920
1050
  function providerPlaybook(args) {
921
- if (!args || typeof args !== "object" || Array.isArray(args) || Object.keys(args).some((k) => k !== "provider") || typeof args.provider !== "string" || !/^[a-z][a-z0-9-]{0,39}$/.test(args.provider) || !Object.hasOwn(registry_generated_default, args.provider)) {
922
- const field = args && typeof args === "object" && !Array.isArray(args) && Object.keys(args).some((k) => k !== "provider") ? "arguments" : "provider";
1051
+ if (!args || typeof args !== "object" || Array.isArray(args) || Object.keys(args).some((k) => k !== "provider" && k !== "topic") || args.topic !== void 0 && (typeof args.topic !== "string" || args.topic.length < 1 || args.topic.length > 80) || typeof args.provider !== "string" || !/^[a-z][a-z0-9-]{0,39}$/.test(args.provider) || !Object.hasOwn(registry_generated_default, args.provider)) {
1052
+ const field = args && typeof args === "object" && !Array.isArray(args) && Object.keys(args).some((k) => k !== "provider" && k !== "topic") ? "arguments" : args?.topic !== void 0 && (typeof args.topic !== "string" || args.topic.length < 1 || args.topic.length > 80) ? "topic" : "provider";
923
1053
  return { isError: true, content: [{ type: "text", text: `invalid_input: Choose a supported provider.
924
1054
  Field: ${field}
925
1055
  Next step: Select an available pack: ${listProviders().join(", ")}. No connection or check was attempted.
926
1056
  Example arguments: {"provider":"supabase"}` }] };
927
1057
  }
928
1058
  const entry = registry_generated_default[args.provider];
929
- const pack = JSON.parse(JSON.stringify(entry.pack));
1059
+ const full = JSON.parse(JSON.stringify(entry.pack));
1060
+ const narrowed = typeof args.topic === "string" ? narrowToTopic(full, args.topic) : void 0;
1061
+ const pack = narrowed ? narrowed.pack : full;
930
1062
  const structuredContent = {
931
1063
  provider: pack.provider,
932
1064
  packVersion: pack.packVersion,
933
1065
  packHash: entry.hash,
934
1066
  pack,
1067
+ ...narrowed ? { topic: { query: args.topic, matched: narrowed.matched } } : {},
935
1068
  verification: { repo: "not_checked", live: "not_checked" },
936
1069
  nextStep: { phase: "P2-planned", accountRequiredForLive: true, message: "Use this guidance to plan the requested feature and run relevant local checks. Live connections are not implemented in this candidate; do not claim provider verification. Local guidance and checks need no account." }
937
1070
  };
@@ -1859,7 +1992,7 @@ async function boundedJson2(response2) {
1859
1992
  }
1860
1993
 
1861
1994
  // ../cli/src/version.ts
1862
- var VERSION = "1.7.6";
1995
+ var VERSION = "1.7.8";
1863
1996
 
1864
1997
  // ../cli/src/commands/account.ts
1865
1998
  var loginNext = `npx -y viberaven@${VERSION} login --json`;
@@ -2204,7 +2337,7 @@ function mcpVersion() {
2204
2337
  } catch {
2205
2338
  }
2206
2339
  }
2207
- found ??= true ? "1.7.6" : void 0;
2340
+ found ??= true ? "1.7.8" : void 0;
2208
2341
  if (!found || !PLAIN_VERSION.test(found)) {
2209
2342
  throw new Error(`Could not read a valid ${MCP_PACKAGE} version (got ${JSON.stringify(found)}), so the matching ${CLI_PACKAGE} cannot be pinned.`);
2210
2343
  }
@@ -2472,7 +2605,7 @@ async function handleRequest(method, params) {
2472
2605
  }
2473
2606
 
2474
2607
  // src/server.ts
2475
- var SERVER_INFO = { name: "viberaven-mcp", version: "1.7.6" };
2608
+ var SERVER_INFO = { name: "viberaven-mcp", version: "1.7.8" };
2476
2609
  var INSTRUCTIONS = [
2477
2610
  "VibeRaven reads a repository and lists launch gaps for AI-built apps that deploy on Vercel and use Supabase.",
2478
2611
  "Suggest one viberaven_check_readiness run before such an app launches or is handed off, after a Supabase migration or policy change,",
@@ -576,11 +576,11 @@ var registry_generated_default = {
576
576
 
577
577
  // ../providers/recent-changes.generated.mjs
578
578
  var recent_changes_generated_default = {
579
- "hash": "d2aaaaf9089270914954d2a8fd7b4fa3933c8525111162650feeb7bf726c67dc",
579
+ "hash": "3d4e3a70798eb1c011c40902cb020cfd469ba9c57358f20c11fcb6c28ea7621f",
580
580
  "pack": {
581
581
  "schemaVersion": 1,
582
- "packVersion": "1.0.0",
583
- "reviewedAt": "2026-10-30",
582
+ "packVersion": "1.1.0",
583
+ "reviewedAt": "2026-11-02",
584
584
  "dateConvention": "effective = provider-stated date; announced = publication/release date; verified = checked date only, not rollout.",
585
585
  "limits": [
586
586
  "Guidance only; repository and live provider state remain not_checked.",
@@ -685,6 +685,36 @@ var recent_changes_generated_default = {
685
685
  "id": "supabase-key-migration",
686
686
  "url": "https://supabase.com/docs/guides/getting-started/migrating-to-new-api-keys",
687
687
  "notes": "Create new keys alongside legacy; replace frontend anon with publishable and backend service_role with secret. Check components then disable legacy keys. Grant/RLS behavior retained, and key switch doesn't fix access policy."
688
+ },
689
+ {
690
+ "id": "next-security-oct-2026",
691
+ "url": "https://nextjs.org/blog/nextjs-security-update-october-14-2026",
692
+ "notes": "Dated October 14, 2026. Out-of-band release fixing two critical remote code execution issues (Image Optimization with SVG; use cache returning typed arrays) and a high-severity Server Actions denial of service. Fixed in next 16.4.1 and 15.5.28."
693
+ },
694
+ {
695
+ "id": "stripe-endive-checkout",
696
+ "url": "https://docs.stripe.com/changelog/endive/2026-09-30/remove-payment-method-types-checkout-sessions",
697
+ "notes": "API version 2026-09-30.endive removes the writable payment_method_types parameter from Checkout Session create; requests that send it fail with payment_method_types_no_longer_supported."
698
+ },
699
+ {
700
+ "id": "stripe-node-endive-pin",
701
+ "url": "https://raw.githubusercontent.com/stripe/stripe-node/master/CHANGELOG.md",
702
+ "notes": "stripe-node 23.0.0 (2026-09-30) pins API version 2026-09-30.endive, so a new install of the stripe package sends Endive requests unless apiVersion says otherwise."
703
+ },
704
+ {
705
+ "id": "openai-deprecations",
706
+ "url": "https://developers.openai.com/api/docs/deprecations",
707
+ "notes": "Shutdowns: legacy GPT snapshots on October 23, 2026 (gpt-3.5-turbo, gpt-4, gpt-4-turbo, o1, o3-mini, o4-mini, gpt-4.1-nano and others); GPT-5 and o3 snapshots on December 11, 2026; dated GPT-4o, GPT-4o mini and GPT-4.1 snapshots on January 14, 2027. Each row names a replacement."
708
+ },
709
+ {
710
+ "id": "lovable-changelog-models",
711
+ "url": "https://docs.lovable.dev/changelog",
712
+ "notes": "Lovable AI retired google/gemini-2.5-pro, -flash and -flash-lite on October 20, 2026 (requests rerouted); google/gemini-3.6-flash stops working November 19, 2026 and google/gemini-3.7-flash January 28, 2027; replacement google/gemini-3.8-flash."
713
+ },
714
+ {
715
+ "id": "anthropic-model-deprecations",
716
+ "url": "https://platform.claude.com/docs/en/about-claude/model-deprecations",
717
+ "notes": "claude-sonnet-4-5-20250929 retires on the Claude API on November 30, 2026 (replacement claude-sonnet-5-5). Earlier retirements include the claude-3-5-sonnet models, claude-3-7-sonnet-20250219, claude-3-5-haiku-20241022, claude-3-haiku-20240307 and the Claude 4 and 4.1 Opus and Sonnet snapshots. Bedrock and Vertex follow their own schedules."
688
718
  }
689
719
  ],
690
720
  "entries": [
@@ -817,6 +847,93 @@ var recent_changes_generated_default = {
817
847
  "supabase-key-migration"
818
848
  ],
819
849
  "limitations": "No key/account/provider inspection, rotation, or live request. Switching key formats does not fix missing grants or RLS policies."
850
+ },
851
+ {
852
+ "id": "next-security-2026-10-14",
853
+ "provider": "nextjs",
854
+ "date": "2026-10-14",
855
+ "dateKind": "announced",
856
+ "dateNote": "Released and announced the same day. A follow-up security release was scheduled for 2026-11-03; its versions are not in this entry.",
857
+ "whatChanged": "Next.js fixed two critical remote code execution vulnerabilities (Image Optimization with SVG input, and use cache returning typed arrays) and a high-severity Server Actions denial of service. Affected: next 10.0.0 to 15.5.27 and 16.0.0 to 16.4.0.",
858
+ "errorText": null,
859
+ "errorTextKind": "not_documented",
860
+ "symptom": "No error: an unpatched app keeps working while exposed.",
861
+ "fix": "Upgrade next to 16.4.1 (16.x) or 15.5.28 (15.x and older lines), reinstall so the lockfile resolves the patched version, rebuild and redeploy. A caret range in package.json may already resolve to a patched version; the lockfile decides.",
862
+ "officialSource": "https://nextjs.org/blog/nextjs-security-update-october-14-2026",
863
+ "sourceIds": [
864
+ "next-security-oct-2026"
865
+ ],
866
+ "limitations": "Version ranges come from the GitHub advisories linked by the post. A repo shows the declared range; only the lockfile or npm ls next shows the installed version. Whether Vercel-hosted deployments are shielded is not stated."
867
+ },
868
+ {
869
+ "id": "stripe-endive-payment-method-types",
870
+ "provider": "stripe",
871
+ "date": "2026-09-30",
872
+ "dateKind": "effective",
873
+ "dateNote": "Applies to requests on API version 2026-09-30.endive or later. stripe-node 23.0.0 pins that version, so a fresh npm install stripe gets it.",
874
+ "whatChanged": "API version Endive removes the writable payment_method_types parameter from Checkout Session create and from PaymentIntent and SetupIntent create, update and confirm. Requests that still send it fail.",
875
+ "errorText": "payment_method_types_no_longer_supported",
876
+ "errorTextKind": "official_documentation_example",
877
+ "errorCode": "payment_method_types_no_longer_supported",
878
+ "symptom": "Checkout or payment creation returns HTTP 400 after upgrading the stripe package.",
879
+ "fix": "Remove payment_method_types from those calls. Rely on dynamic payment methods set in the Dashboard, or use allowed_payment_method_types or excluded_payment_method_types. Test in test mode; reading payment_method_types from a response is unaffected.",
880
+ "officialSource": "https://docs.stripe.com/changelog/endive/2026-09-30/remove-payment-method-types-checkout-sessions",
881
+ "sourceIds": [
882
+ "stripe-endive-checkout",
883
+ "stripe-node-endive-pin"
884
+ ],
885
+ "limitations": "A client built with an explicit pre-Endive apiVersion is not affected, and a raw REST call uses the account default version, which the repo does not show."
886
+ },
887
+ {
888
+ "id": "openai-model-shutdowns-2026",
889
+ "provider": "openai",
890
+ "date": "2026-12-11",
891
+ "dateKind": "effective",
892
+ "dateNote": "Three dates: legacy GPT snapshots shut down 2026-10-23; GPT-5 and o3 snapshots on 2026-12-11; dated GPT-4o, GPT-4o mini and GPT-4.1 snapshots on 2027-01-14.",
893
+ "whatChanged": "OpenAI removes these model IDs from the API: gpt-3.5-turbo, gpt-4, gpt-4-turbo, o1, o3-mini, o4-mini, gpt-4.1-nano and gpt-image-1 (2026-10-23); gpt-5, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3 and o3-pro (2026-12-11); gpt-4o-2024-08-06, gpt-4o-2024-11-20, gpt-4o-mini-2024-07-18 and gpt-4.1-2025-04-14 (2027-01-14). Requests to a removed model fail.",
894
+ "errorText": null,
895
+ "errorTextKind": "not_documented",
896
+ "symptom": "An AI feature that worked starts failing with a model not found error after the shutdown date.",
897
+ "fix": "Replace each model ID with the replacement the deprecations page lists, then run the feature once and compare output and cost.",
898
+ "officialSource": "https://developers.openai.com/api/docs/deprecations",
899
+ "sourceIds": [
900
+ "openai-deprecations"
901
+ ],
902
+ "limitations": "Azure OpenAI deployments and OpenRouter-style openai/... IDs follow other schedules. The bare aliases gpt-4o and gpt-4o-mini are not on the page."
903
+ },
904
+ {
905
+ "id": "lovable-ai-gemini-retirements",
906
+ "provider": "lovable",
907
+ "date": "2026-11-19",
908
+ "dateKind": "effective",
909
+ "dateNote": "Gemini 2.5 models were retired on 2026-10-20 with requests rerouted; google/gemini-3.6-flash stops on 2026-11-19 and google/gemini-3.7-flash on 2027-01-28.",
910
+ "whatChanged": "Lovable AI retired google/gemini-2.5-pro, google/gemini-2.5-flash and google/gemini-2.5-flash-lite (rerouted to newer models, which changes cost and answers). google/gemini-3.6-flash and google/gemini-3.7-flash stop working on their dates. The replacement is google/gemini-3.8-flash.",
911
+ "errorText": null,
912
+ "errorTextKind": "not_documented",
913
+ "symptom": "AI answers or cost change after 2026-10-20; requests to the 3.6 or 3.7 Flash model fail after their dates.",
914
+ "fix": "Change the model string to google/gemini-3.8-flash (or ask Lovable to), redeploy the edge function, and check one real request.",
915
+ "officialSource": "https://docs.lovable.dev/changelog",
916
+ "sourceIds": [
917
+ "lovable-changelog-models"
918
+ ],
919
+ "limitations": "The same google/... strings sent through OpenRouter or another gateway follow that gateway, not Lovable."
920
+ },
921
+ {
922
+ "id": "anthropic-claude-model-retirements",
923
+ "provider": "anthropic",
924
+ "date": "2026-11-30",
925
+ "dateKind": "effective",
926
+ "dateNote": "claude-sonnet-4-5-20250929 retires on 2026-11-30 (deprecated 2026-09-30). Several older Claude models are already retired.",
927
+ "whatChanged": "Requests to a retired Claude model fail. claude-sonnet-4-5-20250929 retires on 2026-11-30 (replacement claude-sonnet-5-5). Already retired: the claude-3-5-sonnet models, claude-3-7-sonnet-20250219, claude-3-5-haiku-20241022, claude-3-haiku-20240307, claude-sonnet-4-20250514, claude-opus-4-20250514 and claude-opus-4-1-20250805.",
928
+ "errorText": null,
929
+ "errorTextKind": "not_documented",
930
+ "symptom": "An AI feature that worked starts failing after the retirement date.",
931
+ "fix": "Switch each model ID to the replacement on the deprecations page and test the output.",
932
+ "officialSource": "https://platform.claude.com/docs/en/about-claude/model-deprecations",
933
+ "sourceIds": [
934
+ "anthropic-model-deprecations"
935
+ ],
936
+ "limitations": "Amazon Bedrock and Google Vertex AI model IDs follow those platforms. The undated alias claude-sonnet-4-5 is not in the table."
820
937
  }
821
938
  ]
822
939
  }
@@ -894,17 +1011,30 @@ function recentProviderChanges(args) {
894
1011
  var PROVIDER_TOOL = {
895
1012
  name: "provider_playbook",
896
1013
  title: "Get a provider playbook",
897
- description: `Plan setup and integration before implementing a feature that touches a provider. Returns versioned setup guidance, gotchas, dated changes, integration seams, existing repo checks and planned live checks with official sources. Available packs: ${Object.keys(registry_generated_default).sort().join(", ")}.
1014
+ description: `Plan setup and integration before implementing a feature that touches a provider. Returns versioned setup guidance, gotchas, dated changes, integration seams, existing repo checks and planned live checks with official sources. Available packs: ${Object.keys(registry_generated_default).sort().join(", ")}. Pass topic (for example "grants", "auth redirect", "pooler") to get the matching items, a fraction of the whole pack.
898
1015
  Limits: guidance only; does not connect to providers, read your project, run checks or verify that a feature works.`,
899
- inputSchema: { type: "object", properties: { provider: { type: "string", minLength: 1, maxLength: 40, pattern: "^[a-z][a-z0-9-]*$", description: "Provider id, for example supabase. Unsupported ids return the available packs." } }, required: ["provider"], additionalProperties: false },
900
- outputSchema: { type: "object", properties: { provider: { type: "string" }, packVersion: { type: "string" }, packHash: { type: "string" }, pack: { type: "object" }, verification: { type: "object" }, nextStep: { type: "object" } }, required: ["provider", "packVersion", "packHash", "pack", "verification", "nextStep"] },
1016
+ inputSchema: { type: "object", properties: { provider: { type: "string", minLength: 1, maxLength: 40, pattern: "^[a-z][a-z0-9-]*$", description: "Provider id, for example supabase. Unsupported ids return the available packs." }, topic: { type: "string", minLength: 1, maxLength: 80, description: 'Optional words for the part you need, for example "grants" or "auth redirect". Only matching items are returned; with no match, the whole pack.' } }, required: ["provider"], additionalProperties: false },
1017
+ outputSchema: { type: "object", properties: { provider: { type: "string" }, packVersion: { type: "string" }, packHash: { type: "string" }, pack: { type: "object" }, topic: { type: "object" }, verification: { type: "object" }, nextStep: { type: "object" } }, required: ["provider", "packVersion", "packHash", "pack", "verification", "nextStep"] },
901
1018
  annotations: { title: "Get a provider playbook", readOnlyHint: true, destructiveHint: false, openWorldHint: false, idempotentHint: true }
902
1019
  };
903
1020
  var listProviders = () => Object.keys(registry_generated_default).sort();
1021
+ var SECTIONS = ["setup", "gotchas", "changes", "seams", "repo-checks", "live-checks"];
1022
+ var TOPIC_STOPWORDS = /* @__PURE__ */ new Set(["the", "and", "for", "with", "how", "what", "why", "not", "my", "app", "set", "use", "using"]);
1023
+ var topicWords = (topic) => [...new Set(topic.toLowerCase().split(/[^a-z0-9_]+/).filter((w) => w.length >= 3 && !TOPIC_STOPWORDS.has(w)))];
1024
+ function narrowToTopic(pack, topic) {
1025
+ const words2 = topicWords(topic);
1026
+ if (words2.length === 0) return { pack, matched: 0 };
1027
+ const hits = (item) => words2.some((w) => `${item.title} ${item.text} ${item.appliesTo} ${(item.ruleIds ?? []).join(" ")}`.toLowerCase().includes(w));
1028
+ const matched = SECTIONS.reduce((n, s) => n + pack[s].filter(hits).length, 0);
1029
+ if (matched === 0) return { pack, matched: 0 };
1030
+ return { pack: { ...pack, ...Object.fromEntries(SECTIONS.map((s) => [s, pack[s].filter(hits)])) }, matched };
1031
+ }
904
1032
  function renderPlaybook(result) {
905
1033
  const { pack } = result;
906
1034
  const lines = [`${pack.displayName} provider playbook ${pack.packVersion} (reviewed ${pack.reviewedAt})`, pack.summary, "Guidance only. Repository and live checks: not checked.", ""];
907
- for (const section of ["setup", "gotchas", "changes", "seams", "repo-checks", "live-checks"]) {
1035
+ if (result.topic) lines.push(result.topic.matched ? `Topic "${result.topic.query}": ${result.topic.matched} matching items. Call without topic for the whole pack.` : `Topic "${result.topic.query}": no item matched, so this is the whole pack.`, "");
1036
+ for (const section of SECTIONS) {
1037
+ if (result.topic?.matched && pack[section].length === 0) continue;
908
1038
  lines.push(section.toUpperCase());
909
1039
  for (const item of pack[section]) {
910
1040
  lines.push(`- ${item.title}: ${item.text}`, ` Applies: ${item.appliesTo}`, ` Evidence needed: ${item.evidence}`);
@@ -919,20 +1049,23 @@ function renderPlaybook(result) {
919
1049
  return lines.join("\n");
920
1050
  }
921
1051
  function providerPlaybook(args) {
922
- if (!args || typeof args !== "object" || Array.isArray(args) || Object.keys(args).some((k) => k !== "provider") || typeof args.provider !== "string" || !/^[a-z][a-z0-9-]{0,39}$/.test(args.provider) || !Object.hasOwn(registry_generated_default, args.provider)) {
923
- const field = args && typeof args === "object" && !Array.isArray(args) && Object.keys(args).some((k) => k !== "provider") ? "arguments" : "provider";
1052
+ if (!args || typeof args !== "object" || Array.isArray(args) || Object.keys(args).some((k) => k !== "provider" && k !== "topic") || args.topic !== void 0 && (typeof args.topic !== "string" || args.topic.length < 1 || args.topic.length > 80) || typeof args.provider !== "string" || !/^[a-z][a-z0-9-]{0,39}$/.test(args.provider) || !Object.hasOwn(registry_generated_default, args.provider)) {
1053
+ const field = args && typeof args === "object" && !Array.isArray(args) && Object.keys(args).some((k) => k !== "provider" && k !== "topic") ? "arguments" : args?.topic !== void 0 && (typeof args.topic !== "string" || args.topic.length < 1 || args.topic.length > 80) ? "topic" : "provider";
924
1054
  return { isError: true, content: [{ type: "text", text: `invalid_input: Choose a supported provider.
925
1055
  Field: ${field}
926
1056
  Next step: Select an available pack: ${listProviders().join(", ")}. No connection or check was attempted.
927
1057
  Example arguments: {"provider":"supabase"}` }] };
928
1058
  }
929
1059
  const entry = registry_generated_default[args.provider];
930
- const pack = JSON.parse(JSON.stringify(entry.pack));
1060
+ const full = JSON.parse(JSON.stringify(entry.pack));
1061
+ const narrowed = typeof args.topic === "string" ? narrowToTopic(full, args.topic) : void 0;
1062
+ const pack = narrowed ? narrowed.pack : full;
931
1063
  const structuredContent = {
932
1064
  provider: pack.provider,
933
1065
  packVersion: pack.packVersion,
934
1066
  packHash: entry.hash,
935
1067
  pack,
1068
+ ...narrowed ? { topic: { query: args.topic, matched: narrowed.matched } } : {},
936
1069
  verification: { repo: "not_checked", live: "not_checked" },
937
1070
  nextStep: { phase: "P2-planned", accountRequiredForLive: true, message: "Use this guidance to plan the requested feature and run relevant local checks. Live connections are not implemented in this candidate; do not claim provider verification. Local guidance and checks need no account." }
938
1071
  };
@@ -1860,7 +1993,7 @@ async function boundedJson2(response2) {
1860
1993
  }
1861
1994
 
1862
1995
  // ../cli/src/version.ts
1863
- var VERSION = "1.7.6";
1996
+ var VERSION = "1.7.8";
1864
1997
 
1865
1998
  // ../cli/src/commands/account.ts
1866
1999
  var loginNext = `npx -y viberaven@${VERSION} login --json`;
@@ -2205,7 +2338,7 @@ function mcpVersion() {
2205
2338
  } catch {
2206
2339
  }
2207
2340
  }
2208
- found ??= true ? "1.7.6" : void 0;
2341
+ found ??= true ? "1.7.8" : void 0;
2209
2342
  if (!found || !PLAIN_VERSION.test(found)) {
2210
2343
  throw new Error(`Could not read a valid ${MCP_PACKAGE} version (got ${JSON.stringify(found)}), so the matching ${CLI_PACKAGE} cannot be pinned.`);
2211
2344
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viberaven/mcp",
3
- "version": "1.7.6",
3
+ "version": "1.7.8",
4
4
  "description": "MCP server for VibeRaven: lets Claude Code, Cursor and Codex run the Supabase RLS and security check on an AI-built Vercel + Supabase app and read the findings.",
5
5
  "license": "MIT",
6
6
  "author": "VibeRaven",