gemdesk
This server queues and manages background jobs handed to a Gemini.app task-mode browser session, and returns their status and results.
Submit a job (
desk_submit): queue a prompt with an optional title and role (planner,researcher,reviewer,worker; defaults toworker); returns a job id immediately.Check progress (
desk_status): get a job's state and recent progress by job id.Fetch results (
desk_result): get the final output of a finished job — the structured outcome/summary/files/details/followups block if the role contract was followed, raw text otherwise.List jobs (
desk_list): enumerate jobs, optionally filtered by state (queued,running,done,error,cancelled).Cancel a job (
desk_cancel): cancel a queued or running job.
Note: the README also advertises desk_roles, desk_logs, desk_health and desk_resume, which are not present in this schema.
Allows handing background jobs to Gemini.app task mode through a browser extension bridge and collecting their status and results.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gemdesk submit a background job to refactor the auth module and show me the result when it's done"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
gemdesk
An MCP server plus a small browser bridge that lets a coding harness (Antigravity, Claude Code, OpenCode, Cursor) hand background jobs to Gemini.app task mode and collect the results.
Idea credit: a post on r/AntigravityGoogle describing a "hivemind-gemini-desk" workflow. That author's repo was not public, so this is an independent design built only from the public description. No code was copied.
Status: day 6 of 7 (harness configs for Claude Code, Cursor, OpenCode and Antigravity, plus the review-then-handoff workflow in docs/HANDOFF.md).
Previous status, day 5: docs/GATEWAY.md holds a docs-only gateway recipe; config validation flags unsafe settings. The content script is implemented (prompt submit, stream-end detection, challenge/rate-limit detection, cancel) and tested against a saved HTML fixture, but not yet against a live Gemini session.
How it fits together
harness --MCP stdio--> gemdesk server --ws (127.0.0.1, token)--> extension --> Gemini.app tabTools exposed over MCP: desk_submit, desk_status, desk_result, desk_list, desk_cancel, desk_roles, desk_logs, desk_health, desk_resume.
Related MCP server: Gemini CLI MCP Server
Roles and results
Every job runs under a role (planner, researcher, reviewer, worker). The role wraps the prompt with instructions plus a result contract, so the Gemini tab ends its reply with a fenced json block: outcome (success/partial/failure), a one-paragraph summary, files touched, details and followups. desk_result returns that structure when the model followed the contract, the raw text otherwise. Add your own roles under "roles" in gemdesk.config.json.
Every job also gets an append-only audit log at ~/.gemdesk/logs/.jsonl (created, state changes, progress). Read it with desk_logs.
Try it
npm install
npm test
npm start # MCP over stdio, bridge on ws://127.0.0.1:8765Settings are in gemdesk.config.json (defaults in src/config.mjs). The config is validated at load: bad types, non-loopback bridge hosts, abusive pacing and non-HTTPS gateway URLs are flagged (strict mode refuses to start).
Safety behaviour
maxConcurrentJobs (default 2) caps parallel jobs; each runs in its own open Gemini tab, so open as many tabs as you allow jobs.
minSecondsBetweenJobs (default 20) spaces every job start.
Transient errors (tab busy, composer not found, no tab open) retry up to maxRetries (2) with doubling backoff from retryBackoffSeconds (30).
A captcha or rate-limit page is never retried. It fails the job, pauses all dispatch and leaves queued jobs queued. Check with desk_health, and call desk_resume only after a human has dealt with it.
Read before using it for real
Driving a consumer web app with an extension may break Google's terms and can put the signed-in account at risk. See docs/RISKS.md. Nothing here has been run against a real Google account.
docs/GATEWAY.md holds a docs-only recipe for giving Gemini.app a call-back path to terminal, filesystem and GitHub tools through a Docker MCP gateway over tailnet-only HTTPS (nothing run, no ports opened).
Connect a harness
harnesses/ has ready MCP config snippets for Claude Code, Cursor, OpenCode and Antigravity (see harnesses/README.md). The workflow they are for, review-then-handoff - Gemini plans and reviews, the harness model checks and edits - is in docs/HANDOFF.md.
See docs/ARCHITECTURE.md and docs/ROADMAP.md.
Available Tools
5 toolsdesk_cancelC
Cancel a queued or running job.
Inputs: jobId (required).
desk_listC
List jobs, optionally filtered by state.
Inputs: state.
desk_resultC
Get the final result of a finished job.
Inputs: jobId (required).
desk_statusB
Get state and recent progress of a job.
Inputs: jobId (required).
desk_submitB
Queue a background task for a Gemini.app task-mode subagent. Returns a job id immediately.
Inputs: prompt (required), role, title.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool maps to a distinct lifecycle action on a job: submit, status, result, list, cancel. The only near-neighbor pair (status vs. result) is clearly separated by the descriptions (progress vs. final output).
All five tools use the same desk_ prefix followed by a concise verb or noun, in consistent snake_case. The pattern is immediately predictable.
Five tools is a tight, well-scoped surface for an async job queue. Every tool earns its place with no redundancy.
The full queue lifecycle is covered: submit, poll status, fetch result, enumerate, and cancel. Minor gaps exist for blocking/waiting on completion or streaming logs, but agents can work around these by polling.
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Headless task management for bots, apps and AI agents. Remote MCP server, OAuth or access token.
Remote MCP server for the Mynth API: image and video generation, task tracking and balance.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseAqualityDmaintenanceProfessional Gemini API integration for Claude and MCP-compatible hosts with intelligent model selection and advanced file handling capabilities.44MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that wraps the Gemini CLI to provide tools for executing prompts, managing chat sessions, and accessing CLI extensions. It supports both local stdio and remote SSE transports for flexible integration with MCP clients.1-
- AlicenseAqualityDmaintenanceAn MCP-only server that launches AI CLI tasks (Claude, Codex, Gemini, Forge, OpenCode) as background subprocesses and manages them via PID for status, output, and lifecycle control.911 npmMIT
- AlicenseNot gradedqualityDmaintenanceRemote MCP server that exposes Google Gemini's text, image, video (Veo), and audio transcription capabilities as tools any MCP client can call directly.ISC