
Product
Unify Your Security Stack with Socket Basics
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
@ucp-npm/mx-adapter
Advanced tools
This is the adapter that makes it possible to connect with MX via the Universal Connect Widget.
This package is meant to be used with the Universal Connect Widget. If you have forked the UCW project, you can install it as a dependency of the widget.
Navigate to your forked project and, from the root of the project, run:
npm i @ucp-npm/mx-adapter --workspace apps/server
Once you have the npm package installed, you can set up the ucw to use it.
In the ./apps/server/adapterSetup.ts
file, do the following:
Import the adapterMapObject
for mx:
import { getMxAdapterMapObject as mxAdapterMapObject } from "@ucp-npm/mx-adapter";
Also import the cache client, and logger:
import { get, set } from "./services/storageClient/redis";
import * as logger from "./infra/logger";
Next, look for the line that starts with export const adapterMap = {
, and add the adapter map as follows:
export const adapterMap = {
...mxAdapterMapObject({
cacheClient: {
set: set,
get: get,
},
logClient: logger,
aggregatorCredentials: {
mxInt: {
username: config.MxClientId,
password: config.MxApiSecret,
basePath: 'https://int-api.mx.com',
vcEndpoint: 'https://int-api.mx.com/',
aggregator: 'mx_int',
available: true
},
mxProd: {
username: config.MxClientIdProd,
password: config.MxApiSecretProd,
basePath: 'https://api.mx.com',
vcEndpoint: 'https://api.mx.com/',
aggregator: 'mx',
available: true
},
},
envConfig: {
HOSTURL: config.HOSTURL
},
}),
...testAdapterMapObject,
};
The dependencies cacheClient
and logClient
are provided by the Universal Connect Widget.
https://www.npmjs.com/package/@ucp-npm/mx-adapter
See https://universalconnectproject.org/ for more information.
FAQs
MX Adapter for the Universal Connect Widget
The npm package @ucp-npm/mx-adapter receives a total of 146 weekly downloads. As such, @ucp-npm/mx-adapter popularity was classified as not popular.
We found that @ucp-npm/mx-adapter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
Product
Socket is launching experimental protection for the Hugging Face ecosystem, scanning for malware and malicious payload injections inside model files to prevent silent AI supply chain attacks.
Research
/Security News
The Socket Threat Research Team uncovered a coordinated campaign that floods the Chrome Web Store with 131 rebranded clones of a WhatsApp Web automation extension to spam Brazilian users.