docs: fix agent discovery gaps (8 MCP tools, events resource, devices expand)#7
Merged
chenliuyun merged 1 commit intomainfrom Apr 19, 2026
Merged
Conversation
…s expand - capabilities.ts: add account_overview to MCP_TOOLS (8 total), expose switchbot://events in surfaces.mcp.resources - agent-guide.md: fix tool table to show all 8 tools, add MCP resource section, fix --on-change-only → --include-unchanged, fix events tail flag, add devices expand section with AC/Curtain/Blind/Relay examples - README.md: update MCP tool count to 8 + events resource, add devices expand and devices explain sections - capabilities test: assert 8 tools, account_overview, and resources array
chenliuyun
pushed a commit
that referenced
this pull request
Apr 20, 2026
Document every fix landed in this branch beyond the history-aggregate feature: bugs #1, #4, #5, #6, #8, #9, #10, #11, #12, #13, #14, #15, #16, #17, #18 from the OpenClaw v2.4.0 smoke-test report. Call out the deferred items (#2, #7) explicitly so readers don't assume they were overlooked. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
4 tasks
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.
Summary
capabilities.ts: addsaccount_overviewtoMCP_TOOLS(8 total) and exposesswitchbot://eventsinsurfaces.mcp.resources— agent bootstrap output now matches realityagent-guide.md: tool table updated to all 8 tools; adds### MCP resource: switchbot://eventssection with MQTT env var docs; fixes wrong flag--on-change-only→--include-unchanged; fixesevents tail --local→events tail; addsdevices expandsection with AC/Curtain/Blind/Relay examplesREADME.md: MCP tool count updated to 8 + events resource; addsdevices expandsubsection; addsdevices explainmentionaccount_overviewandresourceschecksTest plan
npm run buildpasses with no TypeScript errorsnpm test— all 685 tests green (capabilities test now asserts 8 tools + resources)switchbot capabilities --json | jq '.data.surfaces.mcp'— verifytoolshas 8 entries includingaccount_overview, andresourcesis["switchbot://events"]