@beeper/desktop-mcp 0.1.2 → 0.1.4

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 (95) hide show
  1. package/README.md +10 -7
  2. package/package.json +2 -2
  3. package/server.js +1 -1
  4. package/server.mjs +1 -1
  5. package/src/server.ts +1 -1
  6. package/src/tools/app/{open-app.ts → open-in-app.ts} +3 -3
  7. package/src/tools/chats/archive-chat.ts +2 -1
  8. package/src/tools/chats/get-chat.ts +1 -1
  9. package/src/tools/{reminders → chats/reminders}/clear-chat-reminder.ts +5 -4
  10. package/src/tools/{reminders → chats/reminders}/set-chat-reminder.ts +4 -4
  11. package/src/tools/chats/search-chats.ts +1 -0
  12. package/src/tools/index.ts +10 -10
  13. package/src/tools/messages/{get-attachment.ts → attachments/download-attachment.ts} +5 -5
  14. package/src/tools/messages/search-messages.ts +1 -0
  15. package/src/tools/messages/send-message.ts +4 -2
  16. package/tools/app/{open-app.d.ts → open-in-app.d.mts} +1 -1
  17. package/tools/app/open-in-app.d.mts.map +1 -0
  18. package/tools/app/{open-app.d.mts → open-in-app.d.ts} +1 -1
  19. package/tools/app/open-in-app.d.ts.map +1 -0
  20. package/tools/app/{open-app.js → open-in-app.js} +4 -4
  21. package/tools/app/open-in-app.js.map +1 -0
  22. package/tools/app/{open-app.mjs → open-in-app.mjs} +4 -4
  23. package/tools/app/open-in-app.mjs.map +1 -0
  24. package/tools/chats/archive-chat.d.mts.map +1 -1
  25. package/tools/chats/archive-chat.d.ts.map +1 -1
  26. package/tools/chats/archive-chat.js +1 -1
  27. package/tools/chats/archive-chat.js.map +1 -1
  28. package/tools/chats/archive-chat.mjs +1 -1
  29. package/tools/chats/archive-chat.mjs.map +1 -1
  30. package/tools/chats/get-chat.js +1 -1
  31. package/tools/chats/get-chat.js.map +1 -1
  32. package/tools/chats/get-chat.mjs +1 -1
  33. package/tools/chats/get-chat.mjs.map +1 -1
  34. package/tools/chats/reminders/clear-chat-reminder.d.mts.map +1 -0
  35. package/tools/chats/reminders/clear-chat-reminder.d.ts.map +1 -0
  36. package/tools/{reminders → chats/reminders}/clear-chat-reminder.js +4 -4
  37. package/tools/chats/reminders/clear-chat-reminder.js.map +1 -0
  38. package/tools/{reminders → chats/reminders}/clear-chat-reminder.mjs +4 -4
  39. package/tools/chats/reminders/clear-chat-reminder.mjs.map +1 -0
  40. package/tools/chats/reminders/set-chat-reminder.d.mts.map +1 -0
  41. package/tools/chats/reminders/set-chat-reminder.d.ts.map +1 -0
  42. package/tools/{reminders → chats/reminders}/set-chat-reminder.js +4 -4
  43. package/tools/chats/reminders/set-chat-reminder.js.map +1 -0
  44. package/tools/{reminders → chats/reminders}/set-chat-reminder.mjs +4 -4
  45. package/tools/chats/reminders/set-chat-reminder.mjs.map +1 -0
  46. package/tools/chats/search-chats.d.mts.map +1 -1
  47. package/tools/chats/search-chats.d.ts.map +1 -1
  48. package/tools/chats/search-chats.js +1 -0
  49. package/tools/chats/search-chats.js.map +1 -1
  50. package/tools/chats/search-chats.mjs +1 -0
  51. package/tools/chats/search-chats.mjs.map +1 -1
  52. package/tools/index.js +10 -10
  53. package/tools/index.js.map +1 -1
  54. package/tools/index.mjs +10 -10
  55. package/tools/index.mjs.map +1 -1
  56. package/tools/messages/{get-attachment.d.ts → attachments/download-attachment.d.mts} +1 -1
  57. package/tools/messages/attachments/download-attachment.d.mts.map +1 -0
  58. package/tools/messages/{get-attachment.d.mts → attachments/download-attachment.d.ts} +1 -1
  59. package/tools/messages/attachments/download-attachment.d.ts.map +1 -0
  60. package/tools/messages/{get-attachment.js → attachments/download-attachment.js} +6 -6
  61. package/tools/messages/attachments/download-attachment.js.map +1 -0
  62. package/tools/messages/{get-attachment.mjs → attachments/download-attachment.mjs} +6 -6
  63. package/tools/messages/attachments/download-attachment.mjs.map +1 -0
  64. package/tools/messages/search-messages.d.mts.map +1 -1
  65. package/tools/messages/search-messages.d.ts.map +1 -1
  66. package/tools/messages/search-messages.js +1 -0
  67. package/tools/messages/search-messages.js.map +1 -1
  68. package/tools/messages/search-messages.mjs +1 -0
  69. package/tools/messages/search-messages.mjs.map +1 -1
  70. package/tools/messages/send-message.d.mts.map +1 -1
  71. package/tools/messages/send-message.d.ts.map +1 -1
  72. package/tools/messages/send-message.js +2 -2
  73. package/tools/messages/send-message.js.map +1 -1
  74. package/tools/messages/send-message.mjs +2 -2
  75. package/tools/messages/send-message.mjs.map +1 -1
  76. package/tools/app/open-app.d.mts.map +0 -1
  77. package/tools/app/open-app.d.ts.map +0 -1
  78. package/tools/app/open-app.js.map +0 -1
  79. package/tools/app/open-app.mjs.map +0 -1
  80. package/tools/messages/get-attachment.d.mts.map +0 -1
  81. package/tools/messages/get-attachment.d.ts.map +0 -1
  82. package/tools/messages/get-attachment.js.map +0 -1
  83. package/tools/messages/get-attachment.mjs.map +0 -1
  84. package/tools/reminders/clear-chat-reminder.d.mts.map +0 -1
  85. package/tools/reminders/clear-chat-reminder.d.ts.map +0 -1
  86. package/tools/reminders/clear-chat-reminder.js.map +0 -1
  87. package/tools/reminders/clear-chat-reminder.mjs.map +0 -1
  88. package/tools/reminders/set-chat-reminder.d.mts.map +0 -1
  89. package/tools/reminders/set-chat-reminder.d.ts.map +0 -1
  90. package/tools/reminders/set-chat-reminder.js.map +0 -1
  91. package/tools/reminders/set-chat-reminder.mjs.map +0 -1
  92. /package/tools/{reminders → chats/reminders}/clear-chat-reminder.d.mts +0 -0
  93. /package/tools/{reminders → chats/reminders}/clear-chat-reminder.d.ts +0 -0
  94. /package/tools/{reminders → chats/reminders}/set-chat-reminder.d.mts +0 -0
  95. /package/tools/{reminders → chats/reminders}/set-chat-reminder.d.ts +0 -0
