Skip to content
VS Code

Django Chainsaw for VS Code

io.github.syrian963/django-chainsaw-mcp

Finds what will hurt in a Django project: cascades, N+1, unsafe migrations, tenant leaks.

client:VS Code transport:stdio runtime:pypi

Install Django Chainsaw in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "django-chainsaw-project-path",
      "description": "DJANGO_CHAINSAW_PROJECT_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "django-chainsaw-settings-module",
      "description": "DJANGO_CHAINSAW_SETTINGS_MODULE",
      "password": true
    }
  ],
  "servers": {
    "django-chainsaw-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "django-chainsaw-mcp"
      ],
      "env": {
        "DJANGO_CHAINSAW_PROJECT_PATH": "${input:django-chainsaw-project-path}",
        "DJANGO_CHAINSAW_SETTINGS_MODULE": "${input:django-chainsaw-settings-module}"
      }
    }
  }
}

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

Django Chainsaw in other clients