Installing MCP Server

The DEX Model Context Protocol (MCP) server bridges AI clients, such as VS Code with GitHub Copilot and Claude Desktop with your DEX environment.

Deploying the MCP Server involves three sequential phases: server deployment, TLS certificate configuration, and client-side workspace configuration. The bearer token should be rotated in accordance with your organization's security policies.

Deploy the DEX MCP Server (Fixlet 57)

Prerequisite: Enable Basic Authentication on the DEX Server

The DEX MCP Server requires the DEX Server to listen on port 8081 with Basic Authentication enabled. This configuration is required before running Fixlet 57. To enable it, navigate to the DEX Server installation directory on the DEX Server machine (the default installation path is C:\Program Files (x86)\BigFix Enterprise\DEX Server). Open the .env file using a text editor, such as Notepad++, add the following line at the end of the file, and save your changes:
IS_REQUIRED_WITHOUT_MTLS=1
Then, open Windows Services, locate the DEX Server service, and restart it to apply the configuration.

Deploy the DEX MCP server service onto the target DEX server virtual machine (VM) using Fixlet 57.

  1. Log in to BigFix Console.
  2. Go to Sites > Sites and Fixlets and select Fixlet 57.
  3. Enter the required deployment parameters:
    • DEX Backend
      • Host or IP: DEX Server host or IP. This must match a SAN in the DEX Server Basic-Auth TLS certificate.
      • Port: DEX Port (for example 8081)
      • Instance Details: DEX instance owner username and password.
    • MCP Listener
      • Port: MCP Port (for example 9496)
      • Certificate SAN (optional): Extra DNS name or IP added to the MCP Server certificate. Set it when clients connect by DNS name.
      • MCP Bearer Token: Define an initial authorization bearer token for client authentication.
    • Windows Service Account: For Windows deployments, choose either a Local System account or enter a specific username and password.
      • Run service as Local System account: If the checkbox is selected, the username and password fields are disabled.
      • Service Account Details: Windows account owner username and password.
  4. Click Take Action to initiate deployment.

Deployment Verification: Once the action is complete, the dex-mcp-server service is running, and …\BigFix Enterprise\DEX MCP Server folder contains dex-mcp-server.exe, config.yml, selfsigned_cert.pem and logs.

Update the Server TLS Certificate (Fixlet 60)

Fixlet 60 rotates the DEX Server certificate on port 8081 used by the MCP Server to call DEX Server. Run on initial setup if the certificate doesn't contain the DEX host or IP configured in Fixlet 57, then rotate per your security policy.

  1. Log in to BigFix Console.
  2. Go to Sites > Sites and Fixlets and select Fixlet 60.
  3. Provide the required certificate parameters:
    • DEX Instance User Credentials: Enter valid instance credentials.
    • Host Identifier: IP SANs and DNS SANs: enter the IP, the DNS name, or both if clients/servers use both.
    • Subject CN: Leave blank or specify a custom Common Name.
    • Expiration: Retain the default value of 365 days (or adjust per organizational policy).
  4. Click Take Action. Running this fixlet replaces the DEX Server certificate and restarts the DEX Server service and, if running, the DEX MCP Server service.

Rotate the Bearer Token (Fixlet 59)

Use Fixlet 59 whenever you need to update or rotate the bearer token configured during initial installation.

  1. Log in to BigFix Console.
  2. Go to Sites > Sites and Fixlets and select Fixlet 59.
  3. Enter the new bearer token value.
    Note: Add service account password if installed with service account.
  4. Click Take Action to apply the updated token.
Remember: After rotating the server token, each user must request a new token from https://<host>:9497/auth/token, update the DEX_MCP_AUTH_TOKEN environment variable, and restart the client.
Important: The DEX MCP Server queries DEX with the DEX instance owner credentials, which are the same used to request the bearer token. Every MCP client that has the bearer token therefore sees DEX data with the same visibility and permissions as a BigFix Master Operator. Distribute the bearer token only to users who are authorized to view this data.

Configure MCP Clients

For configuration information, refer to Configuring ChatGPT Desktop or Work, Configuring Claude Desktop, and Configuring GitHub Copilot in Visual Studio Code.

Verify Available MCP Tools

After establishing the connection to the MCP server from the client, query the available tools to verify the connection. A properly configured DEX MCP server exposes 8 supported tools:

Tool Name Description
dex_devices Device inventory, scores, experience, anomalies, historical values, device details, and score history.
dex_applications Application catalog, lists, rankings, crash events, anomalies, and event details.
dex_events Boot, logon, and device-reliability events.
dex_get_metrics Metric catalog and device metric values.
dex_list_properties Rank devices by a DEX property, such as DEX Score.
dex_get_fleet_device_statistics Fleet-wide hardware and DAS summaries.
dex_surveys Survey listings, results, responses, and trends.
dex_system DEX settings and endpoint/report discovery.