feat(mercata): add active-session Griphook MCP assistant UI + backend proxy#6433
Draft
bobsummerwill wants to merge 2 commits intostrato-net:developfrom
Draft
feat(mercata): add active-session Griphook MCP assistant UI + backend proxy#6433bobsummerwill wants to merge 2 commits intostrato-net:developfrom
bobsummerwill wants to merge 2 commits intostrato-net:developfrom
Conversation
35b5c51 to
9133d34
Compare
b1a962d to
d7c4fa6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a first-party Mercata AI Assistant flow that reuses the user's active OAuth session and removes manual Griphook token copy/paste.
Scope
Backend (
mercata/backend)POST /api/chat/mcpproxy endpoint.req.accessTokenasAuthorization: Bearer <token>to Griphook MCP.mcp-session-idheader in both directions.GRIPHOOK_MCP_URL(default:https://griphook.strato.nexus/mcp)GRIPHOOK_MCP_TIMEOUT_MS(default:30000)Frontend (
mercata/ui)/dashboard/assistant./tools)/call <tool> <json-args>)Why
Security / Auth Notes
authorizeRequest()middleware.Testing
mercata/backend:npm run buildfailed becausetscis not installed in this runtime.mercata/ui:npm run buildfails due unrelated existing import issue (@stripe/cryptoinOnrampPage.tsx).Follow-ups