Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| JULES_API_KEY | Yes | The API key used to access Google Jules capabilities. | |
| JULES_API_TIMEOUT | No | Optional override for the Jules API timeout. | |
| JULES_API_BASE_URL | No | Optional override for the Jules API base URL. | |
| JULES_POLL_INTERVAL | No | Optional override for the Jules poll interval. | |
| JULES_REQUEST_TIMEOUT_MS | No | Optional override for the Jules request timeout in milliseconds. | |
| JULES_RATE_LIMIT_MAX_DELAY_MS | No | Optional override for the maximum rate limit delay in milliseconds. | |
| JULES_RATE_LIMIT_MAX_RETRY_MS | No | Optional override for the maximum rate limit retry time in milliseconds. | |
| JULES_RATE_LIMIT_BASE_DELAY_MS | No | Optional override for the base rate limit delay in milliseconds. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_session | Creates a new Jules session or automated run to perform code tasks. If repo and branch are omitted, creates a "repoless" session where the user provides their own context in the prompt and Jules will perform code tasks based on that context instead of a GitHub repo. |
| list_sessions | List recent Jules sessions with pagination support. |
| get_session_state | Get the current status of a Jules session. Acts as a dashboard to determine if Jules is busy, waiting, or failed. RETURNS: id, status, url, title, prompt, pr (if created), lastActivity, lastAgentMessage (if any), pendingPlan (if awaiting approval) STATUS (use this to decide what action to take):
LAST ACTIVITY:
LAST AGENT MESSAGE:
PENDING PLAN:
NEXT ACTIONS:
IMPORTANT:
|
| send_reply_to_session | Interacts with an active Jules session (approving plans or sending messages). |
| get_code_review_context | Review code changes from a Jules session. Returns a structured summary of what changed, organized by file with change types, line counts, and activity IDs. Automatically detects if session is busy (aggregates from activities) or stable (uses final outcome). Can optionally scope to a single activity. For detailed diffs, use show_code_diff. |
| show_code_diff | Show the actual code diff for files from a Jules session. Returns unified diff format that can be displayed to users. Use after get_code_review_context to drill into specific file changes. Can optionally show diff from a specific activity (use activity IDs from get_code_review_context output). |
| query_cache | Query the LOCAL CACHE of sessions and activities. Returns only previously synced data (fast, but may be stale). To ensure fresh data: call jules_sync first, then jules_select. Best for searching across multiple sessions or filtering by type/state. |
| get_bash_outputs | Get all bash command outputs from a Jules session. Returns commands executed, their stdout/stderr, and exit codes. Use to understand what shell commands were run. |
| jules_list_sources | Lists all GitHub repositories connected to your Jules account. |
| jules_get_source | Gets details about a specific GitHub repository connected to Jules. |
| jules_create_session | Creates a new Jules session to perform an asynchronous coding task. |
| jules_get_session | Gets the current status and details of a Jules session. |
| jules_list_sessions | Lists your Jules sessions with optional pagination. |
| jules_approve_plan | Approves the current plan for a session. |
| jules_reject_plan | Rejects the current plan for a session and optionally provides feedback. |
| jules_send_message | Sends a message to an active Jules session. |
| jules_cancel_session | Cancels an active Jules session. |
| jules_list_activities | Lists all activities (events) in a Jules session. |
| jules_get_latest_activity | Gets the most recent activity from a Jules session. |
| jules_get_session_plan | Gets the execution plan from a Jules session. |
| jules_wait_for_completion | Waits for a Jules session to complete (success, failure, or cancellation). |
| jules_wait_for_plan | Waits for Jules to generate a plan for a session. |
| jules_create_and_wait | Creates a Jules session AND waits for it to complete in a single operation. |
| jules_quick_task | Simplest way to assign a task to Jules with sensible defaults. |
| jules_get_session_summary | Gets a comprehensive summary of a Jules session including status, plan, activities, and outputs. |
| jules_sync_local_codebase | Applies the latest Jules diff to a local git working tree (syncs the codebase). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| analyze_session | Analyze a Jules session with the LLM |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |