An MCP Toolkit for Jules
npm install @google/jules-mcpMCP tools to orchestrate complex, long-running coding tasks to an ephemeral cloud environment integrated with a GitHub repo.
``json`
{
"mcpServers": {
"jules": {
"command": "npx",
"args": ["@google/jules-mcp"],
"env": {
"JULES_API_KEY": "
}
}
}
}
``
create_session Create a new Jules session
list_sessions List recent Jules sessions
get_session_state Get session status, last activity, and pending plans
send_reply Send a message or approve a plan
``
get_code_review_context Get session summary with file changes
show_code_diff Get the full unidiff patch
``
query_cache Query local cache of sessions and activities
`bash`
npm i @google/jules-mcp
export JULES_API_KEY=
`bash`
npx @google/jules-mcp
- create_session: Create a new Jules session with a prompt and optional GitHub source.
- list_sessions: List recent sessions with optional pagination.
- get_session_state: Get the current status of a session. Returns:
- status: busy, stable, or failedprompt
- : The original prompt that started the sessionlastActivity
- : What just happened (type, activityId, timestamp)lastAgentMessage
- : The last message Jules sentpendingPlan
- : Plan awaiting approval (if any) with stepssend_reply_to_session
- : Send a message to a session or approve a pending plan.
- get_code_review_context: Get a summary of session changes with file list and metadata.
- show_code_diff: Get the full unidiff patch for a session's code changes.
- query_cache`: Query the local cache of sessions and activities using JQL.
Apache-2.0
> Note: This is not an officially supported Google product. This project is not eligible for the Google Open Source Software Vulnerability Rewards Program.