Metadata-Version: 2.3
Name: mcp-server-restart
Version: 0.1.2
Summary: MCP server for restarting Claude Desktop
Project-URL: Homepage, https://github.com/non-dirty/mcp-server-restart
Project-URL: Repository, https://github.com/non-dirty/mcp-server-restart.git
Project-URL: Issues, https://github.com/non-dirty/mcp-server-restart/issues
Author-email: Matthew Smith <non_dirty@me.com>
License: MIT
Keywords: claude,desktop,mcp,restart
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.13
Requires-Dist: mcp>=1.0.0
Requires-Dist: psutil>=6.1.0
Requires-Dist: pydantic>=2.10.2
Provides-Extra: dev
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-asyncio; extra == 'dev'
Description-Content-Type: text/markdown

# mcp-server-restart

Model Context Protocol (MCP) server for restarting Claude Desktop for Mac

## Features

### Resources

The server provides a status resource:
- `claude://status` - Returns the current status of Claude Desktop
  - Returns JSON with running status, PID, and timestamp
  - MIME type: application/json

### Tools

The server implements one tool:
- `restart_claude` - Restarts the Claude Desktop application
  - Safely terminates existing process if running
  - Launches new instance
  - Provides progress notifications during restart

## Installation

```bash
pip install mcp-server-restart
```

## Configuration

### Claude Desktop Integration

Add the following to your Claude Desktop config file:

On MacOS: `~/Library/Application Support/Claude/claude_desktop_config.json`

```json
{
  "mcpServers": {
    "mcp-server-restart": {
      "enabled": true,
      "command": "uv",
      "args": [
        "run",
        "python",
        "-m",
        "mcp_server_restart.server"
      ]
    }
  }
}
```

## Development

### Setup

1. Clone the repository
2. Install dependencies:
```bash
uv venv
uv pip install -e ".[dev]"
```

### Testing

Run the test suite:
```bash
pytest
```

## License

MIT License - see LICENSE file for details