altk-evolve icon indicating copy to clipboard operation
altk-evolve copied to clipboard

CUGA: Propagate multi-user context (user_id, namespace_id, session_id) to Evolve MCP server

Open visahak opened this issue 7 months ago • 1 comments

Problem

ALTK-Evolve's MCP server already supports multi-user parameters (user_id, namespace_id, session_id) across get_guidelines, save_trajectory, and get_entities. However, the CUGA agent never sends these values — all Evolve interactions appear as "default" user with no tenant or session context. Root causes:

  1. event_stream() in server/main.py receives user_id from the authenticated request but never assigns it to local_state.user_id
  2. CugaLiteState lacks a user_id field, so the subgraph cannot propagate user identity
  3. EvolveIntegration.get_guidelines() and save_trajectory() don't accept or forward any context parameters

Will submit a PR in cuga.

Follows up issue https://github.com/AgentToolkit/altk-evolve/issues/225

visahak avatar Apr 29 '26 19:04 visahak

PR: https://github.com/cuga-project/cuga-agent/pull/194

gjt-prog avatar May 26 '26 17:05 gjt-prog