@devpad/mcp 2.4.2 → 2.4.3

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 +19 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -12265,7 +12265,7 @@ var coerce = {
12265
12265
  date: (arg) => ZodDate.create({ ...arg, coerce: true })
12266
12266
  };
12267
12267
  var NEVER = INVALID;
12268
- // ../api/dist/chunk-HWPYBI52.js
12268
+ // ../api/dist/chunk-T36ENKOA.js
12269
12269
  var timestamps = () => ({
12270
12270
  created_at: text("created_at").notNull().default(sql`(CURRENT_TIMESTAMP)`),
12271
12271
  updated_at: text("updated_at").notNull().default(sql`(CURRENT_TIMESTAMP)`)
@@ -13300,6 +13300,7 @@ var upsert_hook = exports_external.object({
13300
13300
  trigger: hook_trigger,
13301
13301
  action: hook_action_input
13302
13302
  });
13303
+ var toggle_hook_enabled = exports_external.object({ enabled: exports_external.boolean() });
13303
13304
 
13304
13305
  // ../../node_modules/@f0rbit/corpus/dist/types.js
13305
13306
  var ok = (value) => ({ ok: true, value });
@@ -14160,6 +14161,9 @@ var ApiClient2 = class {
14160
14161
  this.milestones = {
14161
14162
  list: () => wrap(() => this.clients.milestones.get("/milestones")),
14162
14163
  getByProject: (project_id) => wrap(() => this.clients.milestones.get(`/projects/${project_id}/milestones`)),
14164
+ lens: (project_id, depth) => wrap(() => this.clients.milestones.get(`/projects/${project_id}/milestones/lens`, {
14165
+ query: depth ? { depth: String(depth) } : {}
14166
+ })),
14163
14167
  find: (id2) => wrap(async () => {
14164
14168
  try {
14165
14169
  return await this.clients.milestones.get(`/milestones/${id2}`);
@@ -14195,6 +14199,7 @@ var ApiClient2 = class {
14195
14199
  list: (project_id) => wrap(() => this.clients.hooks.get("/hooks", { query: { project_id } })),
14196
14200
  upsert: (data) => wrap(() => data.id ? this.clients.hooks.patch(`/hooks/${data.id}`, { body: data }) : this.clients.hooks.post("/hooks", { body: data })),
14197
14201
  delete: (id2) => wrap(() => this.clients.hooks.delete(`/hooks/${id2}`)),
14202
+ setEnabled: (id2, enabled) => wrap(() => this.clients.hooks.patch(`/hooks/${id2}/enabled`, { body: { enabled } })),
14198
14203
  deliveries: (id2, status) => wrap(() => this.clients.hooks.get(`/hooks/${id2}/deliveries`, status ? { query: { status } } : {}))
14199
14204
  };
14200
14205
  this.goals = {
@@ -14303,6 +14308,10 @@ var ApiClient2 = class {
14303
14308
  push: (data) => wrap(() => this.clients.docs.post("/docs", { body: data })),
14304
14309
  pull: (id2, version2) => wrap(() => this.clients.docs.get(`/docs/${id2}`, version2 ? { query: { version: version2 } } : {})),
14305
14310
  versions: (id2) => wrap(() => this.clients.docs.get(`/docs/${id2}/versions`)),
14311
+ renderUrl: (id2, version2) => {
14312
+ const query = version2 ? `?version=${encodeURIComponent(version2)}` : "";
14313
+ return `${this.clients.docs.url()}/docs/${id2}/render${query}`;
14314
+ },
14306
14315
  createThread: (document_id, data) => wrap(() => this.clients.docs.post(`/docs/${document_id}/threads`, { body: data })),
14307
14316
  replyThread: (document_id, thread_id, body) => wrap(() => this.clients.docs.post(`/docs/${document_id}/threads/${thread_id}/reply`, { body: { body } })),
14308
14317
  resolveThread: (document_id, thread_id) => wrap(() => this.clients.docs.post(`/docs/${document_id}/threads/${thread_id}/resolve`, {})),
@@ -14326,6 +14335,7 @@ var ApiClient2 = class {
14326
14335
  this.signoffs = {
14327
14336
  request: (data) => wrap(() => this.clients.signoffs.post("/signoffs", { body: data })),
14328
14337
  find: (id2) => wrap(() => this.clients.signoffs.get(`/signoffs/${id2}`)),
14338
+ findPending: (filters) => wrap(() => this.clients.signoffs.get("/signoffs", { query: filters })),
14329
14339
  decide: (id2, data) => wrap(() => this.clients.signoffs.post(`/signoffs/${id2}/decide`, { body: data }))
14330
14340
  };
14331
14341
  this.reviews = {
@@ -14476,7 +14486,8 @@ var ApiClient2 = class {
14476
14486
  })
14477
14487
  };
14478
14488
  this.admin = {
14479
- verifyFold: () => wrap(() => this.clients.admin.get("/admin/verify-fold"))
14489
+ verifyFold: () => wrap(() => this.clients.admin.get("/admin/verify-fold")),
14490
+ reconcileDocsCss: () => wrap(() => this.clients.admin.post("/admin/reconcile-docs-css"))
14480
14491
  };
14481
14492
  this.user = {
14482
14493
  me: () => wrap(() => this.clients.auth.get("/user/me")),
@@ -14973,6 +14984,12 @@ var tools = {
14973
14984
  inputSchema: exports_external.object({}),
14974
14985
  execute: async (client) => unwrap2(await client.admin.verifyFold())
14975
14986
  }),
14987
+ devpad_admin_reconcile_docs_css: define_tool({
14988
+ name: "devpad_admin_reconcile_docs_css",
14989
+ description: "Re-scrub CSS exfil vectors (@import, url()) out of every already-stored doc's <style> blocks for the authenticated account's own projects",
14990
+ inputSchema: exports_external.object({}),
14991
+ execute: async (client) => unwrap2(await client.admin.reconcileDocsCss())
14992
+ }),
14976
14993
  devpad_projects_delete: define_tool({
14977
14994
  name: "devpad_projects_delete",
14978
14995
  description: "Delete a project",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devpad/mcp",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "MCP server for devpad - exposes devpad API functionality via Model Context Protocol",
5
5
  "keywords": [
6
6
  "ai-tools",
@@ -50,7 +50,7 @@
50
50
  "zod-to-json-schema": "^3.24.6"
51
51
  },
52
52
  "devDependencies": {
53
- "@devpad/api": "^2.4.2",
53
+ "@devpad/api": "^2.4.3",
54
54
  "@types/node": "^24.3.0",
55
55
  "typescript": "^5.0.0"
56
56
  },