package/README.md CHANGED
@@ -218,17 +218,21 @@ The following tools are available in this MCP server.
218
218
 
219
219
  ### Resource `app`:
220
220
 
221
- - `open_app` (`write`) tags: [app]: Open Beeper, optionally focusing a chat or message, or pre-filling a draft.
221
+ - `open_in_app` (`write`) tags: [app]: Open Beeper, optionally focusing a chat or message, or pre-filling a draft.
222
222
 
223
223
  ### Resource `chats`:
224
224
 
225
- - `archive_chat` (`write`) tags: [chats]: Archive or unarchive a chat.
226
225
  - `get_chat` (`read`) tags: [chats]: Get chat details: metadata, participants (limited), last activity.
226
+ - `archive_chat` (`write`) tags: [chats]: Archive or unarchive a chat.
227
227
  - `search_chats` (`read`) tags: [chats]: Search chats by inbox, type, unread status, or text. Paginates.
228
228
 
229
+ ### Resource `chats.reminders`:
230
+
231
+ - `set_chat_reminder` (`write`) tags: [chats]: Set a reminder for a chat at a specific time.
232
+ - `clear_chat_reminder` (`write`) tags: [chats]: Clear a chat reminder.
233
+
229
234
  ### Resource `messages`:
230
235
 
231
- - `get_attachment` (`write`) tags: [messages]: Download a message attachment and return the local file path.
232
236
  - `search_messages` (`read`) tags: [messages]: Search messages across chats using Beeper's message index.
233
237
  - When to use: find messages by text and/or filters (chatIDs, accountIDs, chatType, media type filters, sender, date ranges).
