@buildpad/mcp 0.1.12 → 0.1.14

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/dist/index.js CHANGED
@@ -5580,7 +5580,7 @@ function loadRegistry() {
5580
5580
  },
5581
5581
  "api-routes": {
5582
5582
  "name": "api-routes",
5583
- "description": "Server-side Supabase auth routes for Next.js (login, logout, callback, user)",
5583
+ "description": "Server-side Supabase auth routes (login, logout, callback, user) + DaaS API proxy routes for Next.js (fields, items, relations, files)",
5584
5584
  "files": [
5585
5585
  {
5586
5586
  "source": "cli/templates/api/auth-login-route.ts",
@@ -5601,6 +5601,30 @@ function loadRegistry() {
5601
5601
  {
5602
5602
  "source": "cli/templates/api/login-page.tsx",
5603
5603
  "target": "app/login/page.tsx"
5604
+ },
5605
+ {
5606
+ "source": "cli/templates/lib/api-auth-headers.ts",
5607
+ "target": "lib/api/auth-headers.ts"
5608
+ },
5609
+ {
5610
+ "source": "cli/templates/api/daas-fields-route.ts",
5611
+ "target": "app/api/fields/[collection]/route.ts"
5612
+ },
5613
+ {
5614
+ "source": "cli/templates/api/daas-items-collection-route.ts",
5615
+ "target": "app/api/items/[collection]/route.ts"
5616
+ },
5617
+ {
5618
+ "source": "cli/templates/api/daas-items-id-route.ts",
5619
+ "target": "app/api/items/[collection]/[id]/route.ts"
5620
+ },
5621
+ {
5622
+ "source": "cli/templates/api/daas-relations-route.ts",
5623
+ "target": "app/api/relations/route.ts"
5624
+ },
5625
+ {
5626
+ "source": "cli/templates/api/daas-files-route.ts",
5627
+ "target": "app/api/files/route.ts"
5604
5628
  }
5605
5629
  ],
5606
5630
  "internalDependencies": [
@@ -7536,6 +7560,9 @@ function getCategories() {
7536
7560
  function getLibModule(name) {
7537
7561
  return getRegistry().lib[name];
7538
7562
  }
7563
+ function getAllLibModules() {
7564
+ return Object.values(getRegistry().lib);
7565
+ }
7539
7566
  var PACKAGES = [
7540
7567
  {
7541
7568
  name: "@buildpad/types",
@@ -7958,6 +7985,14 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
7958
7985
  required: ["name"]
7959
7986
  }
7960
7987
  },
7988
+ {
7989
+ name: "list_lib_modules",
7990
+ description: "List all available CLI lib modules (e.g. external-oauth, supabase-auth, api-routes) that can be added via `buildpad add <name>`. These are infrastructure/auth modules, separate from UI components.",
7991
+ inputSchema: {
7992
+ type: "object",
7993
+ properties: {}
7994
+ }
7995
+ },
7961
7996
  {
7962
7997
  name: "get_rbac_pattern",
7963
7998
  description: "Get RBAC (Role-Based Access Control) setup patterns for DaaS applications. Returns complete MCP tool call sequences to set up roles, policies, access, and permissions with dynamic variables.",
@@ -8000,6 +8035,24 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
8000
8035
  ]
8001
8036
  };
8002
8037
  }
8038
+ case "list_lib_modules": {
8039
+ const libModules = getAllLibModules().map((m) => ({
8040
+ name: m.name,
8041
+ description: m.description,
8042
+ dependencies: m.dependencies ?? [],
8043
+ internalDependencies: m.internalDependencies ?? [],
8044
+ installCommand: `npx @buildpad/cli add ${m.name}`,
8045
+ files: (m.files ?? []).map((f) => f.target)
8046
+ }));
8047
+ return {
8048
+ content: [
8049
+ {
8050
+ type: "text",
8051
+ text: JSON.stringify(libModules, null, 2)
8052
+ }
8053
+ ]
8054
+ };
8055
+ }
8003
8056
  case "get_component": {
8004
8057
  const componentName = args?.name;
8005
8058
  if (!componentName) {