Skip to content

feature-mcp-connect advanced

Everything else the package exports, for when you go beyond its components and hooks, such as your own queries or cache updates. Most projects never need these.

Other functions and constants4
connectTicketStepThe proxy step that takes the authorization request off the URL before any page loads.
@evolve-storefront/feature-mcp-connect/proxy
CONNECT_PARAMMarks the page a ticket was moved off, so a page only offers to connect when the customer just arrived to.
@evolve-storefront/feature-mcp-connect/proxy
CONNECT_TICKET_COOKIEWhere the authorization request waits while the customer signs in.
@evolve-storefront/feature-mcp-connect/proxy
createConnectFlowThe storefront's side of connecting an AI assistant: a session of the client's own, kept in a sealed HttpOnly cookie until the customer consents.
@evolve-storefront/feature-mcp-connect/server
Types16
ConnectChoiceOne option of a ConnectSelection.
@evolve-storefront/feature-mcp-connect
ConnectConsentDetailsWhat the consent screen shows for one authorization request.
@evolve-storefront/feature-mcp-connect
ConnectCookiesThe cookie store of a request, as cookies() from next/headers gives it.
@evolve-storefront/feature-mcp-connect
ConnectDocumentIdResolves the persisted-document id, where the router only runs trusted ones.
@evolve-storefront/feature-mcp-connect
ConnectGatewayResultThe result of one gateway request for a connecting client.
@evolve-storefront/feature-mcp-connect
ConnectRequestWho asks to connect, and for what.
@evolve-storefront/feature-mcp-connect
ConnectSelectionFieldA selection as the consent screen shows it.
@evolve-storefront/feature-mcp-connect
ConnectSessionA gateway session, which the MCP service keeps sealed for its client.
@evolve-storefront/feature-mcp-connect
ConnectStoreThe store a session is created in.
@evolve-storefront/feature-mcp-connect
ConnectFlow
@evolve-storefront/feature-mcp-connect/server
ConnectGatewaySends a document to the gateway, without any cookie of the visitor's.
@evolve-storefront/feature-mcp-connect/server
ConnectSelectionA choice the customer makes while connecting, such as the company to act for.
@evolve-storefront/feature-mcp-connect/server
ConsentAnswer
@evolve-storefront/feature-mcp-connect/server
ConnectFormBindingWhat a login form needs while a client connects: the shape of LoginFormBinding from feature-auth, so it spreads onto LoginFormView.
@evolve-storefront/feature-mcp-connect/hooks
ConnectConsentScopeRendererRenders what one scope lets the client do, in the customer's words.
@evolve-storefront/feature-mcp-connect/connect-consent
ConnectConsentSelectionRendererRenders one selection.
@evolve-storefront/feature-mcp-connect/connect-consent

Not listed: 12 props and options types. They appear as the tables on the pages of what they type.