Skip to content

3.13.0

Choose a tag to compare

@cliftonc cliftonc released this 20 Nov 16:02
· 18 commits to main since this release
3.13.0
619cfcc

analytics (breaking, needs kit 0.41.0)

Analytics offers drizzle-cube's own MCP tools through the app's MCP server as analytics_discover, analytics_validate and analytics_load, and drops its own /mcp, which kit 0.41.0 owns.

  • The three tools are drizzle-cube's getCubeTools (drizzle-cube/mcp) adapted to the kit's Tool in tools/cube-tools.ts: the library's input schemas (through z.fromJSONSchema), its descriptions renamed to the analytics_ names, its JSON answers. They are offered through ServerPlugin.tools with surfaces: ['mcp', 'agents'] — MCP clients and agent runs, never the chat panel — and are read-only (mcp:read, listed under the default "all read-only tools" exposure).
  • Each call compiles against the same semantic layer as /cubejs-api (new services/semantic-layer.ts, which the route now uses too), under the security context /cubejs-api builds for the same reader, inside the same 20-second statement timeout. ActivityEvents stays admin-only. A run with no person behind it, or a reader without read Analytics, is offered no tools.
  • drizzle-cube's chart tool is not offered: it is an MCP App (a UI resource), which the app's MCP server does not serve.
  • The tools are pinned: tests/config/cube-tools-pinned.test.ts fails when the installed drizzle-cube offers a new, removed or changed tool, so a drizzle-cube upgrade is reviewed tool by tool (the plugin CLAUDE.md, "Upgrading drizzle-cube").
  • The plugin's /mcp is gone: the mount, /mcp in apiPrefixes, the vite /mcp proxy line and the /mcp run_worker_first step. createCubeApp runs with mcp: { enabled: false }. /cubejs-api is unchanged.
  • MCP clients now connect with OAuth through the app's own sign-in at <APP_URL>/mcp/t/<slug>. API keys do not work on /mcp; an API-key connection to the old analytics /mcp (Claude Code --header, Claude Desktop through mcp-remote) stops working.
  • minKit is 0.41.0. The analytics-queries, analytics and analytics-cubes skills and the README describe connecting through the app's MCP server.

Upgrade the kit to 0.41.0 first, then pnpm plugin upgrade analytics --apply in the same sitting (porting note).

freeagent: one test-only lint fix for kit 0.41.0. connectors, global-search, guide, inbox, issue-reports, m365, web-knowledge: version stamps only, released in lockstep.

Full changes: 3.12.0...3.13.0