@beeper/desktop-mcp 4.2.1 → 4.2.2

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.
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.handler = void 0;
4
4
  const utils_1 = require("./utils.js");
5
5
  const handler = async (client, args) => {
6
- const body = args;
7
- const output = await client.messages.send(body);
6
+ const { chatID, ...body } = args;
7
+ const output = await client.messages.send(chatID, body);
8
8
  const lines = [];
9
9
  if (output.pendingMessageID) {
10
- const deeplink = (0, utils_1.createOpenLink)('', body?.chatID ?? '');
10
+ const deeplink = (0, utils_1.createOpenLink)('', chatID ?? '');
11
11
  if (deeplink)
12
12
  lines.push(`**Open the chat in Beeper**: ${deeplink}`);
13
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"send-message.js","sourceRoot":"","sources":["../src/handlers/send-message.ts"],"names":[],"mappings":";;;AACA,sCAAkE;AAE3D,MAAM,OAAO,GAAoB,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;IAC7D,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEhD,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,IAAI,MAAM,CAAC,gBAAgB,EAAE,CAAC;QAC5B,MAAM,QAAQ,GAAG,IAAA,sBAAc,EAAC,EAAE,EAAE,IAAI,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC;QACxD,IAAI,QAAQ;YAAE,KAAK,CAAC,IAAI,CAAC,gCAAgC,QAAQ,EAAE,CAAC,CAAC;IACvE,CAAC;SAAM,CAAC;QACN,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;IACxC,CAAC;IAED,OAAO,IAAA,+BAAuB,EAAC,KAAK,CAAC,CAAC;AACxC,CAAC,CAAC;AAbW,QAAA,OAAO,WAalB"}
1
+ {"version":3,"file":"send-message.js","sourceRoot":"","sources":["../src/handlers/send-message.ts"],"names":[],"mappings":";;;AACA,sCAAkE;AAE3D,MAAM,OAAO,GAAoB,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;IAC7D,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAExD,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,IAAI,MAAM,CAAC,gBAAgB,EAAE,CAAC;QAC5B,MAAM,QAAQ,GAAG,IAAA,sBAAc,EAAC,EAAE,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC;QAClD,IAAI,QAAQ;YAAE,KAAK,CAAC,IAAI,CAAC,gCAAgC,QAAQ,EAAE,CAAC,CAAC;IACvE,CAAC;SAAM,CAAC;QACN,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;IACxC,CAAC;IAED,OAAO,IAAA,+BAAuB,EAAC,KAAK,CAAC,CAAC;AACxC,CAAC,CAAC;AAbW,QAAA,OAAO,WAalB"}
@@ -1,10 +1,10 @@
1
1
  import { asMarkdownContentResult, createOpenLink } from "./utils.mjs";
2
2
  export const handler = async (client, args) => {
3
- const body = args;
4
- const output = await client.messages.send(body);
3
+ const { chatID, ...body } = args;
4
+ const output = await client.messages.send(chatID, body);
5
5
  const lines = [];
6
6
  if (output.pendingMessageID) {
7
- const deeplink = createOpenLink('', body?.chatID ?? '');
7
+ const deeplink = createOpenLink('', chatID ?? '');
8
8
  if (deeplink)
9
9
  lines.push(`**Open the chat in Beeper**: ${deeplink}`);
10
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"send-message.mjs","sourceRoot":"","sources":["../src/handlers/send-message.ts"],"names":[],"mappings":"OACO,EAAE,uBAAuB,EAAE,cAAc,EAAE;AAElD,MAAM,CAAC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C,IAAI,CAAC,yBAAyB,CAAC,CAAC;IACxC,CAAC;IAED,OAAO,uBAAuB,CAAC,KAAK,CAAC,CAAC;AACxC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beeper/desktop-mcp",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
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": "^4.2.1",
30
+ "@beeper/desktop-api": "^4.2.2",
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
@@ -22,7 +22,7 @@ var tools_2 = require("./tools.js");
22
22
  Object.defineProperty(exports, "endpoints", { enumerable: true, get: function () { return tools_2.endpoints; } });
23
23
  const newMcpServer = () => new mcp_js_1.McpServer({
24
24
  name: 'beeper_desktop_api_api',
25
- version: '4.2.1',
25
+ version: '4.2.2',
26
26
  }, {
27
27
  capabilities: { tools: {}, logging: {} },
28
28
  instructions: 'Access to all chats and messages across networks using Beeper Desktop. Can be used to find, get, send, and manage messages and chats.',
package/server.mjs CHANGED
@@ -11,7 +11,7 @@ export { ClientType } from "./compat.mjs";
11
11
  export { endpoints } from "./tools.mjs";
12
12
  export const newMcpServer = () => new McpServer({
13
13
  name: 'beeper_desktop_api_api',
14
- version: '4.2.1',
14
+ version: '4.2.2',
15
15
  }, {
16
16
  capabilities: { tools: {}, logging: {} },
17
17
  instructions: 'Access to all chats and messages across networks using Beeper Desktop. Can be used to find, get, send, and manage messages and chats.',
@@ -2,12 +2,12 @@ import type { HandlerFunction } from '../tools/types';
2
2
  import { asMarkdownContentResult, createOpenLink } from './utils';
3
3
 
4
4
  export const handler: HandlerFunction = async (client, args) => {
5
- const body = args as any;
6
- const output = await client.messages.send(body);
5
+ const { chatID, ...body } = args as any;
6
+ const output = await client.messages.send(chatID, body);
7
7
 
8
8
  const lines: string[] = [];
9
9
  if (output.pendingMessageID) {
10
- const deeplink = createOpenLink('', body?.chatID ?? '');
10
+ const deeplink = createOpenLink('', chatID ?? '');
11
11
  if (deeplink) lines.push(`**Open the chat in Beeper**: ${deeplink}`);
12
12
  } else {
13
13
  lines.push('Failed to send message.');
package/src/server.ts CHANGED
@@ -34,7 +34,7 @@ export const newMcpServer = () =>
34
34
  new McpServer(
35
35
  {
36
36
  name: 'beeper_desktop_api_api',
37
- version: '4.2.1',
37
+ version: '4.2.2',
38
38
  },
39
39
  {
40
40
  capabilities: { tools: {}, logging: {} },