Add user profile information to MCP tool calls#23
Add user profile information to MCP tool calls#23devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Tommy Nguyen <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
WalkthroughThe changes update several method signatures to include user profile or user ID parameters, enabling user-specific context to be incorporated into LLM response processing and tool invocation. User profile information is now fetched and passed through the processing pipeline, with appropriate logging and error handling added for profile retrieval. Changes
Sequence Diagram(s)sequenceDiagram
participant SlackUser
participant SlackClient
participant LLMBridge
participant ToolCall
SlackUser->>SlackClient: Sends user prompt (includes userID)
SlackClient->>SlackClient: Fetch user profile using userID
SlackClient->>LLMBridge: ProcessLLMResponse(..., userProfile)
LLMBridge->>ToolCall: executeToolCall(..., userProfile)
ToolCall->>ToolCall: Add user_profile to Args if present
ToolCall-->>LLMBridge: Return result
LLMBridge-->>SlackClient: Return processed response
SlackClient-->>SlackUser: Reply with response
Poem
Note ⚡️ AI Code Reviews for VS Code, Cursor, WindsurfCodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback. Note ⚡️ Faster reviews with cachingCodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
Closing due to inactivity for more than 7 days. |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Add user profile information to MCP tool calls
Addresses issue #19 by sending the Slack user's email address and profile information to MCP when executing tool calls.
Changes
The user profile is added to the tool call arguments under the 'user_profile' key, which includes all profile fields such as email, real name, display name, etc.
Note: For this to work, the Slack application must have the appropriate OAuth scopes:
users:readandusers:read.emailto access the user's email address.Link to Devin run: https://app.devin.ai/sessions/884dbd1847ba41f79028e28e129386ef
Requested by: Tommy Nguyen ([email protected])
Summary by CodeRabbit