install_tool
Install a GitHub repo as a sandboxed MCP tool: Legwork scans source for hidden payloads, builds and self-tests it, then reports tool names and how to call them.
Instructions
Install a GitHub repo, usually one picked with find_tools, as a tool on the user's computer: Legwork scans its source for hidden payloads, then builds and self-tests it in a sandbox. Grants are read-only folders and/or network, within the limits the user started Legwork with; ask only for what the task needs. Waits up to 45 seconds; if the build is still running it says so, and install_status follows it. A repo already installed with the same grants is reused, not rebuilt. Replies with the new tools' names and how to call them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | owner/repo (or its GitHub URL), e.g. 'jsvine/pdfplumber' | |
| commit | No | optional: a full 40-character commit SHA or a tag (e.g. v1.2.0) to build exactly that, instead of the default branch as it is now | |
| preview | No | true: install nothing; say which commit would be built and how it would be installed, so the user can approve that exact commit | |
| allow_net | No | whether the tool may use the internet while it runs (installs always can). Omitted: keeps an earlier grant, or no | |
| allow_read | No | folders the tool may read, read-only, e.g. ['~/Downloads']. Omitted: keeps what an earlier install of this repo was granted, or none |