Skip to content

[AUTO] Adding MCP Servers docs update#864

Closed
evantahler wants to merge 1 commit intomainfrom
automation/toolkit-docs-22850973643
Closed

[AUTO] Adding MCP Servers docs update#864
evantahler wants to merge 1 commit intomainfrom
automation/toolkit-docs-22850973643

Conversation

@evantahler
Copy link
Contributor

@evantahler evantahler commented Mar 9, 2026

This PR was generated after a Porter deploy succeeded.


Note

Medium Risk
Primarily documentation metadata changes, but it removes several toolkits/entries and rewires category _meta.tsx generation, which could change navigation ordering/visibility or leave orphaned links if pages still exist.

Overview
Reworks integration category navigation metadata by replacing createCategoryMeta(...) usage with explicit MetaRecord objects and adding manual Optimized/Starter separators across most integration categories.

Updates generated toolkit docs data by removing CodeSandbox and Figma toolkit JSON outputs and pruning multiple toolkit entries (e.g., MailchimpMarketingApi, Math, Pagerduty, Pylon, Search, Web, UpclickApi) from toolkit-docs-generator/data/toolkits/index.json.

Also updates next-env.d.ts to import route types from ./.next/types/routes.d.ts instead of the dev path.

Written by Cursor Bugbot for commit f2d2976. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Mar 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Mar 9, 2026 11:25am

Request Review

@evantahler evantahler requested a review from a team March 9, 2026 11:22
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix prepared fixes for both issues found in the latest run.

  • ✅ Fixed: Entertainment category missing "Optimized" separator heading
    • Added the missing "-- Optimized" separator to entertainment/_meta.tsx to match all other category files.
  • ✅ Fixed: Unused createCategoryMeta function is now dead code
    • Deleted create-category-meta.ts file as it is no longer imported or used anywhere after the refactoring.

Create PR

Or push these changes by commenting:

@cursor push 2b742f4a1b
Preview (2b742f4a1b)
diff --git a/app/en/resources/integrations/create-category-meta.ts b/app/en/resources/integrations/create-category-meta.ts
deleted file mode 100644
--- a/app/en/resources/integrations/create-category-meta.ts
+++ /dev/null
@@ -1,48 +1,0 @@
-import type { MetaRecord } from "nextra";
-
-type ToolkitType =
-  | "arcade"
-  | "arcade_starter"
-  | "community"
-  | "verified"
-  | "auth";
-
-export type CategoryEntry = {
-  slug: string;
-  title: string;
-  href: string;
-  type: ToolkitType;
-};
-
-/**
- * Builds a Nextra MetaRecord for an integration category, automatically
- * inserting "Optimized" and "Starter" separator headings based on toolkit type.
- *
- * - "Optimized" group: any entry whose type is not "arcade_starter"
- * - "Starter" group: entries with type "arcade_starter"
- *
- * A separator is only emitted when its group is non-empty, so categories
- * with a single type do not show an unnecessary heading.
- */
-export function createCategoryMeta(entries: CategoryEntry[]): MetaRecord {
-  const optimized = entries.filter((e) => e.type !== "arcade_starter");
-  const starter = entries.filter((e) => e.type === "arcade_starter");
-
-  const result: MetaRecord = {};
-
-  if (optimized.length > 0) {
-    result["-- Optimized"] = { type: "separator", title: "Optimized" };
-    for (const entry of optimized) {
-      result[entry.slug] = { title: entry.title, href: entry.href };
-    }
-  }
-
-  if (starter.length > 0) {
-    result["-- Starter"] = { type: "separator", title: "Starter" };
-    for (const entry of starter) {
-      result[entry.slug] = { title: entry.title, href: entry.href };
-    }
-  }
-
-  return result;
-}
\ No newline at end of file

diff --git a/app/en/resources/integrations/entertainment/_meta.tsx b/app/en/resources/integrations/entertainment/_meta.tsx
--- a/app/en/resources/integrations/entertainment/_meta.tsx
+++ b/app/en/resources/integrations/entertainment/_meta.tsx
@@ -1,6 +1,10 @@
 import type { MetaRecord } from "nextra";
 
 const meta: MetaRecord = {
+  "-- Optimized": {
+    type: "separator",
+    title: "Optimized",
+  },
   imgflip: {
     title: "Imgflip",
     href: "/en/resources/integrations/entertainment/imgflip",
This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.

type: "arcade",
},
]);
};
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Entertainment category missing "Optimized" separator heading

Medium Severity

The entertainment/_meta.tsx file is missing the "-- Optimized" separator that every other category _meta.tsx includes. Both imgflip and spotify are of type "arcade" (Optimized), and the old createCategoryMeta function would have generated this separator. All other refactored categories (customer-support, databases, development, payments, productivity, sales, search, social) consistently include the "-- Optimized" separator, making entertainment the only inconsistent one.

Fix in Cursor Fix in Web

@@ -1,16 +1,14 @@
import { createCategoryMeta } from "../create-category-meta";
import type { MetaRecord } from "nextra";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused createCategoryMeta function is now dead code

Low Severity

All _meta.tsx files that previously imported from create-category-meta.ts were refactored to use plain MetaRecord objects, but the create-category-meta.ts file itself was not removed. The exported createCategoryMeta function and CategoryEntry type are now dead code with zero consumers in the codebase.

Additional Locations (1)

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants