Find a file
Jason Monk eac9bb09e6 Add Rust relay server scaffold with config, SNI router, mux framing, and subdomain generation
Standalone Cargo project in relay/ implementing the core building blocks:
- TOML config with env var overrides and sensible defaults
- TLS ClientHello SNI parser for routing connections by hostname
- Binary mux frame encode/decode (5-byte header: type u8 + stream_id u32 BE)
- Two-word DNS-safe subdomain generator (adjective-noun format)
- Per-device mux connection state tracking with stream limits

38 tests covering all components. Clippy clean, rustfmt clean.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 07:25:27 -04:00
app Initial project scaffold: multi-module Android/Kotlin Gradle project 2026-04-03 19:38:30 -04:00
gradle Initial project scaffold: multi-module Android/Kotlin Gradle project 2026-04-03 19:38:30 -04:00
mcp-core Initial project scaffold: multi-module Android/Kotlin Gradle project 2026-04-03 19:38:30 -04:00
mcp-health Initial project scaffold: multi-module Android/Kotlin Gradle project 2026-04-03 19:38:30 -04:00
relay Add Rust relay server scaffold with config, SNI router, mux framing, and subdomain generation 2026-04-05 07:25:27 -04:00
tunnel Initial project scaffold: multi-module Android/Kotlin Gradle project 2026-04-03 19:38:30 -04:00
.gitignore Initial project scaffold: multi-module Android/Kotlin Gradle project 2026-04-03 19:38:30 -04:00
build.gradle.kts Initial project scaffold: multi-module Android/Kotlin Gradle project 2026-04-03 19:38:30 -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
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 Initial project scaffold: multi-module Android/Kotlin Gradle project 2026-04-03 19:38:30 -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.