userid prioritizedly obtained from the request header of the mcp client#53
userid prioritizedly obtained from the request header of the mcp client#53Hchunjun wants to merge 1 commit intoCaviraOSS:mainfrom
Conversation
|
Please test it locally, if it passes please let me know. |
|
Passed testing: Locally running the backend service, the Claude code is configured as follows for mcp; it can achieve priority by using the mcp client to specify the request header x-user-id to obtain the uid, avoiding the uncertainty issue of passing the uid when using mcp with AI { |
|
MCP supports many ide's, from the looks of it. Your code might only support claude code, please make it flexible |
|
so to confirm right now I'm defining MCP (in VS Code) like this and then I would just change it to and it would overwrite any That would be great, I just setup a "shared" server and I was asking my self how can this be done. When LLM posted memory with @nullure isn't this JSON standard? As far as I understand all major clients will accept this (together with additional header) - but then again - I could be wrong. |
Refactor user ID extraction to use AsyncLocalStorage for better context management.
📋 Description
🔄 Type of Change
🧪 Testing
📱 Screenshots (if applicable)
🔍 Code Review Checklist
📚 Related Issues
🚀 Deployment Notes
📋 Additional Context