mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-11-29 11:13:05 +00:00
"AI client wants to open Spotify" is now "Claude wants to open Spotify" when the calling client supplied client_name during OAuth DCR. Falls back to the generic "AI client" label when no name is set. Plumbing: - TokenStore gains resolveClientName(integrationId, token). Both the in-memory and Room-backed implementations resolve from the stored DCR label (or null when that equals the opaque clientId). - McpRouting.handleMcp reads the name right after bearer validation and wraps the SDK dispatch in withContext(McpClientContext(...)), a tiny CoroutineContext.Element in :core:mcp. - LaunchRequestNotifierApi.postLaunchApp / postOpenLink take an optional clientName. LaunchRequestNotifier uses it to format the notification title (%1$s wants to open %2$s). - OutreachMcpProvider's launch_app and open_link tools read the name from coroutineContext[McpClientContext] and pass it to the notifier fallback. Non-goals: this only touches the launch-app/open-link notifications. Other user-facing prompts (auth approval, per-tool-call) already show client identity via a different path and are unchanged. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||