# LastPing

LastPing watches AI agents, cron jobs and CI/CD pipelines and alerts you when they fail to check in, crash or stall.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 3 repo stars
- Author: lastping-dev
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/lastping-dev/lastping-app
- Updated: 2026-10-20
- Security check: automated, 2026-11-16 (text) — warning: a command downloads a script from raw.githubusercontent.com and runs it right away. Do not run such commands without an explicit yes from the human.
- HTML: https://affpapa.org/en/nevibecode/mcp/lastping

## What it does

LastPing inverts the usual monitoring pattern: instead of checking whether something broke, it waits for a job to report. If a process hangs or never starts, no signal arrives, and the service sends an alert. Two tools inside: the `lastping run` CLI, which wraps any command and sends its start ping, exit code and stderr tail, and the MCP server, which lets an agent configure its own monitoring and read its logs.

The MCP server runs at `https://mcp.lastping.dev/mcp` and connects over HTTP. You need a write-scope API key from Settings, API keys at `app.lastping.dev`. The CLI sets `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT` and `OTEL_RESOURCE_ATTRIBUTES` in the wrapped command's environment so an auto-instrumented agent can export trace spans with no code changes.

Free for individuals.

## Requirements
- Remote server: `https://mcp.lastping.dev/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http lastping https://mcp.lastping.dev/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add lastping --url https://mcp.lastping.dev/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "lastping": {
            "url": "https://mcp.lastping.dev/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "lastping": {
            "type": "http",
            "url": "https://mcp.lastping.dev/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http lastping https://mcp.lastping.dev/mcp
```

## When to use it
- track whether an AI agent started and finished correctly
- get notified when a cron job stalls or fails to run
- collect trace spans from an auto-instrumented agent
- let an agent set up its own monitoring
- wrap a command without changing its exit code or behaviour

## Example prompts
- Set up monitoring for this job and wrap it with `lastping run`
- Check the logs from the last agent run
- Show me which jobs failed to check in over the past day

## Similar
- [Rius](https://affpapa.org/en/nevibecode/mcp/rius.md) — MCP server · ★ 1 repo stars
- [otel-telemetrygen](https://affpapa.org/en/nevibecode/skills/otel-telemetrygen.md) — skill · ★ 126 repo stars
- [observability-driven-testing](https://affpapa.org/en/nevibecode/skills/observability-driven-testing.md) — skill · 1400 installs
- [sentry-mcp](https://affpapa.org/en/nevibecode/mcp/sentry-mcp.md) — MCP server · ★ 976 repo stars
- [exploring-llm-traces](https://affpapa.org/en/nevibecode/skills/exploring-llm-traces.md) — skill · 440 installs
- [crontap-debug-failed-runs](https://affpapa.org/en/nevibecode/skills/crontap-debug-failed-runs.md) — skill · 1500 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
