# Publishing Gateway to GitHub

Checklist for making the project publicly visible and maintainable.

## Repository setup

1. Create a **public** GitHub repository (e.g. `onec-mcp-gateway`).
2. Copy `/var/www/mwi.yatsuk.pro` excluding secrets:
   - `.data/`
   - `/etc/onec-mcp-gateway/env`
   - `node_modules/`
   - local credentials and MCP tokens
3. Add root **`LICENSE`** (project license as chosen by owner).
4. Ensure **`README.md`** links to `apps/docs/` and [MCP_COMPARISON.md](./MCP_COMPARISON.md).

## Security before push

- Run `git grep -iE 'password|token|secret|apikey'` on staged files.
- Confirm `.gitignore` includes `.data`, `.env`, `*.pem`, `patch-backups/`.
- Never commit production `ONEC_MCP_HTTP_TOKEN` or YooKassa keys.

## CI (recommended)

```yaml
# .github/workflows/ci.yml
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with: { node-version: "20" }
      - run: npm ci
      - run: npm run build
      - run: ONEC_BSL_LS_DISABLE=1 ONEC_MCP_BETA_TOOLS=1 npm run test
```

## Public demo

- Document hosted demo: https://mwi.yatsuk.pro (read-only scopes for visitors).
- Link comparison page: [MCP_COMPARISON.md](./MCP_COMPARISON.md).

## Related

- [DEPLOYMENT.md](./DEPLOYMENT.md)
- [SECURITY_MODEL.md](./SECURITY_MODEL.md)
