Configure the VA MCP Server with Your MCP Client

Install the npx package. See npx(1) -- execute npm package binaries.

On Mac OS, run the following command:
CODE
brew install node
Configure the VA MCP server with your MCP clients like Claude Desktop or Cursor as follows:
  1. Obtain the MCP key by running the following command:
    CODE
    appd cli key mcp
    The MCP server key is generated. Save this key to use it in the later step.
  2. Copy this snippet to your MCP client configuration file and insert the MCP server key that you generated earlier.
    Example: In Cursor, update the mcpServers section in 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 configured on Virtual Appliance.
    • Specified a VA hostname in the MCP configuration.

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

Start or Stop the VA MCP Server

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>