semvec/pypi-packages huggingface dataset:
hex-mcp 0.1.10
A MCP server for Hex
Requires Python: >=3.12

# hex-mcp MCP server

A MCP server for Hex that implements the following tools:

- `list_hex_projects`: Lists available Hex projects
- `search_hex_projects`: Search for Hex projects by pattern
- `get_hex_project`: Get detailed information about a specific project
- `get_hex_run_status`: Check the status of a project run
- `get_hex_project_runs`: Get the history of project runs
- `run_hex_project`: Execute a Hex project
- `cancel_hex_run`: Cancel a running project

## Installation

Using uv is the recommended way to install hex-mcp:

```bash
uv add hex-mcp
```

Or using pip:

```bash
pip install hex-mcp
```

To confirm it's working, you can run:

```bash
hex-mcp --version
```

## Configuration

### Using the config command (recommended)

The easiest way to configure hex-mcp is by using the `config` command and passing your API key and API URL (optional and defaults to `https://app.hex.tech/api/v1`):

```bash
hex-mcp config --api-key "your_hex_api_key" --api-url "https://app.hex.tech/api/v1"
```

> [!NOTE]
> This saves your configuration to a file in your home directory (e.g. `~/.hex-mcp/config.yml`), making it available for all hex-mcp invocations.

### Using environment variables

Alternatively, the Hex MCP server can be configured with environment variables:

- `HEX_API_KEY`: Your Hex API key
- `HEX_API_URL`: The Hex API base URL

When setting up environment variables for MCP servers they need to be either global for Cursor to pick them up or make use of uv's `--env-file` flag when invoking the server.

## Using with Cursor

Cursor allows AI agents to interact with Hex via the MCP protocol. Follow these steps to set up and use hex-mcp with Cursor. You can create a `.cursor/mcp.json` file in your project root with the following content:

```json
{
  "mcpServers": {
    "hex-mcp": {
      "command": "uv",
      "args": ["run", "hex-mcp", "run"]
    }
  }
}
```

Alternatively, you can use the `hex-mcp` command directly if it's in your PATH:

```json
{
  "mcpServers": {
    "hex-mcp": {
      "command": "hex-mcp",
      "args": ["run"]
    }
  }
}
```

Once it's up and running, you can use it in Cursor by initiating a new AI (Agent) conversation and ask it to list or run a Hex project.

> [!IMPORTANT]
> The MCP server and CLI is still in development and subject to breaking changes.
logg-it-logger 1.0.0
A lightweight Python decorator for measuring execution time and system resource usage.
Requires Python: >=3.6


# 🚀 `logg_it` - Python Logging Utility

`logg_it` is a versatile logging utility designed to simplify logging for Python applications, featuring powerful stdout capture, automated exception logging, and customizable output.

---

## ✨ Features

- **Automatic Exception Logging:** Automatically logs exceptions and highlights the problematic line.
- **Stdout Capture:** Captures outputs from `print()` statements.
- **Multiple Outputs:** Supports logging to console, file, or both.
- **Flexible Logging Levels:** Customizable verbosity (DEBUG, INFO, WARNING, ERROR).
- **Custom Formats:** Define custom log message structures.
- **Error-Focused Mode:** Optionally logs only errors.
- **Function Tagging:** Tags logs with the originating function name.
- **Highlight Errors:** Clearly identifies error locations.

---

## 📦 Installation

```bash
pip install easy-logger
```

---

## ⚡ Quick Examples

### Decorator Example

```python
from easy-logger import logg_it

@logg_it(log_file='logs/example.log', level=logging.DEBUG)
def sample_function():
    print("Hello from function!")
    raise ValueError("Example Exception")
```

### Context Manager Example

```python
with logg_it(log_file='logs/example.log', level=logging.INFO):
    print("Hello from context!")
    1 / 0  # Automatically logs exception
```

---

## ⚙️ Parameters

| Parameter        | Type   | Default         | Description                             |
|------------------|---------|-----------------|------------------------------------------|
| `log_file`       | `str`  | `None`          | Path for file logging. Optional.              |
| `level`           | `int`  | `logging.INFO`  | Logging level.                               |
| `log_to_console` | `bool` | `True`          | Output logs to console.                      |
| `log_format`     | `str`  | Default format  | Customizable log format.                    |
| `log_errors_only` | `bool` | `False`         | If true, logs only errors.                  |

---

## 🛠️ Development

Clone repository for local development:

```bash
git clone https://github.com/brianvess/logg_it.git
cd your-repo
pip install -e .
```

---

## 📄 Example Log Output

```
2024-03-10 10:15:00 - INFO - Captured Output: "Hello from function!"
2024-03-10 10:15:01 - ERROR - Exception in [sample_function]: ValueError: Example Exception
🔴 🔥 **sample.py, line 4**
```

---

file.name
🌟 Credits

Developed by Brian Vess.
If you find this useful, please ⭐ star this repository and contribute! 🚀