API & MCP

Agents use MCP with a dic_… API key. The dashboard HTTP API is session-only while you are signed in.

MCP for Cursor and Claude

  1. Sign in at /app
  2. Open MCP / API keys and create a key (shown once)
  3. Point your client at https://diditcron.com/api/mcp with Authorization: Bearer dic_…

Creating a key in the dashboard also shows paste-ready JSON with your real token. Treat keys like passwords; revoke anytime from the same panel.

Cursor

Add to Cursor MCP settings or .cursor/mcp.json:

{
  "mcpServers": {
    "diditcron": {
      "url": "https://diditcron.com/api/mcp",
      "headers": {
        "Authorization": "Bearer dic_YOUR_KEY"
      }
    }
  }
}

If your Cursor build does not support URL + headers yet, use mcp-remote:

{
  "mcpServers": {
    "diditcron": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://diditcron.com/api/mcp",
        "--header",
        "Authorization: Bearer dic_YOUR_KEY"
      ]
    }
  }
}

Claude Desktop

Claude Desktop is stdio-oriented; use mcp-remote as a bridge:

{
  "mcpServers": {
    "diditcron": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://diditcron.com/api/mcp",
        "--header",
        "Authorization: Bearer dic_YOUR_KEY"
      ]
    }
  }
}
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Restart Claude Desktop after editing.

Tools

ToolPurpose
list_monitorsList monitors
get_monitorMonitor detail + ping URL
create_monitorCreate one monitor
update_monitorEdit fields or pause / resume
delete_monitorDelete a monitor
import_crontabImport crontab lines; returns suggestedLine curl rewrites
rotate_ping_tokenRotate ping URL
list_recent_alertsRecent alerts
get_accountPlan, usage, verification

Write tools respect email verification and plan limits. Alert channel setup stays in the dashboard.

Dashboard HTTP API

Browser session routes under /api/monitors. Create, list, update, delete, and import crontab lines while signed in. These routes do not accept API keys. Email must be verified. Monitor count follows your plan.

GET  /api/monitors
POST /api/monitors
POST /api/monitors/import
GET|PATCH|DELETE /api/monitors/:id

Ping URLs themselves stay unauthenticated by design. See Pinging.

API & MCP · DidItCron