---
name: static-server
description: "Serve static files over HTTP via Bun"
version: "0.1.0"
entry: ./adapter.ts
npm_deps:
  required: []
  optional: []
fields: []
health_check: null
keywords:
  - service
  - static
  - http
  - server
  - preview
---

Serve directories of static files over HTTP using Bun's built-in HTTP server.
Supports git worktree isolation for serving specific refs.

## Operations

| Operation | Access | Description |
|-----------|--------|-------------|
| `serve` | write | Serve a directory over HTTP |
| `stop` | write | Stop a server instance |
| `status` | read | Get instance status |
| `list_instances` | read | List all active servers |
| `free_port` | read | Reserve a free port |

## Configuration

```yaml
connectors:
  - id: preview
    adapter: static-server
    access: read-write
    options:
      port_range: [14000, 14099]
```
