AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified Apache-2.0 Self-run

Jules Mcp Server

mcp-codeagentbridge-jules-mcp-server Β· by CodeAgentBridge

Unofficial MCP server for Google Jules agent πŸ™

β€” No reviews yet
0 installs
43 views
0.0% view→install

Install

$ agentstack add mcp-codeagentbridge-jules-mcp-server

βœ“ scanned Β· βœ“ verified, works with Claude Code, Cursor, and more.

Security review

βœ“ Passed

No issues found. Passed automated security review. Β· v0.1.0 How review works β†’

  • βœ“ Prompt-injection patterns
  • βœ“ Secret / credential exfiltration
  • βœ“ Dangerous shell & filesystem operations
  • βœ“ Untrusted network calls
  • βœ“ Known-malicious package signatures

What it can access

  • βœ“ Network access No
  • βœ“ Filesystem access No
  • βœ“ Shell / process execution No
  • βœ“ Environment & secrets No
  • βœ“ Dynamic code execution No

From automated source analysis of v0.1.0. β€œUsed” means the capability is present in the source β€” more access means more to trust, not that it’s unsafe.

View the full security report β†’

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-codeagentbridge-jules-mcp-server)

Reliability & compatibility

βœ“ Security review passed
0 installs to date
β€” no reviews yet
β—‹ 11mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work β†’
Are you the author of Jules Mcp Server? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Jules MCP Server (jules-mcp)

An MCP (Model Context Protocol) server that exposes Google Jules Agent operations via FastMCP.

This server lets MCP-compatible clients (and Python code) list Jules sources, create and manage sessions, and inspect activities using the official jules-agent-sdk.

  • Server framework: FastMCP
  • SDK: jules-agent-sdk
  • Python: 3.13+
  • License: Apache-2.0

Features

Tools exposed via the MCP server (grouped by area):

  • Sources
  • getsource(sourceid)
  • listsources(filterstr=None, pagesize=None, pagetoken=None)
  • getallsources(filter_str=None)
  • Sessions
  • createsession(prompt, source, startingbranch=None, title=None, requireplanapproval=False)
  • getsession(sessionid)
  • listsessions(pagesize=None, page_token=None)
  • approvesessionplan(session_id)
  • sendsessionmessage(session_id, prompt)
  • waitforsessioncompletion(sessionid, poll_interval=5, timeout=600)
  • Activities
  • getactivity(sessionid, activity_id)
  • listactivities(sessionid, pagesize=None, pagetoken=None)
  • listallactivities(session_id)

See julesmcp/julesmcp.py for signatures and inline docstrings.

Installation

Option A β€” from a local checkout:

# from the repository root
pip install -e .

Option B β€” using uv (recommended during development):

# from the repository root
uv sync

The project targets Python 3.13+.

Configuration

Set your Jules API key via environment variable:

  • Windows PowerShell

``powershell $Env:JULES_API_KEY = "" ``

  • Unix shells (bash/zsh)

``bash export JULES_API_KEY="" ``

If you do not provide an argument to jules(), the SDK reads JULESAPIKEY automatically.

Running the MCP server

There are two common ways to run the server.

1) Programmatic run (in-process) using FastMCP Client β€” useful for testing or embedding:

import asyncio
from fastmcp import Client
from jules_mcp import mcp

async def main():
    async with Client(mcp) as client:
        # Example: list all sources (auto-paginated)
        result = await client.call_tool("get_all_sources")
        print(result)

asyncio.run(main())

2) As a standalone MCP server executable for external MCP clients:

  • Using uv and FastMCP directly

``bash uv run fastmcp run jules_mcp/jules_mcp.py:mcp `` This starts the MCP server over stdio.

  • Using the provided configuration files
  • MCP.json: a sample command configuration for MCP-aware hosts.
  • fastmcp.json: FastMCP runtime/environment configuration.

Adjust paths in MCP.json if you use a different checkout location.

You can also run via the module entry point:

python -m jules_mcp

This calls start_mcp() which invokes FastMCP.run() using the "mcp" instance defined in the package.

Usage notes and examples

  • Listing and filtering sources
import asyncio
from fastmcp import Client
from jules_mcp import mcp

async def main():
    async with Client(mcp) as client:
        # Filter syntax follows AIP-160 filtering rules supported by Jules
        res = await client.call_tool(
            "list_sources",
            {"filter_str": "name=sources/source1 OR name=sources/source2", "page_size": 10}
        )
        print(res)

asyncio.run(main())
  • Creating a session and waiting for completion
import asyncio
from fastmcp import Client
from jules_mcp import mcp

async def run_session():
    async with Client(mcp) as client:
        session = await client.call_tool(
            "create_session",
            {
                "prompt": "Analyze the repository and propose improvements",
                "source": "sources/abc123",
                "require_plan_approval": True,
            },
        )

        # Optionally approve plan
        await client.call_tool("approve_session_plan", {"session_id": session["name"]})

        # Wait for completion
        final = await client.call_tool(
            "wait_for_session_completion",
            {"session_id": session["name"], "poll_interval": 5, "timeout": 600}
        )
        print(final)

asyncio.run(run_session())
  • Inspecting activities
import asyncio
from fastmcp import Client
from jules_mcp import mcp

async def list_acts(session_id: str):
    async with Client(mcp) as client:
        acts = await client.call_tool("list_all_activities", {"session_id": session_id})
        for a in acts:
            print(a)

asyncio.run(list_acts("sessions/abc123"))

Development

  • Create a virtual environment and install dev dependencies

``bash uv sync # or: pip install -e .[dev] ``

  • Run tests (note: some tools may reach the Jules API and require JULESAPIKEY)

``bash uv run pytest -q ``

  • Linting/formatting: follow your preferred tools; this repo does not include linters by default.

Project metadata

  • Package name: jules-mcp
  • Version: 0.1.0
  • Entry points:
  • Python module: python -m jules_mcp
  • FastMCP source: julesmcp/julesmcp.py:mcp

License

Apache License 2.0. See the LICENSE file for details.

Acknowledgements

  • FastMCP β€” https://gofastmcp.com/
  • Model Context Protocol β€” https://modelcontextprotocol.io/
  • jules-agent-sdk β€” unofficial/official SDK used by this server

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source β€” we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.