Skip to content
VS Code

Cisco Modeling Labs CML for VS Code

io.github.xorrkaz/cml-mcp

An MCP server that provides access to common Cisco Modeling Labs (CML) operations.

client:VS Code transport:stdio runtime:pypi

Install Cisco Modeling Labs CML in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "cml-url",
      "description": "CML_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cml-username",
      "description": "CML_USERNAME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cml-password",
      "description": "CML_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "pyats-username",
      "description": "PYATS_USERNAME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "pyats-password",
      "description": "PYATS_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "pyats-auth-pass",
      "description": "PYATS_AUTH_PASS",
      "password": true
    }
  ],
  "servers": {
    "cml-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "cml-mcp"
      ],
      "env": {
        "CML_URL": "${input:cml-url}",
        "CML_USERNAME": "${input:cml-username}",
        "CML_PASSWORD": "${input:cml-password}",
        "PYATS_USERNAME": "${input:pyats-username}",
        "PYATS_PASSWORD": "${input:pyats-password}",
        "PYATS_AUTH_PASS": "${input:pyats-auth-pass}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Cisco Modeling Labs CML in other clients