mcpharness
by EminentMiner
README.md
# mcpharness
**Use Gemini Web as a coding agent for your Windows PC.**
When Antigravity hits its limit, keep working in Gemini Web with the Gemini app usage you have available. mcpharness connects Gemini Tasks to your project files, terminal, browser, and desktop. Gemini can do research and heavy work in its own workspace, then use your PC for the parts that need Windows or your local files.
## Why use it with Gemini?
- **Keep working after an Antigravity limit.** Google gives the Gemini app and Antigravity separate baseline limits. Eligible family plans share an Antigravity pool, and family members can use their own Gemini accounts while their Gemini app usage is available. Each connection to your host needs your approval. [Google AI plan benefits](https://support.google.com/googleone/answer/14534406) · [Google One family sharing](https://support.google.com/googleone/answer/9004015?co=GENIE.Platform%3DDesktop)
- **Start before your PC is online.** Gemini can build and test in its remote workspace. Once your PC is reachable, ask it to transfer the result and run the local checks. [Cloud-to-PC workflow](docs/USAGE.md#work-while-your-pc-is-offline)
## Results
| Result | What was measured |
| --- | --- |
| Comparable development workflows | Gemini Web with mcpharness and Antigravity both completed the side-by-side builds. Antigravity went deeper on research and testing in some runs. |
| **32% lower wall time** | In a 12-task benchmark using the same model, batched mcpharness tools averaged **5.64 s** and passed **11/12**, versus **8.24 s** and **10/12** for an Antigravity-style granular tool set. The batched arm used more tokens. |
| **43 MiB idle private resident memory** | The Windows daemon used about **93–94 MiB total resident memory**, before launching Chrome or running tools. |
| **15/15 Windows checks passed after reconnect** | Gemini prepared the work remotely while the PC was offline, transferred it when the PC returned, and verified it on Windows. |
## What you can do
| Task | What mcpharness gives your assistant |
| --- | --- |
| Work on a project | Search and read files, inspect Git changes, and preview or apply edits across files. |
| Run and debug code | Run checks in parallel, start a development server, and follow job output. |
| Test a website | Open it in a dedicated Chrome profile, navigate the UI, take screenshots, and inspect browser errors. |
| Work with Windows apps | Inspect windows and controls, capture screenshots, and send mouse or keyboard input. |
| Run multi-step work | Use Code Mode to group related tool calls, switch workspaces, plan changes, and review activity and approvals. |
## Quick start
**Using an AI coding agent?** Give it the [automated setup instructions](docs/INSTALLATION.md#setup-with-a-coding-agent) and ask it to set up mcpharness on this Windows PC.
1. Download and extract the source. Open PowerShell in the folder containing `package.json`.
2. Check that you have Node.js 26.7.0 or newer and the Windows C# compiler listed in the [installation guide](docs/INSTALLATION.md#requirements).
3. Copy the example config, then set `roots` to one or more existing project folders. For example, `"roots": ["C:/Projects/my-app"]`.
```powershell
Copy-Item mcph.config.example.json mcph.config.json
```
4. Start the server and leave the terminal open.
```powershell
npm start
```
5. Use **Tailscale Funnel** for the [standard Gemini Web setup](docs/INSTALLATION.md#connect-gemini-web). It gives you one HTTPS connector URL that comes back after a reboot. Set mcpharness to [start at Windows sign-in](docs/INSTALLATION.md#keep-the-same-connector-after-a-restart) so the server comes back too. Google currently limits custom connectors to eligible US users aged 18 or older with a personal Google Account. [Google's connector requirements](https://support.google.com/gemini/answer/17209137)
6. For tool approvals and activity, open a second terminal in the same folder and run `npm run admin-link`. Open the one-time link it prints.
Try asking your assistant, “Use mcpharness to inspect this workspace. Tell me how the project runs and which checks it has. Leave the files as they are.”
## How access works
The MCP and admin listeners bind to loopback. Code Mode is enabled by default, and Strict mode asks for approval on allowed actions above the lowest risk tier. The sample config scopes file tools to your selected workspace folders. See [full computer access](docs/INSTALLATION.md#full-computer-access) for all-drive access. Approved shell commands run with the Windows account's permissions.
## Guides
- [Installation and configuration](docs/INSTALLATION.md) covers prerequisites, the first connection, optional tools, and troubleshooting.
- [Usage and features](docs/USAGE.md) covers the tools, everyday workflows, approvals, and Code Mode.
- [Apache 2.0 license](LICENSE) and [third-party notices](third_party/codex-LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues