mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-11-22 05:16:11 +00:00
`AppModule` built its `McpSession` with named arguments and simply omitted `serverVersion`, so the `core:mcp` default won and every MCP client that completed `initialize` was told the server was `0.1.0` -- true of every release so far, and the first thing an AI client learns about the app. `core:mcp` is KMP and cannot read the app's `BuildConfig`, so there is no correct default it could hold. The next best thing is no default at all: `serverVersion` is now required on both `McpSession` and `configureMcpRouting`, which turns "a caller forgot" into a compile error, and `AppModule` passes `BuildConfig.VERSION_NAME`. Both `"0.1.0"` literals are gone. Tests pass an obviously-fake `0.0.0-test` so a real version can never be mistaken for one that came from a build. `McpEndToEndTest` now asserts the advertised `serverInfo.version` equals the versionName of the package installed on the device; against the pre-fix build it reports `expected: <1.0.9> but was: <0.1.0>`. `McpSessionTest` covers the same plumbing at the unit level. `McpProtocolTest`'s inline notifications provider moved out to a private class so the one added argument does not push that test over detekt's LongMethod limit. Closes #603 Claude-Session: https://claude.ai/code/session_01YYSPuh9bZEJkrzvnEpY1QK Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src/test/kotlin/com/rousecontext/e2e | ||
| build.gradle.kts | ||