pitwall-mcp

v0.1.1
io.github.sergioprats/pitwall-mcp Checked 8 hours ago Published 2 months ago

Solo lectura sobre BMW CarData: mantenimiento, neumaticos y bateria de 12V.

Values you need

VariableWhat it is
PITWALL_CLIENT_IDrequired secret Client id de tu aplicacion BMW CarData, creada en https://bmw-cardata.bmwgroup.com. Se obtiene en el portal; no lo comparte nadie contigo.
PITWALL_VINrequired secret VIN del vehiculo, 17 caracteres. Debe estar mapeado como PRIMARY en la cuenta.
PITWALL_CONTAINER_IDrequired Id del contenedor telematico creado por scripts/bootstrap_containers.py. El servidor solo lo consume: nunca crea ni borra contenedores.
PITWALL_TOKEN_FILEoptional Ruta del fichero de tokens OAuth. Por defecto ~/.config/pitwall-mcp/tokens.json, con permisos 600 y fuera del repositorio.
PITWALL_DB_PATHoptional Ruta de la base SQLite con la cache, el registro de cuota y el historico. Por defecto ~/.local/share/pitwall-mcp/pitwall.db.
PITWALL_DAILY_QUOTAoptional Tope duro de peticiones REST al dia. BMW permite 50 cada 24 h por cuenta; el valor por defecto es 20 para dejar margen. Nunca puede superar 50. Default: 20
PITWALL_LOG_LEVELoptional DEBUG, INFO, WARNING o ERROR. Los logs van a stderr: stdout es el canal MCP. Default: INFO

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add pitwall-mcp -e 'PITWALL_CLIENT_ID=<PITWALL_CLIENT_ID>' -e 'PITWALL_CONTAINER_ID=<PITWALL_CONTAINER_ID>' -e 'PITWALL_VIN=<PITWALL_VIN>' -- uvx pitwall-mcp==0.1.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "pitwall-mcp": {
      "args": [
        "pitwall-mcp==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "PITWALL_CLIENT_ID": "<PITWALL_CLIENT_ID>",
        "PITWALL_CONTAINER_ID": "<PITWALL_CONTAINER_ID>",
        "PITWALL_VIN": "<PITWALL_VIN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "pitwall-mcp": {
      "args": [
        "pitwall-mcp==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "PITWALL_CLIENT_ID": "<PITWALL_CLIENT_ID>",
        "PITWALL_CONTAINER_ID": "<PITWALL_CONTAINER_ID>",
        "PITWALL_VIN": "<PITWALL_VIN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "PITWALL_CLIENT_ID",
      "id": "pitwall-client-id",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "PITWALL_CONTAINER_ID",
      "id": "pitwall-container-id",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "PITWALL_VIN",
      "id": "pitwall-vin",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "pitwall-mcp": {
      "args": [
        "pitwall-mcp==0.1.1"
      ],
      "command": "uvx",
      "env": {
        "PITWALL_CLIENT_ID": "${input:pitwall-client-id}",
        "PITWALL_CONTAINER_ID": "${input:pitwall-container-id}",
        "PITWALL_VIN": "${input:pitwall-vin}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.pitwall-mcp]
command = "uvx"
args = ["pitwall-mcp==0.1.1"]
env = { "PITWALL_CLIENT_ID" = "<PITWALL_CLIENT_ID>", "PITWALL_CONTAINER_ID" = "<PITWALL_CONTAINER_ID>", "PITWALL_VIN" = "<PITWALL_VIN>" }

For AI agents

  1. Ask the user for: PITWALL_CLIENT_ID, PITWALL_VIN, PITWALL_CONTAINER_ID. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: search_descriptors, get_api_quota, list_vehicles, get_vehicle_basic_data, report_product_update_step, get_telematic_data, get_vehicle_status, get_tyre_diagnosis, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json