semvec/pypi-packages huggingface dataset:
uk-election-ids 0.10.0
Create Democracy Club Election Identifiers
License: MIT

# UK Election IDs

Create and validate Democracy Club Election Identifiers.

---

[![Run tests](https://github.com/DemocracyClub/uk-election-ids/actions/workflows/test.yml/badge.svg)](https://github.com/DemocracyClub/uk-election-ids/actions/workflows/test.yml)
![PyPI Version](https://img.shields.io/pypi/v/uk-election-ids.svg)
![License](https://img.shields.io/pypi/l/uk-election-ids.svg)
![Python Support](https://img.shields.io/pypi/pyversions/uk-election-ids.svg)

* Installation: `pip install uk-election-ids`
* [Documentation](https://democracyclub.github.io/uk-election-ids/)
* Support:
  * To report a bug, [raise an issue](https://github.com/DemocracyClub/uk-election-ids/issues).
  * If you are using election identifiers, [join our slack](https://slack.democracyclub.org.uk/) to ask questions or tell us about your project.
* [Code of Conduct](https://democracyclub.org.uk/code-of-conduct/)
mareana-k8s-mcp-server 0.1.1
Kubernetes MCP Server for pod management and monitoring via Dashboard API
License: MIT
Requires Python: >=3.10
Keywords: dashboard, devops, k8s, kubernetes, mcp, monitoring, pod

# Kubernetes MCP Server

An MCP server for fetching Kubernetes pod logs. This server provides AI assistants with the ability to list namespaces, pods, and access pod logs.

## Features

- List available namespaces
- List pods in a namespace
- Get pod logs (with optional container selection and line limiting)
- Stream pod logs in real-time

## Setup

1. Install dependencies:
```bash
pip install -e .
```

2. Configure Kubernetes access:

   **Option A: Using Environment Variables (Recommended for specific cluster)**
   ```bash
   export K8S_API_SERVER="https://your-k8s-api-server"
   export K8S_TOKEN="your-service-account-token"
   ```

   **Option B: Using Local Kubeconfig**
   - The server will automatically try to use in-cluster configuration if running inside Kubernetes
   - Otherwise, it will fall back to using your local kubeconfig file

   **For the Mareana dashboard cluster:**
   ```bash
   # Use the provided configuration
   source config.example.sh
   
   # Or set manually:
   export K8S_API_SERVER="https://dashboard-dev.mareana.com/api/v1"
   export K8S_TOKEN="test-dummy-token"
   export K8S_VERIFY_SSL="true"
   ```

   Make sure you have the necessary permissions to access pod logs with your service account.

## Running the Server

```bash
python -m k8s_mcp_server.server
```

## Available Resources

The server provides the following resources:

1. Namespaces:
   ```
   namespace/{namespace_name}
   ```

2. Pods:
   ```
   pod/{namespace_name}/{pod_name}
   ```

## Available Tools

1. Get Pod Logs:
   - Tool: `get_pod_logs`
   - Parameters:
     - `namespace`: Kubernetes namespace
     - `pod_name`: Name of the pod
     - `container`: (optional) Container name
     - `tail_lines`: (optional) Number of lines to return from the end

2. List Namespace Pods:
   - Tool: `list_namespace_pods`
   - Parameters:
     - `namespace`: Kubernetes namespace