Configure the VA MCP Server with Your MCP Client

Configure the Virtual Appliance MCP server with an MCP client, such as Claude Desktop or Cursor, by generating an MCP key and updating the client configuration.

Install Node.js, which includes npm and npx. See npx(1) -- execute npm package binaries.

On macOS, run the following command:
CODE
brew install node
Configure the VA MCP server with your MCP clients such as Claude Desktop or Cursor.
  1. Obtain the MCP key by running the following command:
    CODE
    appd cli key mcp
    The MCP server key is generated. Save this key for a later step.
  2. Copy this snippet to your MCP client configuration file and insert the MCP server key that you generated.
    Example: In Cursor, update the mcpServers section in the mcp.json file.
    JSON
    "AppDynamics VA": {
        "command": "npx",
        "args": [
            "-y",
            "mcp-remote",
            "https://<va-address>/mcp",
            "--header",
            "Authorization: Bearer <MCP-SERVER-KEY>"
        ],
        "env": {
            "NODE_TLS_REJECT_UNAUTHORIZED": "0"
        }
    },
    Note:

    If no DNS is configured, replace <va-address> with <VA-IP-address>.nip.io. Alternatively, you may specify a custom Virtual Appliance hostname (e.g., va.example.com).

    Remove the env section if the following conditions are met:
    JSON
    "env": {
                    "NODE_TLS_REJECT_UNAUTHORIZED": "0"
                }
    • CA-signed certificates are configured on the Virtual Appliance.
    • You specified a Virtual Appliance hostname in the MCP configuration.

    mcp-remote is a remote proxy for Model Context Protocol that allows local-only clients to connect to remote servers. For more information, see mcp-remote.

Start or Stop the Virtual Appliance MCP Server

Start or stop the Virtual Appliance MCP server from the command line for a selected deployment profile.

Run the following commands to start or stop the VA MCP server:
  1. Start the MCP server.
    CODE
    appdcli start mcp <profile>
  2. Stop the MCP server.
    CODE
    appdcli stop mcp <profile>