Repository navigation
server@0.59.0
Minor Changes
-
5f4c259: Add admin API endpoints for managing organizations and OAuth/OIDC configuration, protected by a dedicated admin security middleware. Includes a mock OIDC server for local development and testing.
-
0c431a0: initial MCP resource method interceptors
-
8e247f9: Chat loading is now paginated by generation, returning one generation per request. The chat detail panel fetches older generations in parallel until the full transcript is assembled, so long-running sessions no longer stall on the initial fetch.
-
b58bf0f: Adds an org-level AI Integrations product surface with Cursor as the first provider. Organization admins can connect a Cursor Admin API key from org settings, and an hourly Temporal workflow polls Cursor for token and cost usage events and writes them into ClickHouse
telemetry_logsso the dashboard shows Cursor usage and cost alongside Claude Code data. The dashboard cost copy is updated to reflect Cursor and Claude Code coverage, and the employee detail page now shows cost beside total tokens. -
ed12a35: Add multiple role support to the RBAC system. Users can now be assigned multiple roles simultaneously, replacing the previous single-role assignment model.
-
3b8bfb4: Adds
risk.results.listForAgent— a redacted variant ofrisk.results.listfor AI assistant / MCP consumption. The new endpoint returns the same fields aslistRiskResultsbut replaces thematchfield withmatch_redacted, an opaque token of the form<redacted len=N sha=XXXXXXXX>whereNis the byte length andXXXXXXXXis the first 8 hex characters ofsha256(match). Identical secrets produce identical fingerprints so agents can dedupe leak counts without ever seeing secret content.shadow_mcpfindings passmatchthrough verbatim because the value is a server URL or stdio command identifier (already shown unmasked in the dashboard), and exact byte positions are coarsened to a singleposition_knownboolean to remove reconstruction signals.The dashboard's AI Insights sidebar gains risk-aware suggestions on the Security Overview and Policy Center pages, plus a system-prompt rule that bars the assistant from echoing
match_redactedvalues verbatim.
Patch Changes
-
9d6ba7b:
/rpc/telemetry.getObservabilityOverviewnow accepts an optionalremote_mcp_server_idfilter so callers can scope summary, time-series, and per-tool breakdown metrics to a single Remote MCP source. Combinable with the existingtoolset_slugfilter. -
9d6ba7b:
/x/mcptools/call traffic now writes a structured row to ClickHousetelemetry_logsper invocation, mirroring the existing/mcpemit. The row carriesgram.remote_mcp_server.idandgram.tool.nameattributes so the Source Activity panel for a Remote MCP source can filter telemetry by the originating remote server. Emission is fire-and-forget so ClickHouse latency does not appear in tool-call tail latency. -
fae81e1: Public-MCP
/authorizeaccepts a newrequireUserIdentity=1query parameter that forces the caller through the IDP so the resulting session is bound to a user subject rather than an anonymous one. Without the parameter, public-toolset/authorizecontinues to mint an anonymous subject regardless of ambient cookies or Bearer tokens. Callers from outside the endpoint's organization receive a 403 from the IDP callback — public toolsets that need cross-organization access should omit the parameter and use anonymous sessions.The assistant runtime sets the parameter when initiating MCP authorization flows against Gram-served endpoints so subsequent tool calls can be attributed to the user. Foreign (non-Gram) authorization endpoints discovered via
.well-known/oauth-authorization-serverdo not receive the parameter. -
d4ab97a: Assistants are now instructed to treat OAuth/MCP authentication as owner-only and to avoid pre-emptively prompting for auth on toolsets they have not yet needed.
-
508aef1: Always emit the
resultfield in JSON-RPC success responses from the MCP server. Empty-result handlers (notablyping) previously sent{"jsonrpc":"2.0","id":N}, which violates JSON-RPC 2.0 and the MCP spec. Cursor's MCP SDK rejected those frames withinvalid_unionzod errors and dropped the transport to a failed state after each keep-alive ping. -
20706f4: Make the assistant-runtime reaper resilient to Fly Machines API calls that hang on missing machines. Each Destroy/List call is now bounded by its own timeout, and the Temporal janitor activity uses a heartbeat for liveness rather than relying on a short overall timeout that turned tombstone-machine hangs into elevated workflow-failure alerts.