AI agents

Connect Uptimely to OpenCode

Configure

Register the MCP server

Add this to opencode.json (project) or ~/.config/opencode/opencode.json, merging with any existing entry rather than replacing it:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "uptimely": {
      "type": "remote",
      "url": "https://app.getuptimely.com/api/mcp",
      "enabled": true
    }
  }
}
Sign in

Authorize the connection

Run opencode mcp auth uptimely and finish the sign-in the browser opens. OpenCode has no mcp add command; the file is the mechanism.

Verify

Confirm it worked

Ask OpenCode to call search_tools, then execute_typescript with return await external_uptimely_project_list({});. A client that lists uptimely_project_list as its own tool can call it directly. A JSON list of your projects — even an empty list — means the connection is live.

If you also configured the SDK or REST API, this should answer HTTP 200 with a JSON body whose data is a list of monitors:

curl -sS -H "Authorization: Bearer $UPTIMELY_API_KEY" https://app.getuptimely.com/v1/monitors
Reference

More

Read on OpenCode's own docs (checked 2026-09-22): https://opencode.ai/docs/mcp-servers/

Or fetch the raw, machine-readable instructions this page is rendered from: https://getuptimely.com/agent-setup/prompt.md