@posiwise/user-module 0.0.157 → 0.0.158
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -527,7 +527,9 @@ class AccountDetailsComponent extends AppBaseComponent {
|
|
|
527
527
|
*/
|
|
528
528
|
get mcpEndpointUrl() {
|
|
529
529
|
const base = window.location.hostname.replace(/^[^.]+\./, '');
|
|
530
|
-
|
|
530
|
+
const url = `https://brain-api-mcp.${base}/mcp`;
|
|
531
|
+
const shard = this.user?.api_keys?.user_shard;
|
|
532
|
+
return shard ? `${url}?user_shard=${encodeURIComponent(shard)}` : url;
|
|
531
533
|
}
|
|
532
534
|
/** Tenant company name (domain-metadata driven), falling back to PosiWise. */
|
|
533
535
|
get mcpCompanyName() {
|