Metadata-Version: 2.4
Name: muuk-maintenance
Version: 0.1.3
Summary: MCP server for analyzing and repairing E2E test failures
Author-email: MuukTest <support@muuktest.com>
Project-URL: Homepage, https://muuktest.com
Keywords: mcp,testing,playwright,e2e,test-repair,ai,automation,muuktest,maintenance
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: mcp>=1.0.0
Requires-Dist: requests>=2.28.0
Requires-Dist: requests-aws4auth>=1.2.0

# MuukTest Maintenance MCP

MCP server for analyzing and repairing E2E test failures (Playwright, Cypress, Selenium, etc).

## Requirements

- Python 3.10+
- [uv](https://github.com/astral-sh/uv)

## Configuration

### VS Code / GitHub Copilot

Open User MCP Configuration (`Cmd+Shift+P` → "MCP: Open User Configuration"):

```json
{
  "inputs": [
    {
      "id": "muuk_key",
      "type": "promptString",
      "description": "Muuk Key available at MuukTest account",
      "password": true
    }
  ],
  "servers": {
    "muuk-maintenance": {
      "command": "uvx",
      "args": ["muuk-maintenance"],
      "env": {
        "MUUK_KEY": "${input:muuk_key}"
      }
    }
  }
}
```

### Claude Desktop

Edit `~/.config/claude/claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "muuk-maintenance": {
      "command": "uvx",
      "args": ["muuk-maintenance"],
      "env": {
        "MUUK_KEY": "your-api-key"
      }
    }
  }
}
```

## Usage

Ask your AI agent:

```
Analyze the test failure in my project.
The test files are in ./test-files/ and failure data is in ./failure-data/
```

## Required Parameters

| Parameter | Description |
|-----------|-------------|
| `workspace_path` | Absolute path to project root (agent provides this automatically) |
| `test_files_path` | Path to test files directory |
| `failure_data_path` | Path to failure data directory |

## Environment Variables

| Variable | Description |
|----------|-------------|
| `MUUK_KEY` | Your MuukTest key |

## Available AI Presets

- `claude` (default)
- `openai`
- `gemini`

## Troubleshooting

### "The command uvx needed to run muuk-maintenance was not found"

VS Code can't find `uvx` in the PATH. Run in terminal:

```bash
which uvx
```

Then add the path to your shell profile (`~/.zshrc` or `~/.bashrc`):

```bash
export PATH="$PATH:/path/from/which/uvx"
```

Restart VS Code after making changes.
