Enables repository management and branch operations for GitHub repositories through Jules task automation, including converting GitHub issues to Jules tasks and integrating with development workflows.
Provides automation for Google Jules AI coding assistant, enabling task creation, code review automation, repository management, progress tracking, and interactive communication with Jules for AI-powered development workflows.
Google Jules MCP
A Model Context Protocol (MCP) server for automating Google Jules - the AI coding assistant. This MCP enables seamless integration with Jules for task creation, code review automation, repository management, and AI-powered development workflows.
Features
🎯 Task Management
Create Tasks: Automatically create Jules tasks with repository and description
Monitor Progress: Track task status and get real-time updates
Approve Plans: Review and approve Jules execution plans
Resume Tasks: Resume paused or interrupted tasks
Bulk Operations: Create multiple tasks efficiently
🔧 Code Operations
Code Analysis: Analyze code changes and diffs
Branch Management: Handle repository branches and configurations
Source Navigation: Browse and analyze source files
Review Automation: Automate code review workflows
💬 Interactive Communication
Send Messages: Send instructions and feedback to Jules
Chat History: Track conversation history with Jules
Context Extraction: Extract relevant context from task discussions
📊 Project Management
Task Listing: List and filter tasks by status
Progress Tracking: Monitor development progress across projects
Data Persistence: Local storage of task data and history
🔐 Session Management (NEW!)
Multiple Session Modes: Fresh, Chrome profile, cookies, persistent, and Browserbase
Google Authentication: Seamless login with existing Google sessions
Cookie Management: Extract, save, and restore authentication cookies
Remote Browser Support: Use Browserbase for cloud deployments
Cross-Platform: Works locally and in cloud environments
Available Tools
Tool | Description |
Task Management | |
| Create a new Jules task with repository and description |
| Get detailed information about a specific task |
| Send messages/instructions to Jules in active tasks |
| Approve Jules execution plans |
| Resume paused tasks |
| List tasks with filtering options |
| Analyze code changes and project structure |
| Create multiple tasks from a list |
Session & Authentication | |
| Get current browser cookies for session persistence |
| Set browser cookies from string/JSON for authentication |
| Get current session configuration and status |
Debugging | |
| Take debugging screenshots |
Installation
Prerequisites
Node.js 18+
TypeScript
Git access to repositories you want to manage
Setup
🔐 Session Management & Authentication
Session Modes
The MCP supports 5 different session management modes:
Mode | Description | Use Case |
| New browser session each time | Testing, no authentication needed |
| Use existing Chrome profile | Local development with existing Google login |
| Save/load cookies to file | Persistent authentication without full profile |
| Save browser data to directory | Local development with full session persistence |
| Remote browser session | Cloud deployments, Smithery hosting |
Configuration Options
🌐 Browserbase (Recommended for Smithery)
Perfect for remote deployments and cloud hosting:
🍪 Cookie Authentication (Best for Manual Setup)
Extract cookies from your browser and set them as environment variable:
🌍 Chrome Profile (Local Development)
Use your existing Chrome profile:
💾 Persistent Browser Data
Save browser data to a specific directory:
How to Get Google Authentication Cookies
Log in to Jules: Visit https://jules.google.com and log in
Open Developer Tools: Press F12 or Cmd+Option+I
Go to Application/Storage tab
Find Cookies: Look for
.google.com
cookiesCopy Important Cookies: Look for cookies like:
session_id
orsessionid
auth_token
orauthuser
SID
,HSID
,SSID
SAPISID
,APISID
Format for environment variable:
Environment Configuration
Create a .env
file or set environment variables:
Usage Examples
1. Create a New Task
2. Monitor Task Progress
3. Send Instructions to Jules
4. Bulk Task Creation
5. List and Filter Tasks
6. Session Management Examples
Check Session Status
Get Current Cookies (for backup)
Set Authentication Cookies
MCP Resources
The server provides useful resources for context:
jules://schemas/task
- Complete task data modeljules://current/active-tasks
- Live list of active tasksjules://templates/common-tasks
- Template examples for common development tasks
Common Task Templates
The MCP includes templates for common development scenarios:
Bug Fix:
"Fix the [specific issue] in [filename]. The problem is [description]."
Feature Add:
"Add [feature name] functionality to [location]. Requirements: [list requirements]."
Refactor:
"Refactor [component/function] to improve [performance/readability/maintainability]."
Testing:
"Add comprehensive tests for [component/function] covering [test cases]."
Documentation:
"Update documentation for [component] to include [new features/changes]."
Integration with Claude Code
Local Integration
🌐 Smithery Deployment
Deploy to Smithery.ai
The MCP is fully configured for Smithery deployment with comprehensive session management:
Fork/Clone this repository
Deploy to Smithery: Visit smithery.ai and connect your repo
Configure Session Management in Smithery settings:
Option A: Browserbase (Recommended)
Option B: Cookie Authentication
Access Remotely: Use your deployed MCP from any Claude Code instance
Benefits of Smithery + Browserbase
✅ No Local Browser: Runs entirely in the cloud
✅ Persistent Sessions: Maintain Google authentication across deployments
✅ Global Access: Use from anywhere with internet connection
✅ Auto-scaling: Handles multiple concurrent requests
✅ Zero Setup: No local dependencies or configuration needed
Troubleshooting
Common Issues
Browser Automation Fails
Ensure you have proper access to
jules.google.com
Check if you're logged into your Google account
Try running with
HEADLESS=false
to see what's happening
Task Creation Fails
Verify repository names are correct (
owner/repo-name
format)Ensure you have access to the specified repositories
Check that branches exist
Permission Errors
Make sure you have write access to the data storage path
Verify repository permissions in GitHub
Debug Mode
Enable debug mode for troubleshooting:
This will:
Show browser interactions visually
Take screenshots on errors
Provide detailed logging
Development
Project Structure
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
Testing
Architecture
The MCP follows established patterns:
Browser Automation: Uses Playwright for reliable web automation
Data Persistence: Local JSON storage for task tracking
Error Handling: Comprehensive error handling with meaningful messages
Resource Management: Proper browser lifecycle management
Security: No credential storage, relies on browser session
Workflow Integration
This MCP is designed to integrate with development workflows:
Issue Tracking → Jules Tasks: Convert GitHub issues to Jules tasks
Code Review → Automation: Automate code review processes
CI/CD Integration: Trigger Jules tasks from deployment pipelines
Team Collaboration: Share Jules task management across teams
License
MIT License - see LICENSE file for details.
Acknowledgments
Built with the Model Context Protocol SDK
Inspired by the tusclasesparticulares-mcp implementation patterns
Browser automation powered by Playwright
Note: This MCP requires access to Google Jules. Ensure you have appropriate permissions and access to the repositories you want to manage.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
Enables automation of Google Jules AI coding assistant through task creation, code review automation, repository management, and AI-powered development workflows. Supports multiple session modes including cloud deployment with persistent authentication.