@devpad/mcp 2.4.1 → 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 +21 -3
  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 = {
@@ -14280,10 +14285,11 @@ var ApiClient2 = class {
14280
14285
  return this.clients.tasks.get("/tasks/ready", Object.keys(query).length > 0 ? { query } : {});
14281
14286
  }),
14282
14287
  tree: (id2, depth) => wrap(() => this.clients.tasks.get(`/tasks/${id2}/tree`, depth ? { query: { depth: String(depth) } } : {})),
14283
- near: (id2) => wrap(() => this.clients.tasks.get(`/tasks/${id2}/near`)),
14288
+ near: (id2, depth) => wrap(() => this.clients.tasks.get(`/tasks/${id2}/near`, depth ? { query: { depth: String(depth) } } : {})),
14284
14289
  ancestors: (id2) => wrap(() => this.clients.tasks.get(`/tasks/${id2}/ancestors`)),
14285
14290
  claim: (id2, data) => wrap(() => this.clients.tasks.post(`/tasks/${id2}/claim`, { body: data })),
14286
14291
  done: (id2, data) => wrap(() => this.clients.tasks.post(`/tasks/${id2}/done`, { body: data })),
14292
+ reopen: (id2) => wrap(() => this.clients.tasks.post(`/tasks/${id2}/reopen`)),
14287
14293
  advanceStage: (id2, data) => wrap(() => this.clients.tasks.post(`/tasks/${id2}/stage`, { body: data })),
14288
14294
  link: (data) => wrap(() => this.clients.tasks.post("/tasks/link", { body: data })),
14289
14295
  unlink: (link_id) => wrap(() => this.clients.tasks.delete(`/tasks/link/${link_id}`)),
@@ -14302,6 +14308,10 @@ var ApiClient2 = class {
14302
14308
  push: (data) => wrap(() => this.clients.docs.post("/docs", { body: data })),
14303
14309
  pull: (id2, version2) => wrap(() => this.clients.docs.get(`/docs/${id2}`, version2 ? { query: { version: version2 } } : {})),
14304
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
+ },
14305
14315
  createThread: (document_id, data) => wrap(() => this.clients.docs.post(`/docs/${document_id}/threads`, { body: data })),
14306
14316
  replyThread: (document_id, thread_id, body) => wrap(() => this.clients.docs.post(`/docs/${document_id}/threads/${thread_id}/reply`, { body: { body } })),
14307
14317
  resolveThread: (document_id, thread_id) => wrap(() => this.clients.docs.post(`/docs/${document_id}/threads/${thread_id}/resolve`, {})),
@@ -14325,6 +14335,7 @@ var ApiClient2 = class {
14325
14335
  this.signoffs = {
14326
14336
  request: (data) => wrap(() => this.clients.signoffs.post("/signoffs", { body: data })),
14327
14337
  find: (id2) => wrap(() => this.clients.signoffs.get(`/signoffs/${id2}`)),
14338
+ findPending: (filters) => wrap(() => this.clients.signoffs.get("/signoffs", { query: filters })),
14328
14339
  decide: (id2, data) => wrap(() => this.clients.signoffs.post(`/signoffs/${id2}/decide`, { body: data }))
14329
14340
  };
14330
14341
  this.reviews = {
@@ -14475,7 +14486,8 @@ var ApiClient2 = class {
14475
14486
  })
14476
14487
  };
14477
14488
  this.admin = {
14478
- 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"))
14479
14491
  };
14480
14492
  this.user = {
14481
14493
  me: () => wrap(() => this.clients.auth.get("/user/me")),
@@ -14972,6 +14984,12 @@ var tools = {
14972
14984
  inputSchema: exports_external.object({}),
14973
14985
  execute: async (client) => unwrap2(await client.admin.verifyFold())
14974
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
+ }),
14975
14993
  devpad_projects_delete: define_tool({
14976
14994
  name: "devpad_projects_delete",
14977
14995
  description: "Delete a project",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devpad/mcp",
3
- "version": "2.4.1",
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.1",
53
+ "@devpad/api": "^2.4.3",
54
54
  "@types/node": "^24.3.0",
55
55
  "typescript": "^5.0.0"
56
56
  },