# willitsend MCP server

> Performs deterministic preflight linting for SMS and iMessage to prevent silent carrier filtering and segment blowups.

- Repository: https://github.com/abryfs/willitsend
- Page: https://hostedmcp.org/servers/abryfs/willitsend
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.1.0

## Install

### Claude Code

```sh
claude mcp add --env 'AGENTPHONE_API_KEY=<YOUR_AGENTPHONE_API_KEY>' willitsend -- npx -y willitsend
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "willitsend": {
      "command": "npx",
      "args": [
        "-y",
        "willitsend"
      ],
      "env": {
        "AGENTPHONE_API_KEY": "<YOUR_AGENTPHONE_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "willitsend": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "willitsend"
      ],
      "env": {
        "AGENTPHONE_API_KEY": "<YOUR_AGENTPHONE_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"willitsend","type":"stdio","command":"npx","args":["-y","willitsend"],"env":{"AGENTPHONE_API_KEY":"<YOUR_AGENTPHONE_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "willitsend": {
      "command": "npx",
      "args": [
        "-y",
        "willitsend"
      ],
      "env": {
        "AGENTPHONE_API_KEY": "<YOUR_AGENTPHONE_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add willitsend --env 'AGENTPHONE_API_KEY=<YOUR_AGENTPHONE_API_KEY>' -- npx -y willitsend
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.willitsend]
command = "npx"
args = ["-y", "willitsend"]

[mcp_servers.willitsend.env]
AGENTPHONE_API_KEY = "<YOUR_AGENTPHONE_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'AGENTPHONE_API_KEY=<YOUR_AGENTPHONE_API_KEY>' willitsend npx -- -y willitsend
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "willitsend": {
      "command": "npx",
      "args": [
        "-y",
        "willitsend"
      ],
      "env": {
        "AGENTPHONE_API_KEY": "<YOUR_AGENTPHONE_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `AGENTPHONE_API_KEY` | no | yes | Optional API key for live carrier/capabilities lookup. The linter runs fully offline without it. |

## FAQ

### Does willitsend require an API key?

No API key is required for basic use. You can set AGENTPHONE_API_KEY if you want live iMessage/SMS capabilities lookup for phone-number destinations.

### How does it handle first messages to a contact?

It checks for mandatory compliance elements like brand identification, opt-in acknowledgment, and opt-out instructions to prevent silent filtering.

### Can it calculate message segments?

Yes, it performs deterministic segment math, including GSM-7 extension characters and encoding flips, to prevent unexpected billable segment increases.
