jules-mcp
Provides tools for interacting with Google Jules coding sessions through the Jules REST API, including listing connected repositories and sessions, starting sessions, checking status and activity, sending follow-up instructions, approving plans, and retrieving outputs and pull-request links.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@jules-mcp Start a Jules coding session on acme/app to fix the login race condition, requiring plan approval."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
jules-mcp
A small Model Context Protocol (MCP) bridge that lets Codex interact with Google Jules through the official Jules REST API.
Goal
Expose Jules as a set of MCP tools so Codex can:
discover Jules-connected GitHub repositories
start Jules coding sessions
inspect session state and activity
send follow-up instructions or answer Jules questions
approve plans explicitly
retrieve completed outputs and pull-request links
The Jules API is currently v1alpha, so this project keeps all Jules-specific HTTP details behind a small client layer.
Related MCP server: Jules MCP Server
Safety defaults
JULES_API_KEYis read from the environment and must never be committed.New sessions require plan approval by default.
Automatic PR creation is opt-in per session.
Requirements
Python 3.10+
uvor another Python package managerA Jules API key from Jules settings
At least one GitHub repository connected to Jules
Codex with MCP client support
Install
git clone https://github.com/jbolt25/jules-mcp.git
cd jules-mcp
uv syncSet the Jules API key.
PowerShell:
$env:JULES_API_KEY="your-key-here"bash/zsh:
export JULES_API_KEY="your-key-here"Run the server directly:
uv run jules-mcpThe default transport is stdio, which is what Codex expects for a local MCP server.
Codex configuration
Add a server entry to ~/.codex/config.toml and replace the working directory with the local clone path:
[mcp_servers.jules]
command = "uv"
args = ["run", "jules-mcp"]
cwd = "C:\\path\\to\\jules-mcp"
env_vars = ["JULES_API_KEY"]Then restart Codex and verify the Jules MCP tools are visible.
MCP tools
The initial server exposes:
jules_list_sourcesjules_list_sessionsjules_startjules_statusjules_activityjules_sendjules_approve_planjules_result
Example intent from Codex:
Start a Jules session on
owner/repofrommainto fix the BACnet scanner race condition. Require plan approval and do not auto-create a PR.
When Jules reaches a state that requires feedback, Codex can read the activity stream, present the question to the user, and send the response back through jules_send.
Development
uv sync --extra dev
uv run mcp dev src/jules_mcp/server.pyArchitecture
User
|
v
Codex
|
| MCP / stdio
v
jules-mcp
|
| HTTPS + x-goog-api-key
v
Jules REST API
|
v
Jules coding sessionAvailable Tools
8 toolsjules_activityA
Read Jules session activities, including plans, messages, and progress.
Inputs: session_id (required), page_size. Returns: object
jules_approve_planB
Explicitly approve a pending Jules plan.
Inputs: session_id (required). Returns: object
jules_list_sessionsC
List recent Jules sessions.
Inputs: page_size. Returns: object
jules_list_sourcesA
List repositories connected to the authenticated Jules account.
Inputs: page_size. Returns: object
jules_resultB
Retrieve the full session object, including outputs when completed.
Inputs: session_id (required). Returns: object
jules_sendA
Send feedback, an answer, or additional instructions to an active Jules session.
Inputs: message (required), session_id (required). Returns: object
jules_startC
Start a Jules coding session. Plan approval defaults to required.
Inputs: prompt (required), title, branch, source, +2 more. Returns: object
jules_statusC
Get the current state and metadata for a Jules session.
Inputs: session_id (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools target distinct actions, but jules_status, jules_activity, and jules_result all retrieve session information and could be confused by an agent. Descriptions clarify granularity, but the boundaries between current state, activities, and full result are not obvious.
All tools share a consistent jules_ prefix and use clear, action-oriented names. Some are verb_noun forms like list_sources and approve_plan, while others are single nouns like status and result, creating minor inconsistency but the pattern remains readable.
With 8 tools, the server is well-scoped for managing Jules coding sessions. Each tool serves a distinct purpose in the workflow without unnecessary bloat.
The core lifecycle is covered: list sources, start a session, approve plans, send feedback, and retrieve results. Minor gaps exist such as no explicit cancel/reject tool, but send feedback likely covers redirection or rejection.
Maintenance
Related MCP Connectors
GitHub Copilot MCP: code, repo, PR, workflow tools for AI assistants.
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables LLM applications to interact with Google's Jules AI coding assistant to manage repositories, coding sessions, and pull requests. It allows users to programmatically create tasks, approve plans, and communicate with the assistant during active coding sessions.9-
- AlicenseBqualityNot gradedmaintenanceExposes Google Jules AI capabilities for automated coding tasks, including session management, code reviews, and unified diff handling. It enables users to create sessions, approve plans, and synchronize AI-generated code changes with GitHub repositories.26Apache 2.0
- AlicenseAqualityDmaintenanceEnables interaction with Google Jules API to automate software development tasks, such as managing sources, sessions, and activities for AI-powered coding assistance.916 npm6MIT
- AlicenseAqualityCmaintenanceEnables MCP clients to create, monitor, and interact with Google Jules coding sessions via the Jules REST API, while keeping the Jules API key server-side.11MIT