Skip to main content
Glama
README.md
# Micro skill and MCP server

The official agent-facing package for [Micro](https://micro.do). It teaches a coding harness how to build, verify, preview, deploy, diagnose, update, and roll back a full-stack Micro, then exposes the same operations as typed local MCP tools backed by `micro-cli`.

Micro does not receive prompts or call a model. The skill runs in the creator's existing harness; the MCP server invokes the public CLI without handling passwords or provider secrets.

## Install

Install the Micro capabilities the project needs on Linux:

```sh
curl -fsSL https://micro.do/install | sh -s -- cli      # CLI only
curl -fsSL https://micro.do/install | sh -s -- runtime  # + local runner
curl -fsSL https://micro.do/install | sh -s -- abla     # + Abla toolchain
micro doctor
```

Static sites and Wasm produced by Rust or another compatible toolchain do not
require Abla. On macOS, `brew install microdotdo/tap/micro` provides the
complete managed setup.

Use the setup for your coding harness. Each command runs the bundled stdio server
locally and delegates deployment to the authenticated Micro CLI.

### Codex

Install the skill globally:

```sh
npx skills add microdotdo/micro-mcp --skill micro-sites -g -a codex -y
```

Add the local MCP tools:

```sh
codex mcp add micro -- npx -y @microdotdo/micro-mcp
codex mcp list
```

### Claude Code

Install the skill globally:

```sh
npx skills add microdotdo/micro-mcp --skill micro-sites -g -a claude-code -y
```

Add the local MCP tools:

```sh
claude mcp add --transport stdio --scope user micro -- npx -y @microdotdo/micro-mcp
claude mcp list
```

### Cursor

Install the skill globally:

```sh
npx skills add microdotdo/micro-mcp --skill micro-sites -g -a cursor -y
```

For the local MCP tools, save this as `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "micro": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@microdotdo/micro-mcp"]
    }
  }
}
```

### Pi

Pi intentionally does not provide native MCP support. Install the skill bundled
with this package so Pi can follow the same Micro CLI workflow:

```sh
pi install npm:@microdotdo/micro-mcp
```

Or install only the skill:

```sh
npx skills add microdotdo/micro-mcp --skill micro-sites -g -a pi -y
```

Authenticate interactively after installation. Set `MICRO_CLI` only when the executable is not on `PATH`; it must be an executable path, never a shell command.

For repository deployment, use `micro_github_link` once from an authenticated
owner workstation, commit the generated non-secret `micro.github.json`, and
deploy through the first-party
[`microdotdo/micro-action`](https://github.com/microdotdo/micro-action).
The Action uses GitHub OIDC; no long-lived Micro credential belongs in GitHub.

For destructive project retirement, inspect and export the linked project first,
then use `micro_project_delete` with its exact slug and `confirm: true`. Track the
asynchronous cleanup with `micro_project_deletions`; local source is never removed.

For record recovery, inspect `micro_backups` immediately before acting. A restore
requires the exact backup digest and fresh current-record digest; it replaces
records only and never rewinds users, purchases, entitlements, products, files,
deployments, or local source.

Project operation tools cover roles and invitations, private visibility,
custom-domain proof, plan usage, spending caps, and hosted platform billing.
Durable schedule tools list, configure, manually enqueue, and remove authenticated
`schedule.triggered` events for the active production deployment.
The read-only email tool reports owner-authorized quota and delivery state for
verified-user notifications without exposing message bodies or credentials.
The public platform-status tool separates a Micro-wide incident from a linked
project failure before a harness changes or rolls back user code.
Public gallery and local remix tools let a harness select one reviewed,
licensed immutable source snapshot, restore it with provenance, remove the
source slug, and rebuild it without creating a project or reserving anything.
Invitation acceptance and private-grant creation intentionally remain secure CLI
handoffs so bearer tokens never enter MCP or model context.

## Develop

```sh
npm ci
npm run check
npm run build
npm test
```

The package uses MCP 2026-07-28 through the stable TypeScript SDK v2 stdio entry and also serves legacy clients through SDK negotiation.

<!-- mcp-name: io.github.microdotdo/micro-mcp -->

TDQS

A3.5/5.0

Scored across 68 tools

Disambiguation4/5

Most tools are scoped to a distinct resource—domains, members, schedules, backups, retention, users—and the plural-list vs singular-action naming helps separate reads from mutations. A few generic status/logs/usage tools overlap in scope, but their descriptions clearly distinguish project status, account usage, platform status, and local runner logs.

Naming Consistency4/5

All tools share the micro_ prefix and snake_case, and mutations mostly follow a consistent resource_action pattern such as domain_add, member_remove, and backup_restore. Minor deviations like bare-verb tools (doctor, remix, pull, rollback) and noun-only read tools keep it from being perfectly uniform.

Tool Count1/5

68 tools is far beyond the well-scoped 3-15 range and is an extreme surface for a single MCP server, even for a broad platform. This will tax context windows and make tool discovery harder; several status, usage, and billing tools could likely be consolidated.

Completeness4/5

The surface covers most lifecycle operations across domains, members, invitations, schedules, backups, deployments, users, retention, and platform state, with create/read/update/delete coverage for major resources. Minor gaps remain—no file delete, no product delete/archive, no record create/update—so it is not a perfect 5.

Maintenance

ActivityMaintained
ResponsivenessNo issues