Skip to main content
Droid is Factory’s terminal coding agent. It exposes an mcp subcommand for managing MCP servers.

Install

Droid takes the launch command directly as positional arguments — there’s no -- separator like Claude Code or Codex.
Verify:

How it works

The command above creates a stdio MCP server entry (Droid’s default). The --env flag is repeatable for multiple environment variables. Droid spawns npx -y @sharc-code/mcp@latest whenever it starts a session, with SHARC_API_KEY set in the child process’s environment.

Updating the API key

Verify

Ask Droid:
You should see seven SHARC tools (index_codebase, search_code, clear_index, get_indexing_status, start_watch, stop_watch, get_watch_status).

Troubleshooting

Server not connecting

  • Confirm npx is on your PATH: npx --version
  • Re-run droid mcp list to see the configured command
  • Check that SHARC_API_KEY was set correctly when adding the server