---
title: "Connect an MCP client"
description: "Connect an assistant to scoped Simplcron tools and the OpenAPI reference."
---

> Documentation Index
> Fetch the complete documentation index at: https://simplcron.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect an MCP client

```text
MCP client + scoped bearer key -> /mcp -> Simplcron API
                                     |
                                     +-> Public OpenAPI and guides
```

Configure your MCP client for **Streamable HTTP** using the same origin as your Simplcron console, with `/mcp` as the path. Set the request header `Authorization: Bearer <your Simplcron API key>` using the client's secret configuration. The endpoint authenticates each request and uses the project and environment on the key.

Use a Development key first. For read-only inspection choose `tasks:read` and `runs:read`. Add `tasks:write` to register tasks or `runs:write` to submit jobs.

## Tools

| Tool | What it does |
| --- | --- |
| `list_tasks` | Lists registered tasks. |
| `create_task` | Registers an HTTPS callback and returns its one-time signing secret. |
| `submit_job` | Queues a registered task and returns a run ID. Use `waitUntil` with `starter-wait-until` or `replyTimeoutSeconds` with `starter-wait-for-reply`. |
| `list_runs` | Lists recent runs, with task and status filters including `waiting`. |
| `get_run` | Reads a run with attempts and recorded activity. |
| `get_run_logs` | Reads lifecycle events for a run ID. |
| `get_api_docs` | Lists public API operations or describes one operation by ID. |

The OpenAPI document is also available as an MCP resource. Configure the signing secret returned by `create_task` right away. If the client records tool results in a shared transcript, use the console or API to set up the task secret instead.

Register a wait starter from **Tasks** or the starter API before submitting it through MCP. Use `get_run_logs` with the returned run ID to see the pause, outcome, and handler attempt. For Wait for Reply, forward the event through the API’s reply webhook. [Wait Until guide](https://simplcron.dev/docs/use-cases/#try-wait-until) · [Wait for Reply guide](https://simplcron.dev/docs/use-cases/#wait-for-reply)

## Check the connection

```bash
curl --fail-with-body "$SIMPLCRON_BASE_URL/mcp" \
  -H "Authorization: Bearer $SIMPLCRON_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "MCP-Protocol-Version: 2025-11-25" \
  --data '{"jsonrpc":"2.0","method":"tools/list","id":1}'
```

Ask your assistant to list recent failed runs, open a run ID, and inspect its recorded logs. To build a task, give it a name, slug, and an existing HTTPS endpoint you control. Confirm the callback is ready before submitting work.

Source: https://simplcron.dev/docs/mcp/index.mdx
