# jules-dispatch [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/Yuuqq/jules-dispatch  
**GitHub Stars:** 5  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/jules-dispatch

## Description
Batch-dispatch coding tasks to Google Jules: 50 parallel sessions, plan approval, PR collection.

## Tools
Capabilities this server exposes over MCP:

- **jules_list_sources** — List all GitHub repos connected to Jules
- **jules_list_sessions** — List recent sessions with pagination
- **jules_approve_plan** — Approve a plan-gated session
- **jules_send_message** — Send a follow-up message
- **jules_cancel_session** — Cancel a running session
- **jules_plan_tasks** — Plan tasks from a high-level description
- **jules_auto** — Plan + dispatch in one shot

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/Yuuqq/jules-dispatch), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install
```

## Documentation

## What jules-dispatch does

jules-dispatch provides both a command-line interface and an MCP server for Google Jules. Its main use is coordinating multiple Jules coding sessions instead of handling tasks one at a time. Work can be represented as YAML tasks containing a title, repository source, branch, and prompt, then sent as a batch.

The dispatcher supports up to 50 concurrent session creations and can pace launches. It can monitor session progress, identify generated pull requests, and retain a JSON audit log for dispatch runs. When work needs human control, sessions can be placed behind a plan approval step, followed up with additional messages, or cancelled.

Use it for independent, PR-sized changes such as test additions, repository-wide policy updates, or separate parts of a migration. Tasks that modify the same files or depend on earlier results are better handled in separate waves rather than dispatched concurrently.

## How it works

An orchestrator—such as Claude Code, Codex, or a human using the CLI—creates tasks and sends them to jules-dispatch. The dispatcher creates parallel Jules sessions for those tasks, then polls their status and gathers resulting pull request links. A batch can include multiple YAML documents separated by `---`, and tasks can target different Jules-connected repositories by specifying their `source` values.

The MCP interface exposes tools for repository and session inspection, plan approval, follow-up messages, cancellation, task planning, and combined planning plus dispatch. The planning tools are optional: they are registered only when an LLM key is configured. Without those tools, core dispatch and session-management functions remain available.

## Setup and configuration

Run the MCP mode through the CLI command `jules-dispatch mcp`. The server is intended for use from Claude Code or OpenAI Codex CLI. Jules API credentials can be supplied with the CLI's `--api-key` option, avoiding the need for a `.env` file.

Optional task planning uses an OpenAI-compatible chat-completions endpoint. Configure it with `LLM_API_KEY`, `LLM_BASE_URL`, and `LLM_MODEL`, or pass equivalent per-invocation flags. OpenAI is the default endpoint when `LLM_BASE_URL` is omitted; OpenRouter, Ollama, Groq, and other compatible providers can be used by setting their endpoint and model. `OPENAI_API_KEY` and `OPENROUTER_API_KEY` are recognized as fallback key names.

## Tools and capabilities

- List GitHub repositories connected to Jules with `jules_list_sources`.
- Browse recent Jules sessions with pagination using `jules_list_sessions`.
- Approve a plan-gated session with `jules_approve_plan`.
- Send additional instructions through `jules_send_message`.
- Stop an active run with `jules_cancel_session`.
- Generate task plans from a high-level description with `jules_plan_tasks`.
- Plan and dispatch in one operation with `jules_auto`.
- Control concurrency and launch pacing for batches, up to 50 simultaneous session creations.
- Use structured JSON output for automation and shell pipelines.

The planning tools use a configured LLM to expand a single intent into separate Jules tasks. `jules_plan_tasks` plans without dispatching, while `jules_auto` combines planning and dispatch and includes confirmation in the CLI workflow.

## Limitations and notes

Parallel execution is best suited to tasks that are independent and can produce separate pull requests. Shared-file edits and dependent changes should be divided into sequential waves. LLM planning is optional and requires a compatible model endpoint and key; the core dispatch workflow does not require an LLM key. Jules-connected repositories must be available as sources before tasks can target them.

_Full upstream README: https://allmcps.com/mcp/jules-dispatch/readme_