234
238
  - CRITICAL: Query is LITERAL WORD MATCHING, NOT semantic search! Only finds messages containing these EXACT words.
@@ -244,9 +248,8 @@ The following tools are available in this MCP server.
244
248
  • "What's the name of your work chat?" (could be "Team", company name, project name)
245
249
  • "Who are the participants?" (use participantQuery in find-chats)
246
250
  Returns: matching messages and referenced chats.
247
- - `send_message` (`write`) tags: [messages]: Send a text message to a chat. Can reply to an existing message.
251
+ - `send_message` (`write`) tags: [messages]: Send a text message to a specific chat. Supports replying to existing messages. Returns the sent message ID and a deeplink to the chat
248
252
 
249
- ### Resource `reminders`:
253
+ ### Resource `messages.attachments`:
250
254
 
251
- - `clear_chat_reminder` (`write`) tags: [reminders]: Clear a chat reminder.
252
- - `set_chat_reminder` (`write`) tags: [reminders]: Set a reminder for a chat at a specific time.
255
+ - `download_attachment` (`write`) tags: [messages]: Download a message attachment and return the local file path.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beeper/desktop-mcp",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "The official MCP Server for the Beeper Desktop API",
5
5
  "author": "Beeper Desktop <help@beeper.com>",
6
6
  "types": "./index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "fix": "eslint --fix --ext ts,js ."
28
28
  },
