Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
islase
approved these changes
Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a small, self-contained example under
examples/wellness-signal-minimizer/that connects tobee mcp serveover stdio, calls thebee_searchtool, and prints only coarse, aggregated wellness signals (signal name and approximate mention count). It never prints transcript text, conversation IDs or timestamps.No changes to
sources/or to any existing file.Why
The MCP docs show how to connect assistants to Bee context. This example shows a complementary pattern for developers building on top of it: minimize before you share. Bee context is private by nature. Anything that leaves the machine (to a caregiver, a dashboard, an LLM prompt) should first be reduced to the least informative form that still answers the question.
It came out of building a consent-scoped family wellness skill for the Amazon Developer Hackathon.
Files
examples/wellness-signal-minimizer/index.mjs: the example (plain ESM, no build step).examples/wellness-signal-minimizer/package.json: declares the MCP SDK dependency for the example only.examples/wellness-signal-minimizer/README.md: usage, design notes, limitations.The folder is outside
tsconfig.json(include: sources/**/*.ts), outside the bundle, and outsidefilesinpackage.json, so it does not affect typecheck, build or the published package.How it was tested
Environment: Windows 11, Node 24.14.1, Bun 1.4.3, bee-cli built from
mainatfa9580d(0.9.0), signed in to a real Bee account. The example dependency resolved to@modelcontextprotocol/sdk@1.32.1.Repo checks, run on clean
mainand again with the example added, with identical results:bun install: OKbun run typecheck: OKbun run build: OKbun test: 381 pass, 1 skip, 2 fail, 1 error in both runs. The two failures (lib integration > data api builds threads arguments,photos command (registry-derived) > get --output ...) already fail onmainin my environment and are unrelated to this change.Example, run as
node index.mjs --command ../../dist/bee ...:--days 3 --debugand--days 30 --debug: exit 0. stdout is a JSON object with onlywindowDays,signalsandnote. Everymentionsvalue was a number (nevernull). stderr contained only the structural[debug] <signal>/<term>: keys=...lines and no conversation text.--days 0and--days 31: exit 2 with--days must be an integer between 1 and 30.--command /no/existe: exit 1 after about 2 s withCould not read Bee context: MCP error -32000: Connection closed, with no hang.bee_searchresponse structure (keys only, no values): a text content part whose JSON is{ results, next_cursor, search_mode, timezone }, with items carryingid. The parser readsresultsand usesidfor de-duplication.Not tested: macOS or Linux, running the example under Bun, or accounts with a large volume of conversations.
Checklist
AGENTS.md: ranbun install,bun run typecheckandbun run buildbefore committingbee_searchparameters defined in its MCP input schema (query,limit,filter,mode,since)Notes for reviewers
bee_searchresponse shape. If the shape changes, the script reportsmentions: nullinstead of guessing.