Skip to main content
Glama
jules-mcp
by jbolt25

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_KEY is 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+

  • uv or another Python package manager

  • A 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 sync

Set 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-mcp

The 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_sources

  • jules_list_sessions

  • jules_start

  • jules_status

  • jules_activity

  • jules_send

  • jules_approve_plan

  • jules_result

Example intent from Codex:

Start a Jules session on owner/repo from main to 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.py

Architecture

User
  |
  v
Codex
  |
  | MCP / stdio
  v
jules-mcp
  |
  | HTTPS + x-goog-api-key
  v
Jules REST API
  |
  v
Jules coding session

Available Tools

8 tools
jules_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

    B3.3/5.0

    Scored across 8 tools

    Disambiguation3/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Enables 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
      -
    • A
      license
      B
      quality
      Not graded
      maintenance
      Exposes 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.
      26
      Apache 2.0