29
29
  "dependencies": {
30
- "@beeper/desktop-api": "^0.1.2",
30
+ "@beeper/desktop-api": "^0.1.4",
31
31
  "@cloudflare/cabidela": "^0.2.4",
32
32
  "@modelcontextprotocol/sdk": "^1.11.5",
33
33
  "@valtown/deno-http-worker": "^0.0.21",
package/server.js CHANGED
@@ -21,7 +21,7 @@ var tools_2 = require("./tools.js");
21
21
  Object.defineProperty(exports, "endpoints", { enumerable: true, get: function () { return tools_2.endpoints; } });
22
22
  const newMcpServer = () => new mcp_js_1.McpServer({
23
23
  name: 'beeper_desktop_api_api',
24
- version: '0.1.2',
24
+ version: '0.1.4',
25
25
  }, {
26
26
  capabilities: { tools: {}, logging: {} },
27
27
  instructions: 'This MCP server provides access to your Beeper Desktop messages and chats. Use the search and find tools to locate messages and conversations, then use send_message to respond.',
package/server.mjs CHANGED
@@ -10,7 +10,7 @@ export { ClientType } from "./compat.mjs";
10
10
  export { endpoints } from "./tools.mjs";
11
11
  export const newMcpServer = () => new McpServer({
12
12
  name: 'beeper_desktop_api_api',
13
- version: '0.1.2',
13
+ version: '0.1.4',
14
14
  }, {
15
15
  capabilities: { tools: {}, logging: {} },
16
16
  instructions: 'This MCP server provides access to your Beeper Desktop messages and chats. Use the search and find tools to locate messages and conversations, then use send_message to respond.',
package/src/server.ts CHANGED
@@ -32,7 +32,7 @@ export const newMcpServer = () =>
32
32
  new McpServer(
33
33
  {
34
34
  name: 'beeper_desktop_api_api',
35
- version: '0.1.2',
35
+ version: '0.1.4',
36
36
  },
37
37
  {
38
38
  capabilities: { tools: {}, logging: {} },
@@ -15,7 +15,7 @@ export const metadata: Metadata = {
15
15
  };
16
16
 
17
17
  export const tool: Tool = {
18
- name: 'open_app',
18
+ name: 'open_in_app',
19
19
  description: 'Open Beeper, optionally focusing a chat or message, or pre-filling a draft.',
20
20
  inputSchema: {
21
21
  type: 'object',
@@ -23,7 +23,7 @@ export const tool: Tool = {
23
23
  chatID: {
24
24
  type: 'string',
25
25
  description:
26
- 'Optional Beeper chat ID to focus after opening the app. If omitted, only opens/focuses the app.',
26
+ 'Optional Beeper chat ID (or local chat ID) to focus after opening the app. If omitted, only opens/focuses the app.',
27
27
  },
28
28
  draftText: {
29
29
  type: 'string',
@@ -41,7 +41,7 @@ export const tool: Tool = {
41
41
 
42
42
  export const handler = async (client: BeeperDesktop, args: Record<string, unknown> | undefined) => {
43
43
  const body = args as any;
44
- return asTextContentResult(await client.app.focus(body));
44
+ return asTextContentResult(await client.app.open(body));
45
45
  };
46
46
 
47
47
  export default { metadata, tool, handler };
@@ -22,7 +22,8 @@ export const tool: Tool = {
22
22
  properties: {
23
23
  chatID: {
24
24
  type: 'string',
25
- description: 'The identifier of the chat to archive or unarchive',
25
+ description:
26
+ 'The identifier of the chat to archive or unarchive (accepts both chatID and local chat ID)',
26
27
  },
27
28
  archived: {
28
29
  type: 'boolean',
@@ -40,7 +40,7 @@ export const tool: Tool = {
40
40
 
41
41
  export const handler = async (client: BeeperDesktop, args: Record<string, unknown> | undefined) => {
42
42
  const body = args as any;
43
- return asTextContentResult(await client.chats.get(body));
43
+ return asTextContentResult(await client.chats.retrieve(body));
44
44
  };
45
45
 
46
46
  export default { metadata, tool, handler };
@@ -6,9 +6,9 @@ import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
6
  import BeeperDesktop from '@beeper/desktop-api';
7
7
 
8
8
  export const metadata: Metadata = {
9
- resource: 'reminders',
9
+ resource: 'chats.reminders',
10
10
  operation: 'write',
11
- tags: ['reminders'],
11
+ tags: ['chats'],
12
12
  httpMethod: 'post',
13
13
  httpPath: '/v0/clear-chat-reminder',
14
14
  operationId: 'clear_chat_reminder',
@@ -22,7 +22,8 @@ export const tool: Tool = {
22
22
  properties: {
23
23
  chatID: {
24
24
  type: 'string',
25
- description: 'The identifier of the chat to clear reminder from',
25
+ description:
26
+ 'The identifier of the chat to clear reminder from (accepts both chatID and local chat ID)',
26
27
  },
27
28
  },
28
29
  required: ['chatID'],
@@ -32,7 +33,7 @@ export const tool: Tool = {
32
33
 
33
34
  export const handler = async (client: BeeperDesktop, args: Record<string, unknown> | undefined) => {
34
35
  const body = args as any;
35
- return asTextContentResult(await client.reminders.clear(body));
36
+ return asTextContentResult(await client.chats.reminders.delete(body));
36
37
  };
37
38
 
38
39
  export default { metadata, tool, handler };
@@ -6,9 +6,9 @@ import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
6
  import BeeperDesktop from '@beeper/desktop-api';
7
7
 
8
8
  export const metadata: Metadata = {
9
- resource: 'reminders',
9
+ resource: 'chats.reminders',
10
10
  operation: 'write',
11
- tags: ['reminders'],
11
+ tags: ['chats'],
12
12
  httpMethod: 'post',
13
13
  httpPath: '/v0/set-chat-reminder',
14
14
  operationId: 'set_chat_reminder',
@@ -22,7 +22,7 @@ export const tool: Tool = {
22
22
  properties: {
23
23
  chatID: {
24
24
  type: 'string',
25
- description: 'The identifier of the chat to set reminder for',
25
+ description: 'The identifier of the chat to set reminder for (accepts both chatID and local chat ID)',
26
26
  },
27
27
  reminder: {
28
28
  type: 'object',
@@ -47,7 +47,7 @@ export const tool: Tool = {
47
47
 
48
48
  export const handler = async (client: BeeperDesktop, args: Record<string, unknown> | undefined) => {
49
49
  const body = args as any;
50
- return asTextContentResult(await client.reminders.set(body));
50
+ return asTextContentResult(await client.chats.reminders.create(body));
51
51
  };
52
52
 
53
53
  export default { metadata, tool, handler };
@@ -25,6 +25,7 @@ export const tool: Tool = {
25
25
  description: 'Provide an array of account IDs to filter chats from specific messaging accounts only',
26
26
  items: {
27
27
  type: 'string',
28
+ description: 'Beeper account ID this resource belongs to.',
28
29
  },
29
30
  },
30
31
  cursor: {
@@ -5,15 +5,15 @@ import { Metadata, Endpoint, HandlerFunction } from './types';
5
5
  export { Metadata, Endpoint, HandlerFunction };
6
6
 
7
7
  import get_accounts from './accounts/get-accounts';
8
- import open_app from './app/open-app';
9
- import archive_chat from './chats/archive-chat';
8
+ import open_in_app from './app/open-in-app';
10
9
  import get_chat from './chats/get-chat';
10
+ import archive_chat from './chats/archive-chat';
11
11
  import search_chats from './chats/search-chats';
12
- import get_attachment from './messages/get-attachment';
12
+ import set_chat_reminder from './chats/reminders/set-chat-reminder';
13
+ import clear_chat_reminder from './chats/reminders/clear-chat-reminder';
13
14
  import search_messages from './messages/search-messages';
14
15
  import send_message from './messages/send-message';
15
- import clear_chat_reminder from './reminders/clear-chat-reminder';
16
- import set_chat_reminder from './reminders/set-chat-reminder';
16
+ import download_attachment from './messages/attachments/download-attachment';
17
17
 
18
18
  export const endpoints: Endpoint[] = [];
19
19
 
@@ -22,15 +22,15 @@ function addEndpoint(endpoint: Endpoint) {
22
22
  }
23
23
 
24
24
  addEndpoint(get_accounts);
25
- addEndpoint(open_app);
26
- addEndpoint(archive_chat);
25
+ addEndpoint(open_in_app);
27
26
  addEndpoint(get_chat);
27
+ addEndpoint(archive_chat);
28
28
  addEndpoint(search_chats);
29
- addEndpoint(get_attachment);
29
+ addEndpoint(set_chat_reminder);
30
+ addEndpoint(clear_chat_reminder);
30
31
  addEndpoint(search_messages);
31
32
  addEndpoint(send_message);
32
- addEndpoint(clear_chat_reminder);
33
- addEndpoint(set_chat_reminder);
33
+ addEndpoint(download_attachment);
34
34
 
35
35
  export type Filter = {
36
36
  type: 'resource' | 'operation' | 'tag' | 'tool';
@@ -6,16 +6,16 @@ import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
6
  import BeeperDesktop from '@beeper/desktop-api';
7
7
 
8
8
  export const metadata: Metadata = {
9
- resource: 'messages',
9
+ resource: 'messages.attachments',
10
10
  operation: 'write',
11
11
  tags: ['messages'],
12
12
  httpMethod: 'post',
13
- httpPath: '/v0/get-attachment',
14
- operationId: 'get_attachment',
13
+ httpPath: '/v0/download-attachment',
14
+ operationId: 'download_attachment',
15
15
  };
16
16
 
17
17
  export const tool: Tool = {
18
- name: 'get_attachment',
18
+ name: 'download_attachment',
19
19
  description: 'Download a message attachment and return the local file path.',
20
20
  inputSchema: {
21
21
  type: 'object',
@@ -36,7 +36,7 @@ export const tool: Tool = {
36
36
 
37
37
  export const handler = async (client: BeeperDesktop, args: Record<string, unknown> | undefined) => {
38
38
  const body = args as any;
39
- return asTextContentResult(await client.messages.getAttachment(body));
39
+ return asTextContentResult(await client.messages.attachments.download(body));
40
40
  };
41
41
 
42
42
  export default { metadata, tool, handler };
@@ -26,6 +26,7 @@ export const tool: Tool = {
26
26
  description: 'Limit search to specific Beeper account IDs (bridge instances).',
27
27
  items: {
28
28
  type: 'string',
29
+ description: 'Beeper account ID this resource belongs to.',
29
30
  },
30
31
  },
31
32
  chatIDs: {
@@ -16,13 +16,15 @@ export const metadata: Metadata = {
16
16
 
17
17
  export const tool: Tool = {
18
18
  name: 'send_message',
19
- description: 'Send a text message to a chat. Can reply to an existing message.',
19
+ description:
20
+ 'Send a text message to a specific chat. Supports replying to existing messages. Returns the sent message ID and a deeplink to the chat',
20
21
  inputSchema: {
21
22
  type: 'object',
22
23
  properties: {
23
24
  chatID: {
24
25
  type: 'string',
25
- description: 'The identifier of the chat where the message will send',
26
+ description:
27
+ 'The identifier of the chat where the message will send (accepts both chatID and local chat ID)',
26
28
  },
27
29
  replyToMessageID: {
28
30
  type: 'string',
@@ -42,4 +42,4 @@ declare const _default: {
42
42
  handler: (client: BeeperDesktop, args: Record<string, unknown> | undefined) => Promise<import("@beeper/desktop-mcp/tools/types").ToolCallResult>;
43
43
  };
44
44
  export default _default;
45
- //# sourceMappingURL=open-app.d.ts.map
45
+ //# sourceMappingURL=open-in-app.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-in-app.d.mts","sourceRoot":"","sources":["../../src/tools/app/open-in-app.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAuBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
@@ -42,4 +42,4 @@ declare const _default: {
42
42
  handler: (client: BeeperDesktop, args: Record<string, unknown> | undefined) => Promise<import("@beeper/desktop-mcp/tools/types").ToolCallResult>;
43
43
  };
44
44
  export default _default;
45
- //# sourceMappingURL=open-app.d.mts.map
45
+ //# sourceMappingURL=open-in-app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-in-app.d.ts","sourceRoot":"","sources":["../../src/tools/app/open-in-app.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAuBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
@@ -12,14 +12,14 @@ exports.metadata = {
12
12
  operationId: 'open_app',
13
13
  };
14
14
  exports.tool = {
15
- name: 'open_app',
15
+ name: 'open_in_app',
16
16
  description: 'Open Beeper, optionally focusing a chat or message, or pre-filling a draft.',
17
17
  inputSchema: {
18
18
  type: 'object',
19
19
  properties: {
20
20
  chatID: {
21
21
  type: 'string',
22
- description: 'Optional Beeper chat ID to focus after opening the app. If omitted, only opens/focuses the app.',
22
+ description: 'Optional Beeper chat ID (or local chat ID) to focus after opening the app. If omitted, only opens/focuses the app.',
23
23
  },
24
24
  draftText: {
25
25
  type: 'string',
@@ -36,8 +36,8 @@ exports.tool = {
36
36
  };
37
37
  const handler = async (client, args) => {
38
38
  const body = args;
39
- return (0, types_1.asTextContentResult)(await client.app.focus(body));
39
+ return (0, types_1.asTextContentResult)(await client.app.open(body));
40
40
  };
41
41
  exports.handler = handler;
42
42
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
43
- //# sourceMappingURL=open-app.js.map
43
+ //# sourceMappingURL=open-in-app.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-in-app.js","sourceRoot":"","sources":["../../src/tools/app/open-in-app.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAgF;AAKnE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,KAAK,CAAC;IACb,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,cAAc;IACxB,WAAW,EAAE,UAAU;CACxB,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,6EAA6E;IAC1F,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,oHAAoH;aACvH;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,6DAA6D;aAC3E;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,4EAA4E;aAC1F;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAyC,EAAE,EAAE;IAChG,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1D,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -9,14 +9,14 @@ export const metadata = {
9
9
  operationId: 'open_app',
10
10
  };
11
11
  export const tool = {
12
- name: 'open_app',
12
+ name: 'open_in_app',
13
13
  description: 'Open Beeper, optionally focusing a chat or message, or pre-filling a draft.',
14
14
  inputSchema: {
15
15
  type: 'object',
16
16
  properties: {
17
17
  chatID: {
18
18
  type: 'string',
19
- description: 'Optional Beeper chat ID to focus after opening the app. If omitted, only opens/focuses the app.',
19
+ description: 'Optional Beeper chat ID (or local chat ID) to focus after opening the app. If omitted, only opens/focuses the app.',
20
20
  },
21
21
  draftText: {
22
22
  type: 'string',
@@ -33,7 +33,7 @@ export const tool = {
33
33
  };
34
34
  export const handler = async (client, args) => {
35
35
  const body = args;
36
- return asTextContentResult(await client.app.focus(body));
36
+ return asTextContentResult(await client.app.open(body));
37
37
  };
38
38
  export default { metadata, tool, handler };
39
- //# sourceMappingURL=open-app.mjs.map
39
+ //# sourceMappingURL=open-in-app.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-in-app.mjs","sourceRoot":"","sources":["../../src/tools/app/open-in-app.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,iCAAiC;AAK/E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,KAAK;IACf,SAAS,EAA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,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
1
+ {"version":3,"file":"archive-chat.d.mts","sourceRoot":"","sources":["../../src/tools/chats/archive-chat.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAmBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"archive-chat.d.ts","sourceRoot":"","sources":["../../src/tools/chats/archive-chat.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAkBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
1
+ {"version":3,"file":"archive-chat.d.ts","sourceRoot":"","sources":["../../src/tools/chats/archive-chat.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAmBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
@@ -19,7 +19,7 @@ exports.tool = {
19
19
  properties: {
20
20
  chatID: {
21
21
  type: 'string',
22
- description: 'The identifier of the chat to archive or unarchive',
22
+ description: 'The identifier of the chat to archive or unarchive (accepts both chatID and local chat ID)',
23
23
  },
24
24
  archived: {
25
25
  type: 'boolean',
@@ -1 +1 @@
1
- {"version":3,"file":"archive-chat.js","sourceRoot":"","sources":["../../src/tools/chats/archive-chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAgF;AAKnE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,kBAAkB;IAC5B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,8BAA8B;IAC3C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,W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,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAyC,EAAE,EAAE;IAChG,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/D,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -16,7 +16,7 @@ export const tool = {
16
16
  properties: {
17
17
  chatID: {
18
18
  type: 'string',
19
- description: 'The identifier of the chat to archive or unarchive',
19
+ description: 'The identifier of the chat to archive or unarchive (accepts both chatID and local chat ID)',
20
20
  },
21
21
  archived: {
22
22
  type: 'boolean',
@@ -1 +1 @@
1
- {"version":3,"file":"archive-chat.mjs","sourceRoot":"","sources":["../../src/tools/chats/archive-chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,iCAAiC;AAK/E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,kBAAkB;IAC5B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,8BAA8B;IAC3C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oDAAoD;aAClE;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,qCAAqC;aACnD;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD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,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/D,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -34,7 +34,7 @@ exports.tool = {
34
34
  };
35
35
  const handler = async (client, args) => {
36
36
  const body = args;
37
- return (0, types_1.asTextContentResult)(await client.chats.get(body));
37
+ return (0, types_1.asTextContentResult)(await client.chats.retrieve(body));
38
38
  };
39
39
  exports.handler = handler;
40
40
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"get-chat.js","sourceRoot":"","sources":["../../src/tools/chats/get-chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAgF;AAKnE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,cAAc;IACxB,WAAW,EAAE,UAAU;CACxB,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,oEAAoE;IACjF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,iIAAiI;aACpI;YACD,mBAAmB,EAAE;gBACnB,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,4FAA4F;aAC/F;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAyC,EAAE,EAAE;IAChG,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAA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@@ export const tool = {
31
31
  };
32
32
  export const handler = async (client, args) => {
33
33
  const body = args;
34
- return asTextContentResult(await client.chats.get(body));
34
+ return asTextContentResult(await client.chats.retrieve(body));
35
35
  };
36
36
  export default { metadata, tool, handler };
37
37
  //# sourceMappingURL=get-chat.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-chat.mjs","sourceRoot":"","sources":["../../src/tools/chats/get-chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,iCAAiC;AAK/E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,cAAc;IACxB,WAAW,EAAE,UAAU;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,oEAAoE;IACjF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,iIAAiI;aACpI;YACD,mBAAmB,EAAE;gBACnB,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,4FAA4F;aAC/F;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAyC,EAAE,EAAE;IAChG,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;AAC3D,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"get-chat.mjs","sourceRoot":"","sources":["../../src/tools/chats/get-chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,iCAAiC;AAK/E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,cAAc;IACxB,WAAW,EAAE,UAAU;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,oEAAoE;IACjF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,iIAAiI;aACpI;YACD,mBAAmB,EAAE;gBACnB,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,4FAA4F;aAC/F;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAyC,EAAE,EAAE;IAChG,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AAChE,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clear-chat-reminder.d.mts","sourceRoot":"","sources":["../../../src/tools/chats/reminders/clear-chat-reminder.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAelB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clear-chat-reminder.d.ts","sourceRoot":"","sources":["../../../src/tools/chats/reminders/clear-chat-reminder.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAelB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.handler = exports.tool = exports.metadata = void 0;
5
5
  const types_1 = require("@beeper/desktop-mcp/tools/types");
6
6
  exports.metadata = {
7
- resource: 'reminders',
7
+ resource: 'chats.reminders',
8
8
  operation: 'write',
9
- tags: ['reminders'],
9
+ tags: ['chats'],
10
10
  httpMethod: 'post',
11
11
  httpPath: '/v0/clear-chat-reminder',
12
12
  operationId: 'clear_chat_reminder',
@@ -19,7 +19,7 @@ exports.tool = {
19
19
  properties: {
20
20
  chatID: {
21
21
  type: 'string',
22
- description: 'The identifier of the chat to clear reminder from',
22
+ description: 'The identifier of the chat to clear reminder from (accepts both chatID and local chat ID)',
23
23
  },
24
24
  },
25
25
  required: ['chatID'],
@@ -28,7 +28,7 @@ exports.tool = {
28
28
  };
29
29
  const handler = async (client, args) => {
30
30
  const body = args;
31
- return (0, types_1.asTextContentResult)(await client.reminders.clear(body));
31
+ return (0, types_1.asTextContentResult)(await client.chats.reminders.delete(body));
32
32
  };
33
33
  exports.handler = handler;
34
34
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clear-chat-reminder.js","sourceRoot":"","sources":["../../../src/tools/chats/reminders/clear-chat-reminder.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAgF;AAKnE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,iBAAiB;IAC3B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,yBAAyB;IACnC,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,wBAAwB;IACrC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2FAA2F;aAC9F;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAyC,EAAE,EAAE;IAChG,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AACxE,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,9 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { asTextContentResult } from '@beeper/desktop-mcp/tools/types';
3
3
  export const metadata = {
4
- resource: 'reminders',
4
+ resource: 'chats.reminders',
5
5
  operation: 'write',
6
- tags: ['reminders'],
6
+ tags: ['chats'],
7
7
  httpMethod: 'post',
8
8
  httpPath: '/v0/clear-chat-reminder',
9
9
  operationId: 'clear_chat_reminder',
@@ -16,7 +16,7 @@ export const tool = {
16
16
  properties: {
17
17
  chatID: {
18
18
  type: 'string',
19
- description: 'The identifier of the chat to clear reminder from',
19
+ description: 'The identifier of the chat to clear reminder from (accepts both chatID and local chat ID)',
20
20
  },
21
21
  },
22
22
  required: ['chatID'],
@@ -25,7 +25,7 @@ export const tool = {
25
25
  };
26
26
  export const handler = async (client, args) => {
27
27
  const body = args;
28
- return asTextContentResult(await client.reminders.clear(body));
28
+ return asTextContentResult(await client.chats.reminders.delete(body));
29
29
  };
30
30
  export default { metadata, tool, handler };
31
31
  //# sourceMappingURL=clear-chat-reminder.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clear-chat-reminder.mjs","sourceRoot":"","sources":["../../../src/tools/chats/reminders/clear-chat-reminder.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,iCAAiC;AAK/E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,iBAAiB;IAC3B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,yBAAyB;IACnC,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,wBAAwB;IACrC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2FAA2F;aAC9F;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAyC,EAAE,EAAE;IAChG,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AACxE,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-chat-reminder.d.mts","sourceRoot":"","sources":["../../../src/tools/chats/reminders/set-chat-reminder.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA6BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-chat-reminder.d.ts","sourceRoot":"","sources":["../../../src/tools/chats/reminders/set-chat-reminder.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA6BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.handler = exports.tool = exports.metadata = void 0;
5
5
  const types_1 = require("@beeper/desktop-mcp/tools/types");
6
6
  exports.metadata = {
7
- resource: 'reminders',
7
+ resource: 'chats.reminders',
8
8
  operation: 'write',
9
- tags: ['reminders'],
9
+ tags: ['chats'],
10
10
  httpMethod: 'post',
11
11
  httpPath: '/v0/set-chat-reminder',
12
12
  operationId: 'set_chat_reminder',
@@ -19,7 +19,7 @@ exports.tool = {
19
19
  properties: {
20
20
  chatID: {
21
21
  type: 'string',
22
- description: 'The identifier of the chat to set reminder for',
22
+ description: 'The identifier of the chat to set reminder for (accepts both chatID and local chat ID)',
23
23
  },
24
24
  reminder: {
25
25
  type: 'object',
@@ -43,7 +43,7 @@ exports.tool = {
43
43
  };
44
44
  const handler = async (client, args) => {
45
45
  const body = args;
46
- return (0, types_1.asTextContentResult)(await client.reminders.set(body));
46
+ return (0, types_1.asTextContentResult)(await client.chats.reminders.create(body));
47
47
  };
48
48
  exports.handler = handler;
49
49
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -0,0 +1 @@
1
+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