@devpad/mcp 2.2.0 → 2.2.1

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 +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12010,9 +12010,10 @@ var ApiClient2 = class {
12010
12010
  session: () => wrap(() => this.clients.auth_root.get("/auth/session")),
12011
12011
  keys: {
12012
12012
  list: () => wrap(() => this.clients.auth.get("/keys")),
12013
- create: (name) => wrap(() => this.clients.auth.post("/keys", {
12014
- body: name ? { name } : {}
12015
- })),
12013
+ create: (input) => {
12014
+ const body = typeof input === "string" ? { name: input } : input ?? {};
12015
+ return wrap(() => this.clients.auth.post("/keys", { body }));
12016
+ },
12016
12017
  revoke: (key_id) => wrap(() => this.clients.auth.delete(`/keys/${key_id}`)),
12017
12018
  remove: (key_id) => wrap(() => this.clients.auth.delete(`/keys/${key_id}`))
12018
12019
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devpad/mcp",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "MCP server for devpad - exposes devpad API functionality via Model Context Protocol",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",