You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add agentd_work_context, a bounded read-only MCP tool that combines device state, recent apps/windows, active artifacts, drop accounting, warnings, and agent verification guidance without returning raw frames or OCR
add scripts/mcp_smoke.py and wire it into CI for debug and packaged app MCP smoke coverage
emit machine-readable permission smoke evidence in dist/permission-smoke-evidence.json
Medium Risk
Adds a new MCP tool and associated aggregation logic that exposes additional local activity metadata; while designed to be redacted/bounded, it expands a privacy-sensitive interface. CI now exercises both debug and packaged binaries, which could introduce new build/test flakiness.
Overview
Adds a new read-only MCP tool, agentd_work_context, that returns a freshness-stamped bundle of device snapshot + bounded recent activity/artifacts + drop accounting, along with warnings and verification guidance (without raw frames/OCR).
Introduces scripts/mcp_smoke.py to black-box test MCP JSON-RPC init, tool discovery, error shapes, redaction expectations, diagnostics artifact writing, and (in CI) both the local debug binary and the packaged app binary.
Updates scripts/permission_smoke.sh to also emit a machine-readable dist/permission-smoke-evidence.json, and refreshes README/docs and tests to reflect the new MCP tool and smoke gates.
Reviewed by Cursor Bugbot for commit ee3fd4c. Bugbot is set up for automated code reviews on this repo. Configure here.
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
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
agentd_work_context, a bounded read-only MCP tool that combines device state, recent apps/windows, active artifacts, drop accounting, warnings, and agent verification guidance without returning raw frames or OCRscripts/mcp_smoke.pyand wire it into CI for debug and packaged app MCP smoke coveragedist/permission-smoke-evidence.jsonLocal verification
swift test(160 tests, 0 failures)swift build -Xswiftc -warnings-as-errorspython3 scripts/mock_chronicle.py --self-test Tests/Fixtures/chroniclepython3 scripts/macos_availability_audit.pypython3 scripts/sparkle_appcast.py self-testpython3 scripts/validate_release_metadata.py && python3 scripts/validate_pr_title.py 'feat: add agentd MCP work context'xcrun swift-format lint --strict --recursive Sources Tests Package.swift && git diff --checkpython3 -m py_compile scripts/mcp_smoke.pypython3 scripts/mcp_smoke.pyscripts/package_app.shpython3 scripts/mcp_smoke.py --packaged-binary 'dist/EvalOps agentd.app/Contents/MacOS/agentd'AGENTD_INSTALL_APPLICATIONS=0 scripts/permission_smoke.sh --no-launch --no-install-applicationsplus JSON evidence validationcodesign --verify --strict --deep --verbose=2 'dist/EvalOps agentd.app'