Skip to main content
Glama
README.md
# Hotline

**One switchboard for every agent you run.** Talk A2A and MCP on the front, plug in any agentic backend on the back β€” interactive coding sessions, cluster workers, workflow agents, webhooks, and remote A2A peers β€” and reach every one of them through the same clean interface. πŸ“ž

[![πŸ§ͺ Test](https://github.com/kubed-io/hotline/actions/workflows/test.yml/badge.svg)](https://github.com/kubed-io/hotline/actions/workflows/test.yml)
[![🧹 Lint](https://github.com/kubed-io/hotline/actions/workflows/lint.yml/badge.svg)](https://github.com/kubed-io/hotline/actions/workflows/lint.yml)
[![πŸ›‘οΈ Quality](https://github.com/kubed-io/hotline/actions/workflows/quality.yml/badge.svg)](https://github.com/kubed-io/hotline/actions/workflows/quality.yml)
[![πŸ—Ώ Package](https://github.com/kubed-io/hotline/actions/workflows/package.yml/badge.svg)](https://github.com/kubed-io/hotline/actions/workflows/package.yml)
[![πŸ“Έ Image](https://github.com/kubed-io/hotline/actions/workflows/image.yml/badge.svg)](https://github.com/kubed-io/hotline/actions/workflows/image.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![Python](https://img.shields.io/badge/Python-%E2%89%A53.11-3776ab?logo=python&logoColor=white)](pyproject.toml)

---

## The whole idea, in one breath

Modern agent setups fragment fast: interactive coding sessions live in your editor, headless runners live in CI or Kubernetes, workflow agents live in n8n or APIs, and none of them speak the same protocol.

**Hotline sits in the middle.** It serves **MCP** and **A2A** to callers, consumes a wide variety of agentic backends behind a single config, and normalizes every one of them into an A2A-style task and messaging model.

```
Interactive & remote callers                 Backends (normalized to A2A)
──────────────────────────────               ────────────────────────────────────
IDE coding agents (MCP)    ──┐               β”Œβ”€β”€ Interactive peer sessions
Web AI clients (MCP HTTP)  ──┼──▢ Hotline ───┼── Queue-backed cluster workers
A2A 1.0 clients (HTTP/SSE) β”€β”€β”˜   (MCP + A2A) β”œβ”€β”€ GitHub Actions / CI dispatch
                                             β”œβ”€β”€ OpenAI Responses / workflow APIs
                                             └── Remote A2A agents & webhooks
```

---

## ✨ What Hotline brings together

| Capability | What it gives you |
|---|---|
| πŸ”Œ **Dual-protocol front door** | Serves **MCP** (Streamable HTTP & stdio via `kubed-mcp`) alongside **A2A** task endpoints β€” one deployment, every client |
| 🧩 **Pluggable agentic backends** | Bridges interactive sessions, Redis/KEDA worker queues, GitHub `repository_dispatch`, OpenAI Responses APIs, webhooks, and native A2A peers behind one uniform model |
| πŸͺͺ **Human-friendly addressing** | Key state by immutable session or task IDs while letting people and agents address peers by readable names |
| πŸ“¬ **Async tasks & live handoffs** | Long-running work returns a handle immediately, tracks status, and delivers replies back to the caller without hanging tool calls |
| πŸ”­ **Built for production clusters** | Ships as a non-root container image (`kubed/hotline`), exposes `/started`, `/health` and `/ready` probes, and supports optional OpenTelemetry + Pyroscope telemetry via `kubed-mcp[telemetry]` |

---

## 🚧 Project status

Hotline is currently at its **bootstrap milestone**: a minimal `hello-world` MCP server with health probes wired into the full CI, packaging, container build, wiki generation, release, and `agent-flow` pipeline.

The architecture and roadmap live in the [Architecture](https://github.com/kubed-io/hotline/wiki/Architecture) wiki page β€” new capabilities land incrementally as issues and PRs.

---

## πŸš€ Try the bootstrap server

Run it with Docker:

```sh
docker run --rm -p 8000:8000 kubed/hotline:latest
```

Hotline reads every kubed-mcp setting from the environment (all of them are in `hotline --help`), `REDIS_*` included. In Kubernetes, beside a Service named `redis`, set `enableServiceLinks: false`, or the `REDIS_PORT` Kubernetes injects stops the boot.

Or install from source. A plain `hotline` serves stdio, and `hotline --help` lists every flag and env var:

```sh
git clone --recurse-submodules git@github.com:kubed-io/hotline.git
cd hotline
pip install -e .
hotline --transport http --host 127.0.0.1 --port 8000
```

Check the readiness probe:

```sh
curl -s http://127.0.0.1:8000/ready
```

`/health` reports the server's name, version and components:

```sh
curl -s http://127.0.0.1:8000/health
```

Point any MCP client at `http://127.0.0.1:8000/mcp` and call `hello-world`.

---

## πŸ“š Where to look next

| Looking for… | Go here |
|---|---|
| Full manual & generated tool reference | [Hotline Wiki](https://github.com/kubed-io/hotline/wiki) Β· [Tools](https://github.com/kubed-io/hotline/wiki/Tools) |
| System design, backends & protocol mapping | [Architecture](https://github.com/kubed-io/hotline/wiki/Architecture) |
| Local setup, tests, CI gates & changelog rules | [CONTRIBUTING.md](CONTRIBUTING.md) |
| Architectural invariants & agent notes | [AGENTS.md](AGENTS.md) |
| Release history | [CHANGELOG.md](CHANGELOG.md) |

---

## πŸ“œ Licence

MIT. See [LICENSE](LICENSE).

TDQS

B3.1/5.0

Scored across 1 tool

Disambiguation4/5

With a single tool there is no possibility of misselection between tools. The only mild ambiguity is what 'hello-world' does beyond a reachability check, but its description clarifies it as a smoke-test greeting.

Naming Consistency4/5

The lone tool uses a clean, readable kebab-case convention, which is internally consistent. There is no second tool to confirm a pattern, so consistency can only be judged trivially.

Tool Count2/5

A server named kubed-mcp exposing only a single greeting tool is far too thin to serve any meaningful Kubernetes-related purpose. The single tool does not earn the server its place as a usable surface.

Completeness1/5

There are no lifecycle operations at all β€” no cluster, pod, deployment, or resource management tools. The surface is essentially a health check and leaves every plausible domain operation as a dead end.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues