Skip to content

Commit 604ab4a

Browse files
release: 0.1.5 (#12)
* feat(mcp): expose client options in `streamableHTTPApp` * chore(internal): codegen related update * feat(mcp): allow setting logging level * chore(internal): codegen related update * chore: ci build action * fix(mcp): fix query options parsing * feat(api): small tweaks * feat(api): fix typo in bearerAuth * fix: coerce nullable values to undefined * chore(mcp): upload dxt as release asset * fix(mcp): fix uploading dxt release assets * feat(api): manual updates * fix(ci): set permissions for DXT publish action * feat(api): manual updates * feat(api): manual updates * feat(api): manual updates * chore(mcp): rename dxt to mcpb * chore(internal): gitignore .mcpb files * feat(mcp): add docs search tool * chore(internal): codegen related update * release: 0.1.5 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 815d6ec commit 604ab4a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1157
-454
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
URL: https://pkg.stainless.com/s?subpackage=mcp-server
7676
AUTH: ${{ steps.github-oidc.outputs.github_token }}
7777
SHA: ${{ github.sha }}
78-
BUILD_PATH: packages/mcp-server/dist
78+
BASE_PATH: packages/mcp-server
7979
run: ./scripts/utils/upload-artifact.sh
8080
test:
8181
timeout-minutes: 10

.github/workflows/publish-npm.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
publish:
1717
name: publish
1818
runs-on: ubuntu-latest
19+
permissions:
20+
contents: write
1921

2022
steps:
2123
- uses: actions/checkout@v4
@@ -39,3 +41,10 @@ jobs:
3941
yarn tsn scripts/publish-packages.ts "{ \"paths_released\": \"$PATHS_RELEASED\" }"
4042
env:
4143
NPM_TOKEN: ${{ secrets.BEEPER_DESKTOP_NPM_TOKEN || secrets.NPM_TOKEN }}
44+
45+
- name: Upload MCP Server DXT GitHub release asset
46+
run: |
47+
gh release upload ${{ github.event.release.tag_name }} \
48+
packages/mcp-server/beeper_desktop_api_api.mcpb
49+
env:
50+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ dist
77
dist-deno
88
/*.tgz
99
.idea/
10-
10+
dist-bundle
11+
*.mcpb

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.4"
2+
".": "0.1.5"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 11
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/beeper%2Fbeeper-desktop-api-097cbf5de83619d0b40ba59377494db32816f2a5369d4e986a94568f3d79c7c8.yml
3-
openapi_spec_hash: cbb791aa1e4b75740911af7a0d93529d
4-
config_hash: 35aeee58f2bef9a9f5354e4c8504e26e
1+
configured_endpoints: 14
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/beeper%2Fbeeper-desktop-api-8c712fe19f280b0b89ecc8a3ce61e9f6b165cee97ce33f66c66a7a5db339c755.yml
3+
openapi_spec_hash: 1ea71129cc1a1ccc3dc8a99566082311
4+
config_hash: 061b75b88f80bb43b4121e5e7c1255e2

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
# Changelog
22

3+
## 0.1.5 (2025-09-19)
4+
5+
Full Changelog: [v0.1.4...v0.1.5](https://github.com/beeper/desktop-api-js/compare/v0.1.4...v0.1.5)
6+
7+
### Features
8+
9+
* **api:** fix typo in bearerAuth ([76ac2e1](https://github.com/beeper/desktop-api-js/commit/76ac2e16ba6422053a24de98270016f90abe77a7))
10+
* **api:** manual updates ([3c711d9](https://github.com/beeper/desktop-api-js/commit/3c711d9190aed783a3c80c994bdc1a44107cd1be))
11+
* **api:** manual updates ([6f43810](https://github.com/beeper/desktop-api-js/commit/6f43810bf528676498df6ee81380fdf181ef5363))
12+
* **api:** manual updates ([2bc9e1b](https://github.com/beeper/desktop-api-js/commit/2bc9e1b7b6006cf9341b0bbf7ad5fba6ae482822))
13+
* **api:** manual updates ([49f039b](https://github.com/beeper/desktop-api-js/commit/49f039bbfb9080e425ea0756bdab767107de711d))
14+
* **api:** small tweaks ([ab7267b](https://github.com/beeper/desktop-api-js/commit/ab7267b120d2f009050bf8944cb43f6a27631de5))
15+
* **mcp:** add docs search tool ([d90bd86](https://github.com/beeper/desktop-api-js/commit/d90bd86e672737b397e15d388f4e9ad1a8bd43e3))
16+
* **mcp:** allow setting logging level ([6f2169f](https://github.com/beeper/desktop-api-js/commit/6f2169fd4bb1aaf12dbc7765c304fc9b722b0c32))
17+
* **mcp:** expose client options in `streamableHTTPApp` ([9afd751](https://github.com/beeper/desktop-api-js/commit/9afd7510b1c96fe5624d1f37f84521c1be1a6353))
18+
19+
20+
### Bug Fixes
21+
22+
* **ci:** set permissions for DXT publish action ([5a6b63d](https://github.com/beeper/desktop-api-js/commit/5a6b63d7d7ba2514901ff5524890294feeaa981c))
23+
* coerce nullable values to undefined ([f43ac68](https://github.com/beeper/desktop-api-js/commit/f43ac6875858be2d27c31cbe7acc3d1fbac76c40))
24+
* **mcp:** fix query options parsing ([4f00241](https://github.com/beeper/desktop-api-js/commit/4f00241e35309ff7441fd842ba787a87caf17cae))
25+
* **mcp:** fix uploading dxt release assets ([1189099](https://github.com/beeper/desktop-api-js/commit/118909952860f420b4bc3f63b3de7e31d486c967))
26+
27+
28+
### Chores
29+
30+
* ci build action ([b63fda2](https://github.com/beeper/desktop-api-js/commit/b63fda25086cfcc8758df9b5fcb32b49a78df28c))
31+
* **internal:** codegen related update ([b244e26](https://github.com/beeper/desktop-api-js/commit/b244e2647d3fd792e3764127ebdd8dc0c0f6df7f))
32+
* **internal:** codegen related update ([b961076](https://github.com/beeper/desktop-api-js/commit/b961076bf7533638f00eebb1b2a81508db35ad7b))
33+
* **internal:** codegen related update ([dd44c80](https://github.com/beeper/desktop-api-js/commit/dd44c803559a85fe7bc1f34fe7a5c4a356ec3460))
34+
* **internal:** gitignore .mcpb files ([5a8ade3](https://github.com/beeper/desktop-api-js/commit/5a8ade3b8c2fff3764893114e5eb862604fc5c6b))
35+
* **mcp:** rename dxt to mcpb ([343d030](https://github.com/beeper/desktop-api-js/commit/343d0303c26c103a763be49e7319bee88aa71b7e))
36+
* **mcp:** upload dxt as release asset ([55f6005](https://github.com/beeper/desktop-api-js/commit/55f6005d92b7f26a46c49ba76f17f7ea34b8c4b9))
37+
338
## 0.1.4 (2025-09-01)
439

540
Full Changelog: [v0.1.3...v0.1.4](https://github.com/beeper/desktop-api-js/compare/v0.1.3...v0.1.4)

api.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,36 @@ Methods:
2424

2525
Types:
2626

27+
- <code><a href="./src/resources/app.ts">AppDownloadAssetResponse</a></code>
2728
- <code><a href="./src/resources/app.ts">AppOpenResponse</a></code>
29+
- <code><a href="./src/resources/app.ts">AppSearchResponse</a></code>
2830

2931
Methods:
3032

33+
- <code title="post /v0/download-asset">client.app.<a href="./src/resources/app.ts">downloadAsset</a>({ ...params }) -> AppDownloadAssetResponse</code>
3134
- <code title="post /v0/open-app">client.app.<a href="./src/resources/app.ts">open</a>({ ...params }) -> AppOpenResponse</code>
35+
- <code title="get /v0/search">client.app.<a href="./src/resources/app.ts">search</a>({ ...params }) -> AppSearchResponse</code>
36+
37+
# Contacts
38+
39+
Types:
40+
41+
- <code><a href="./src/resources/contacts.ts">ContactSearchResponse</a></code>
42+
43+
Methods:
44+
45+
- <code title="get /v0/search-users">client.contacts.<a href="./src/resources/contacts.ts">search</a>({ ...params }) -> ContactSearchResponse</code>
3246

3347
# Chats
3448

3549
Types:
3650

3751
- <code><a href="./src/resources/chats/chats.ts">Chat</a></code>
52+
- <code><a href="./src/resources/chats/chats.ts">ChatCreateResponse</a></code>
3853

3954
Methods:
4055

56+
- <code title="post /v0/create-chat">client.chats.<a href="./src/resources/chats/chats.ts">create</a>({ ...params }) -> ChatCreateResponse</code>
4157
- <code title="get /v0/get-chat">client.chats.<a href="./src/resources/chats/chats.ts">retrieve</a>({ ...params }) -> Chat</code>
4258
- <code title="post /v0/archive-chat">client.chats.<a href="./src/resources/chats/chats.ts">archive</a>({ ...params }) -> BaseResponse</code>
4359
- <code title="get /v0/search-chats">client.chats.<a href="./src/resources/chats/chats.ts">search</a>({ ...params }) -> ChatsCursor</code>
@@ -53,22 +69,12 @@ Methods:
5369

5470
Types:
5571

56-
- <code><a href="./src/resources/messages/messages.ts">MessageSendResponse</a></code>
57-
58-
Methods:
59-
60-
- <code title="get /v0/search-messages">client.messages.<a href="./src/resources/messages/messages.ts">search</a>({ ...params }) -> MessagesCursor</code>
61-
- <code title="post /v0/send-message">client.messages.<a href="./src/resources/messages/messages.ts">send</a>({ ...params }) -> MessageSendResponse</code>
62-
63-
## Attachments
64-
65-
Types:
66-
67-
- <code><a href="./src/resources/messages/attachments.ts">AttachmentDownloadResponse</a></code>
72+
- <code><a href="./src/resources/messages.ts">MessageSendResponse</a></code>
6873

6974
Methods:
7075

71-
- <code title="post /v0/download-attachment">client.messages.attachments.<a href="./src/resources/messages/attachments.ts">download</a>({ ...params }) -> AttachmentDownloadResponse</code>
76+
- <code title="get /v0/search-messages">client.messages.<a href="./src/resources/messages.ts">search</a>({ ...params }) -> MessagesCursor</code>
77+
- <code title="post /v0/send-message">client.messages.<a href="./src/resources/messages.ts">send</a>({ ...params }) -> MessageSendResponse</code>
7278

7379
# Token
7480

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@beeper/desktop-api",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "The official TypeScript library for the Beeper Desktop API",
55
"author": "Beeper Desktop <[email protected]>",
66
"types": "dist/index.d.ts",

packages/mcp-server/README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,14 @@ The following tools are available in this MCP server.
218218

219219
### Resource `app`:
220220

221-
- `open_in_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 Desktop and optionally navigate to a specific chat, message, or pre-fill draft text and attachment.
222+
- `search` (`read`) tags: [app]: Search for chats, participant name matches in groups, and the first page of messages in one call. Use this when the user asks for a specific chat, group, or person.
222223

223224
### Resource `chats`:
224225

225226
- `get_chat` (`read`) tags: [chats]: Get chat details: metadata, participants (limited), last activity.
226227
- `archive_chat` (`write`) tags: [chats]: Archive or unarchive a chat.
227-
- `search_chats` (`read`) tags: [chats]: Search chats by inbox, type, unread status, or text. Paginates.
228+
- `search_chats` (`read`) tags: [chats]: Search chats by title/network or participants using Beeper Desktop's renderer algorithm. Optional 'scope'.
228229

229230
### Resource `chats.reminders`:
230231

@@ -239,17 +240,11 @@ The following tools are available in this MCP server.
239240
• ✅ RIGHT: query="dinner" or query="sick" or query="error" (single words users type)
240241
• ❌ WRONG: query="dinner plans tonight" or query="health issues" (phrases/concepts)
241242
• The query matches ALL words provided (in any order). Example: query="flight booking" finds messages with both "flight" AND "booking".
242-
- Media filters: Use onlyWithMedia for any media, or specific filters like onlyWithVideo, onlyWithImage, onlyWithLink, onlyWithFile for specific types.
243-
- Pagination: use 'oldestCursor' + direction='before' for older; 'newestCursor' + direction='after' for newer.
244243
- Performance: provide chatIDs/accountIDs when known. Omitted 'query' returns results based on filters only. Partial matches enabled; 'excludeLowPriority' defaults to true.
245244
- Workflow tip: To search messages in specific conversations: 1) Use find-chats to get chatIDs, 2) Use search-messages with those chatIDs.
246245
- IMPORTANT: Chat names vary widely. ASK the user for clarification:
247246
• "Which chat do you mean by family?" (could be "The Smiths", "Mom Dad Kids", etc.)
248247
• "What's the name of your work chat?" (could be "Team", company name, project name)
249-
• "Who are the participants?" (use participantQuery in find-chats)
248+
• "Who are the participants?" (use scope="participants" in search-chats)
250249
Returns: matching messages and referenced chats.
251250
- `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
252-
253-
### Resource `messages.attachments`:
254-
255-
- `download_attachment` (`write`) tags: [messages]: Download a message attachment and return the local file path.

packages/mcp-server/build

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,27 @@ cp tsconfig.dist-src.json dist/src/tsconfig.json
3030
chmod +x dist/index.js
3131

3232
DIST_PATH=./dist PKG_IMPORT_PATH=@beeper/desktop-mcp/ node ../../scripts/utils/postprocess-files.cjs
33+
34+
# mcp bundle
35+
rm -rf dist-bundle beeper_desktop_api_api.mcpb; mkdir dist-bundle
36+
37+
# copy package.json
38+
PKG_JSON_PATH=../../packages/mcp-server/package.json node ../../scripts/utils/make-dist-package-json.cjs > dist-bundle/package.json
39+
40+
# copy files
41+
node scripts/copy-bundle-files.cjs
42+
43+
# install runtime deps
44+
cd dist-bundle
45+
npm install
46+
cd ..
47+
48+
# pack bundle
49+
cp manifest.json dist-bundle
50+
51+
npx mcpb pack dist-bundle beeper_desktop_api_api.mcpb
52+
53+
npx mcpb sign beeper_desktop_api_api.mcpb --self-signed
54+
55+
# clean up
56+
rm -rf dist-bundle

0 commit comments

Comments
 (0)