Skip to main content
Glama

droid-mcp

You message your agent. Your agent drives Factory Droid for you, on any of your computers.

How it fits together

droid-mcp is an MCP server. It runs on one computer. Your agent (Grok Bot, Claude, Cursor or any MCP client) connects to it.

Your agent can

  • Start a Droid session in a repo on the computer that runs droid-mcp, with the model and autonomy you pick.

  • See every session on every online computer, with its state.

  • Get woken when a session it is subscribed to asks a question, needs permission, finishes or ends. You choose the subscriptions.

  • Answer the question, approve or deny the permission, or send a follow-up.

  • Read the result and the git diff.

  • Interrupt a turn or close a session.

  • Watch the sessions you run yourself and step in when you ask it to.

  • Run rare operations with droid_ops and droid_call. Destructive ones need DROID_MCP_ALLOW_DESTRUCTIVE=1 and your OK.

Related MCP server: devin-subagents

What to set up

Each piece unlocks more. Start with the first two.

  1. Droid CLI, logged in, on the computer that runs droid-mcp. Unlocks sessions on that computer.

  2. droid-mcp connected to your agent. Over stdio, or over HTTP with DROID_MCP_TOKEN. Unlocks every tool.

  3. DROID_MCP_ROOTS. The folders sessions may start in. Defaults to ~/repos.

  4. FACTORY_API_KEY. Unlocks your other computers and sending to sessions droid-mcp did not start.

  5. HTTP mode and the droid-mcp plugin on each computer. Unlocks wake-ups from that computer. Tell your agent "set up droid-mcp on my laptop". It installs the plugin through a Droid session there. No tokens are copied anywhere.

  6. DROID_MCP_WEBHOOK_URL and DROID_MCP_WEBHOOK_KEY. Unlocks wake-ups pushed to your agent instead of polled.

To install the plugin by hand on one computer instead:

droid plugin marketplace add Jason-Holt-Digital/droid-mcp
droid plugin install droid-mcp@droid-mcp --scope user

Then write ~/.factory/droid-mcp.curlrc. The droid_status tool prints the full line for each computer.

Install

git clone https://github.com/Jason-Holt-Digital/droid-mcp
cd droid-mcp && npm ci
node src/main.ts doctor

Then add it to your agent:

{ "mcpServers": { "droid": { "command": "node", "args": ["/path/to/droid-mcp/src/main.ts"] } } }

Or let your agent do it. Point it at skills/droid-mcp/SKILL.md and say "set up droid-mcp".

Safety

  • Sessions start only inside DROID_MCP_ROOTS.

  • DROID_MCP_MAX_AUTONOMY caps autonomy. Permission answers above the cap, and "always allow" answers, are never offered.

  • Every tool says whether it reads, writes or destroys.

  • The plugin holds no secret. It only rings droid-mcp, which checks each ring against Factory or its own session before waking anyone.

  • droid-mcp never puts FACTORY_API_KEY or its tokens in a result. Sessions it starts do get the API key in their environment.

More

MIT licensed. See LICENSE.

Available Tools

8 tools
droid_cancelA

Cancel a session's running turn (scope 'turn'), or close a session this server started (scope 'session').

Inputs: scope (required), session (required).

droid_findB
Read-only

Find the user's Factory Droid sessions on this machine, grouped into workstreams (orchestrator + agents) and standalone sessions by repo. Paged with cursor.

Inputs: cwd, limit, query, scope, +4 more.

droid_modelsA
Read-only

List the models droid can run: built-in ids with their reasoning efforts, BYOK custom models from settings, tier aliases and version wildcards. filter matches id, name or provider.

Inputs: filter, include.

droid_respondB

Answer a pending permission prompt (decision = one of the offered option values, optional comment) or AskUser question set (answers, one per question), or cancel it.

Inputs: session (required), requestId (required), cancel, answers, +2 more.

droid_resultB
Read-only

Read a session's latest result text and/or the git diff in its cwd, paged by byte offset (use nextOffset to continue).

Inputs: session (required), offset, include, maxBytes.

droid_sendA

Send a message into a session as the user. Sessions this server started take it directly; others need FACTORY_API_KEY (REST) or, for idle standalone local sessions only, allowLocalResume. mode 'interrupt' stops the running turn first. Settings and autonomy change the session before this prompt; settings a route cannot apply come back in ignored. Pick a model with droid_models: a built-in id (claude-opus-5-5), a BYOK custom id from ~/.factory/settings.json (custom::), a tier alias (anthropic-latest-premium) or a version wildcard (claude-opus-*). reasoningEffort must be one the model supports. mission needs autonomy 'high'. Unknown models and invalid combinations are refused before anything runs.

Inputs: prompt (required), session (required), idempotencyKey (required), fork, +19 more.

droid_startA

Start a new Droid session in cwd (must be inside the allowed roots) and send it the first prompt. Retrying with the same idempotencyKey returns the same session. Pick a model with droid_models: a built-in id (claude-opus-5-5), a BYOK custom id from ~/.factory/settings.json (custom::), a tier alias (anthropic-latest-premium) or a version wildcard (claude-opus-*). reasoningEffort must be one the model supports. mission needs autonomy 'high'. Unknown models and invalid combinations are refused before anything runs.

Inputs: cwd (required), prompt (required), idempotencyKey (required), fork, +17 more.

droid_waitA
Read-only

Follow a session: returns new events after afterSeq, waiting up to waitMs (max 50000) for something to happen. Without afterSeq, returns the latest events at once. Use nextSeq as the next afterSeq.

Inputs: session (required), waitMs, afterSeq, maxEvents.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 8 tools

    Disambiguation4/5

    Each tool maps to a distinct phase of the session lifecycle (find, start, send, wait, respond, result, models, cancel). The only mild overlaps are droid_send vs droid_respond (both inject input) and droid_wait vs droid_result (both surface output), but descriptions make the boundary clear enough.

    Naming Consistency4/5

    All names share the droid_ prefix and a short suffix, which is predictable and readable. Minor deviation: most suffixes are verbs (find, send, wait, start, cancel) but result and models are nouns.

    Tool Count5/5

    Eight tools is a tight, well-scoped set for agent-session orchestration, with each tool earning its place. No redundant or filler tools.

    Completeness4/5

    The surface covers discovery, startup, prompting, streaming, permission handling, result/diff reading, model discovery, and teardown via droid_cancel scope 'session'. Minor gaps: no dedicated tool to inspect or change session settings/autonomy outside of droid_send, and no way to apply or export the diff produced by droid_result.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers