Find a file
Jason Monk d3ccceb6ab Add MCP protocol test coverage for scenarios 109-113
Scenarios 105-108 were already covered by HttpRoutingTest and
McpSessionTest. This adds the missing tests:
- 109: tools/call with unknown tool name returns error
- 110: resources/list returns registered resources (and empty case)
- 111: resources/read returns content for valid URI
- 112: multiple sequential requests on same session all succeed
- 113: concurrent requests from different clients stay independent

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 13:55:18 -04:00
.claude Remove stale mcp-core/ and mcp-health/ directories, fix conflict markers in health build files 2026-04-05 12:42:38 -04:00
.github/workflows Use REPO_PAT for writing cert to GitHub Secrets 2026-04-05 12:19:02 -04:00
api Remove stale mcp-core/ and mcp-health/ directories, fix conflict markers in health build files 2026-04-05 12:42:38 -04:00
app Add cross-language integration test: Kotlin tunnel client vs real Rust relay 2026-04-05 11:55:10 -04:00
config/detekt Add Compose screens with mock data, Roborazzi screenshot tests, and HTML dashboard 2026-04-04 16:50:39 -04:00
core Add MCP protocol test coverage for scenarios 109-113 2026-04-05 13:55:18 -04:00
deploy Add deployment infrastructure: systemd unit, deploy scripts, GitHub Actions 2026-04-05 11:34:24 -04:00
docs Add T-11 security monitoring task, renumber subsequent tasks 2026-04-04 19:48:46 -04:00
gradle Remove stale mcp-core/ and mcp-health/ directories, fix conflict markers in health build files 2026-04-05 12:42:38 -04:00
health Remove stale mcp-core/ and mcp-health/ directories, fix conflict markers in health build files 2026-04-05 12:42:38 -04:00
integration-tests Add tunnel mux protocol and integration tests against mock relay 2026-04-05 09:58:53 -04:00
notifications Fix cross-module integration: resolve merge conflicts and API mismatches 2026-04-05 09:00:19 -04:00
relay Add cross-language integration test: Kotlin tunnel client vs real Rust relay 2026-04-05 11:55:10 -04:00
tunnel/src/test/java/com/rousecontext/tunnel/mux Remove duplicate tunnel/ module — real tunnel lives at core/tunnel/ 2026-04-05 11:10:31 -04:00
work Fix cross-module integration: resolve merge conflicts and API mismatches 2026-04-05 09:00:19 -04:00
.editorconfig Add Compose screens with mock data, Roborazzi screenshot tests, and HTML dashboard 2026-04-04 16:50:39 -04:00
.gitignore Fix .gitignore: resolve conflict markers, add relay/target/, use **/build pattern 2026-04-05 09:00:34 -04:00
BLOCKERS.md Implement Health Connect MCP server with get_steps, get_heart_rate, get_sleep tools 2026-04-05 07:39:19 -04:00
build.gradle.kts Add tunnel mux protocol and integration tests against mock relay 2026-04-05 09:58:53 -04:00
gradle.properties Initial project scaffold: multi-module Android/Kotlin Gradle project 2026-04-03 19:38:30 -04:00
gradlew Initial project scaffold: multi-module Android/Kotlin Gradle project 2026-04-03 19:38:30 -04:00
gradlew.bat Initial project scaffold: multi-module Android/Kotlin Gradle project 2026-04-03 19:38:30 -04:00
last_session Merge T-1 interfaces: TunnelState, TunnelError, CertificateStore, TunnelClient (KMP) 2026-04-05 07:25:50 -04:00
LICENSE Initial commit 2026-04-03 19:35:18 -04:00
README.md Initial project scaffold: multi-module Android/Kotlin Gradle project 2026-04-03 19:38:30 -04:00
settings.gradle.kts Remove duplicate tunnel/ module — real tunnel lives at core/tunnel/ 2026-04-05 11:10:31 -04:00

Rouse Context

On-demand MCP (Model Context Protocol) server for Android.

Overview

Rouse Context turns your Android device into an MCP server that AI assistants can connect to on demand. Sessions are triggered via FCM push notifications — the device wakes up, provisions a per-device ACME TLS certificate, and establishes an end-to-end encrypted connection through an SNI passthrough relay. No persistent cloud sync of user data ever occurs; all context stays on the device until explicitly served over a live session.

Architecture

Module Purpose
:app Main application shell — UI, session history/audit log, trust notifications, settings
:tunnel FCM wakeup, ACME cert provisioning, SNI passthrough relay client, session lifecycle, wakelock management
:mcp-core Thin abstractions over the MCP Kotlin SDK — defines McpServerProvider, the bindable-service contract for MCP servers
:mcp-health Health Connect MCP server implementation

Key properties

  • FCM-triggered — no persistent connection; the device is woken only when a session is requested.
  • E2E encrypted — TLS terminates on the device via per-device ACME certificates. The relay performs SNI passthrough only and never sees plaintext.
  • No cloud sync — user data is read from on-device sources (Health Connect, etc.) and served live. Nothing is persisted in the cloud.
  • Extensible — additional MCP servers can be added as new modules implementing McpServerProvider, or installed as third-party apps binding to the same service protocol.

Building

./gradlew assembleDebug

Requires Android SDK with API 35 and JDK 17+.

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.