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:
- Inject
user_id into MCP clients/tools: Enable passing the user_id from user queries as a default parameter for MCP operations.
- 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.
Title: Enhance user-specific data handling for Lazy Loading Agents and MCP Agents.
Description: Current
agent-service-toolkitlacks mechanisms for agents to leverageuser_idfor customized actions or dynamic database filtering. This is crucial for agents likeGitHubMCPAgentto:user_idinto MCP clients/tools: Enable passing theuser_idfrom user queries as a default parameter for MCP operations.user_id: Allow agents that directly query databases to dynamically addWHERE user_id = 'me'clauses.Proposed Changes:
LazyLoadingAgentto accept runtime user context.user_id.user_id-based filtering.Benefits: Personalized agent experience, enhanced security, and improved flexibility.