Skip to content

Enhance user-specific data handling for Lazy Loading Agents and MCP Agents. #288

Description

@Kimjinchul1

Title: Enhance user-specific data handling for Lazy Loading Agents and MCP Agents.

Description: Current agent-service-toolkit lacks mechanisms for agents to leverage user_id for customized actions or dynamic database filtering. This is crucial for agents like GitHubMCPAgent to:

  1. Inject user_id into MCP clients/tools: Enable passing the user_id from user queries as a default parameter for MCP operations.
  2. Filter database queries by user_id: Allow agents that directly query databases to dynamically add WHERE user_id = 'me' clauses.

Proposed Changes:

  • Extend LazyLoadingAgent to accept runtime user context.
  • Modify tool/client initialization to use the user_id.
  • Strengthen the database abstraction layer for user_id-based filtering.

Benefits: Personalized agent experience, enhanced security, and improved flexibility.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions