# grizzlysms-git/grizzly-sms-mcp architecture

> Architecture diagram of the GitHub repository grizzlysms-git/grizzly-sms-mcp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/grizzlysms-git/grizzly-sms-mcp
- Repository: https://github.com/grizzlysms-git/grizzly-sms-mcp

## Overview

Grizzly SMS provides two client-facing paths: an MCP server for compatible hosts and an OpenClaw skill that uses a CLI. Both expose account, catalog, and phone-activation operations against the Grizzly SMS API. The MCP path routes tool calls through a shared TypeScript client; the skill path reads its API key and makes API requests from the CLI. The README also describes a browser-assisted registration workflow. Its details are documented, but the skill implementation was not sampled, so that branch is shown only at the documented level.

Main entry points: [`src/index.ts`](https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/src/index.ts) (Tool Operations), [`SKILL.md`](https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/SKILL.md) (Skill Instructions), [`scripts/grizzly-cli.mjs`](https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/scripts/grizzly-cli.mjs) (Skill CLI), [`src/grizzly-sms-client.ts`](https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/src/grizzly-sms-client.ts) (API Client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_mcp["MCP Server"]
  node_server["MCP Server<br/>[index.ts]"]
  node_tool_ops["Tool Operations<br/>[index.ts]"]
  node_catalog["Service Catalog<br/>[services.json]"]
end

subgraph group_skill["OpenClaw Skill"]
  node_skill_instructions["Skill Instructions<br/>[SKILL.md]"]
  node_cli["Skill CLI<br/>[grizzly-cli.mjs]"]
  node_key_config["API Key<br/>[grizzly-env.mjs]"]
  node_registration["Browser Registration"]
end

subgraph group_api["Grizzly API"]
  node_client["API Client"]
  node_grizzly{{"Grizzly SMS API"}}
end

node_host(("MCP Host"))
node_openclaw(("OpenClaw Agent"))

node_host -->|"connects via MCP"| node_server
node_server -->|"dispatches tools"| node_tool_ops
node_tool_ops -->|"reads mappings"| node_catalog
node_tool_ops -->|"calls operations"| node_client
node_client -->|"requests API"| node_grizzly
node_openclaw -->|"uses skill"| node_skill_instructions
node_skill_instructions -->|"invokes CLI"| node_cli
node_cli -->|"reads key"| node_key_config
node_cli -->|"requests API"| node_grizzly
node_skill_instructions -->|"guides workflow"| node_registration

click node_server "https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/src/index.ts"
click node_tool_ops "https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/src/index.ts"
click node_catalog "https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/docs/services.json"
click node_client "https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/src/grizzly-sms-client.ts"
click node_skill_instructions "https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/SKILL.md"
click node_cli "https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/scripts/grizzly-cli.mjs"
click node_key_config "https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/scripts/grizzly-env.mjs"
click node_registration "https://github.com/grizzlysms-git/grizzly-sms-mcp/tree/main/grizzly-sms-skill"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_server,node_tool_ops,node_catalog toneBlue
class node_skill_instructions,node_cli,node_key_config,node_registration toneAmber
class node_client,node_grizzly toneMint
class node_host,node_openclaw toneIndigo
```

## Components

### MCP Server

- [MCP Server](https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/src/index.ts): `src/index.ts`
- [Tool Operations](https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/src/index.ts): `src/index.ts`
- [Service Catalog](https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/docs/services.json): `docs/services.json`

### OpenClaw Skill

- [Skill Instructions](https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/SKILL.md): `SKILL.md`
- [Skill CLI](https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/scripts/grizzly-cli.mjs): `scripts/grizzly-cli.mjs`
- [API Key](https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/scripts/grizzly-env.mjs): `scripts/grizzly-env.mjs`
- [Browser Registration](https://github.com/grizzlysms-git/grizzly-sms-mcp/tree/main/grizzly-sms-skill): `grizzly-sms-skill`

### Grizzly API

- [API Client](https://github.com/grizzlysms-git/grizzly-sms-mcp/blob/main/src/grizzly-sms-client.ts): `src/grizzly-sms-client.ts`
- **Grizzly SMS API**

### Other components

- **MCP Host**
- **OpenClaw Agent**

## Connections

- MCP Host → MCP Server: connects via MCP (evidence: `README.md`)
- MCP Server → Tool Operations: dispatches tools (evidence: `src/index.ts`)
- Tool Operations → Service Catalog: reads mappings (evidence: `src/index.ts`)
- Tool Operations → API Client: calls operations (evidence: `src/index.ts`)
- API Client → Grizzly SMS API: requests API (evidence: `src/grizzly-sms-client.ts`)
- OpenClaw Agent → Skill Instructions: uses skill (evidence: `README.md`)
- Skill Instructions → Skill CLI: invokes CLI (evidence: `README.md`)
- Skill CLI → API Key: reads key (evidence: `scripts/grizzly-cli.mjs`)
- Skill CLI → Grizzly SMS API: requests API (evidence: `scripts/grizzly-cli.mjs`)
- Skill Instructions → Browser Registration: guides workflow (evidence: `README.md`)
