@buildpad/mcp 0.1.12 → 0.1.13
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 +43 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __export = (target, all) => {
|
|
|
5
5
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
// ../../node_modules
|
|
8
|
+
// ../../node_modules/zod/v3/external.js
|
|
9
9
|
var external_exports = {};
|
|
10
10
|
__export(external_exports, {
|
|
11
11
|
BRAND: () => BRAND,
|
|
@@ -117,7 +117,7 @@ __export(external_exports, {
|
|
|
117
117
|
void: () => voidType
|
|
118
118
|
});
|
|
119
119
|
|
|
120
|
-
// ../../node_modules
|
|
120
|
+
// ../../node_modules/zod/v3/helpers/util.js
|
|
121
121
|
var util;
|
|
122
122
|
(function(util2) {
|
|
123
123
|
util2.assertEqual = (_) => {
|
|
@@ -251,7 +251,7 @@ var getParsedType = (data) => {
|
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
253
|
|
|
254
|
-
// ../../node_modules
|
|
254
|
+
// ../../node_modules/zod/v3/ZodError.js
|
|
255
255
|
var ZodIssueCode = util.arrayToEnum([
|
|
256
256
|
"invalid_type",
|
|
257
257
|
"invalid_literal",
|
|
@@ -369,7 +369,7 @@ ZodError.create = (issues) => {
|
|
|
369
369
|
return error;
|
|
370
370
|
};
|
|
371
371
|
|
|
372
|
-
// ../../node_modules
|
|
372
|
+
// ../../node_modules/zod/v3/locales/en.js
|
|
373
373
|
var errorMap = (issue, _ctx) => {
|
|
374
374
|
let message;
|
|
375
375
|
switch (issue.code) {
|
|
@@ -472,7 +472,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
472
472
|
};
|
|
473
473
|
var en_default = errorMap;
|
|
474
474
|
|
|
475
|
-
// ../../node_modules
|
|
475
|
+
// ../../node_modules/zod/v3/errors.js
|
|
476
476
|
var overrideErrorMap = en_default;
|
|
477
477
|
function setErrorMap(map) {
|
|
478
478
|
overrideErrorMap = map;
|
|
@@ -481,7 +481,7 @@ function getErrorMap() {
|
|
|
481
481
|
return overrideErrorMap;
|
|
482
482
|
}
|
|
483
483
|
|
|
484
|
-
// ../../node_modules
|
|
484
|
+
// ../../node_modules/zod/v3/helpers/parseUtil.js
|
|
485
485
|
var makeIssue = (params) => {
|
|
486
486
|
const { data, path, errorMaps, issueData } = params;
|
|
487
487
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -591,14 +591,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
591
591
|
var isValid = (x) => x.status === "valid";
|
|
592
592
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
593
593
|
|
|
594
|
-
// ../../node_modules
|
|
594
|
+
// ../../node_modules/zod/v3/helpers/errorUtil.js
|
|
595
595
|
var errorUtil;
|
|
596
596
|
(function(errorUtil2) {
|
|
597
597
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
598
598
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
599
599
|
})(errorUtil || (errorUtil = {}));
|
|
600
600
|
|
|
601
|
-
// ../../node_modules
|
|
601
|
+
// ../../node_modules/zod/v3/types.js
|
|
602
602
|
var ParseInputLazyPath = class {
|
|
603
603
|
constructor(parent, value, path, key) {
|
|
604
604
|
this._cachedPath = [];
|
|
@@ -4046,7 +4046,7 @@ var coerce = {
|
|
|
4046
4046
|
};
|
|
4047
4047
|
var NEVER = INVALID;
|
|
4048
4048
|
|
|
4049
|
-
// ../../node_modules
|
|
4049
|
+
// ../../node_modules/@modelcontextprotocol/sdk/dist/types.js
|
|
4050
4050
|
var LATEST_PROTOCOL_VERSION = "2024-11-05";
|
|
4051
4051
|
var SUPPORTED_PROTOCOL_VERSIONS = [
|
|
4052
4052
|
LATEST_PROTOCOL_VERSION,
|
|
@@ -4751,7 +4751,7 @@ var McpError = class extends Error {
|
|
|
4751
4751
|
}
|
|
4752
4752
|
};
|
|
4753
4753
|
|
|
4754
|
-
// ../../node_modules
|
|
4754
|
+
// ../../node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.js
|
|
4755
4755
|
var Protocol = class {
|
|
4756
4756
|
constructor(_options) {
|
|
4757
4757
|
this._options = _options;
|
|
@@ -5008,7 +5008,7 @@ var Protocol = class {
|
|
|
5008
5008
|
}
|
|
5009
5009
|
};
|
|
5010
5010
|
|
|
5011
|
-
// ../../node_modules
|
|
5011
|
+
// ../../node_modules/@modelcontextprotocol/sdk/dist/server/index.js
|
|
5012
5012
|
var Server = class extends Protocol {
|
|
5013
5013
|
/**
|
|
5014
5014
|
* Initializes this server with the given name and version information.
|
|
@@ -5161,10 +5161,10 @@ var Server = class extends Protocol {
|
|
|
5161
5161
|
}
|
|
5162
5162
|
};
|
|
5163
5163
|
|
|
5164
|
-
// ../../node_modules
|
|
5164
|
+
// ../../node_modules/@modelcontextprotocol/sdk/dist/server/stdio.js
|
|
5165
5165
|
import process2 from "process";
|
|
5166
5166
|
|
|
5167
|
-
// ../../node_modules
|
|
5167
|
+
// ../../node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.js
|
|
5168
5168
|
var ReadBuffer = class {
|
|
5169
5169
|
append(chunk) {
|
|
5170
5170
|
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
|
|
@@ -5192,7 +5192,7 @@ function serializeMessage(message) {
|
|
|
5192
5192
|
return JSON.stringify(message) + "\n";
|
|
5193
5193
|
}
|
|
5194
5194
|
|
|
5195
|
-
// ../../node_modules
|
|
5195
|
+
// ../../node_modules/@modelcontextprotocol/sdk/dist/server/stdio.js
|
|
5196
5196
|
var StdioServerTransport = class {
|
|
5197
5197
|
constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
|
|
5198
5198
|
this._stdin = _stdin;
|
|
@@ -7536,6 +7536,9 @@ function getCategories() {
|
|
|
7536
7536
|
function getLibModule(name) {
|
|
7537
7537
|
return getRegistry().lib[name];
|
|
7538
7538
|
}
|
|
7539
|
+
function getAllLibModules() {
|
|
7540
|
+
return Object.values(getRegistry().lib);
|
|
7541
|
+
}
|
|
7539
7542
|
var PACKAGES = [
|
|
7540
7543
|
{
|
|
7541
7544
|
name: "@buildpad/types",
|
|
@@ -7958,6 +7961,14 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
7958
7961
|
required: ["name"]
|
|
7959
7962
|
}
|
|
7960
7963
|
},
|
|
7964
|
+
{
|
|
7965
|
+
name: "list_lib_modules",
|
|
7966
|
+
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.",
|
|
7967
|
+
inputSchema: {
|
|
7968
|
+
type: "object",
|
|
7969
|
+
properties: {}
|
|
7970
|
+
}
|
|
7971
|
+
},
|
|
7961
7972
|
{
|
|
7962
7973
|
name: "get_rbac_pattern",
|
|
7963
7974
|
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 +8011,24 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
8000
8011
|
]
|
|
8001
8012
|
};
|
|
8002
8013
|
}
|
|
8014
|
+
case "list_lib_modules": {
|
|
8015
|
+
const libModules = getAllLibModules().map((m) => ({
|
|
8016
|
+
name: m.name,
|
|
8017
|
+
description: m.description,
|
|
8018
|
+
dependencies: m.dependencies ?? [],
|
|
8019
|
+
internalDependencies: m.internalDependencies ?? [],
|
|
8020
|
+
installCommand: `npx @buildpad/cli add ${m.name}`,
|
|
8021
|
+
files: (m.files ?? []).map((f) => f.target)
|
|
8022
|
+
}));
|
|
8023
|
+
return {
|
|
8024
|
+
content: [
|
|
8025
|
+
{
|
|
8026
|
+
type: "text",
|
|
8027
|
+
text: JSON.stringify(libModules, null, 2)
|
|
8028
|
+
}
|
|
8029
|
+
]
|
|
8030
|
+
};
|
|
8031
|
+
}
|
|
8003
8032
|
case "get_component": {
|
|
8004
8033
|
const componentName = args?.name;
|
|
8005
8034
|
if (!componentName) {
|