Skip to main content
Glama
Connector for Viber

Connector for Viber

by angvar
README.md
# Connector for Viber: source repository

This repository holds the **Connector for Viber** plugin for Claude, published by [AVSec Advisory](https://avsecadvisory.eu). The plugin itself, with its user documentation, is in [`plugin/`](plugin/):

- **What it does, setup, tools:** [plugin/README.md](plugin/README.md)
- **Privacy policy:** [plugin/PRIVACY.md](plugin/PRIVACY.md)
- **Security:** [SECURITY.md](SECURITY.md)

Unofficial: not affiliated with, endorsed by, or supported by Rakuten Viber.

## Install

```
/plugin marketplace add angvar/viber-bot-claude-plugin
/plugin install connector-for-viber@avsec-plugins
```

## Layout

| Path | What |
|---|---|
| `plugin/` | The plugin as users receive it: manifest, icon, MCP config, skills, docs, and the built server |
| `plugin/server/viber-connector.mjs` | The MCP server: one readable file, no third-party code, generated from `src/` |
| `src/` | TypeScript sources: `mcp.ts` (MCP over stdio), `schema.ts` (input validation), `viber-api.ts` (Viber Bot API client), `webhook.ts` (signed listener), `inbound.ts` (listener, tunnel and webhook lifecycle), `store.ts` (local inbox), `tools.ts` (tools), `server.ts` (entry point) |
| `test/` | End-to-end tests: the official MCP SDK client against the built server and a mock Viber API |
| `scripts/` | `build.mjs` (bundle the server and enforce the 256 KiB limit), `make-icon.mjs` (draw the icon) |
| `.claude-plugin/marketplace.json` | The `avsec-plugins` marketplace, listing `./plugin` |

## Development

Requires Node.js 18.17 or newer.

```bash
npm install
npm run typecheck
npm test                                   # builds plugin/server/ then runs the end-to-end tests
claude plugin validate --strict plugin     # plugin manifest
claude plugin validate --strict .          # marketplace manifest
```

The server has no runtime dependencies: `npm install` only fetches build and test tools. CI rebuilds the server and fails if the committed `plugin/server/viber-connector.mjs` differs from what `src/` produces.

## License

MIT. See [LICENSE](LICENSE).