Skip to main content
Glama
README.md
<p align="center"><img src="docs/logo.svg" width="96" alt=""></p>

# Pontix

A community catalog of MCP connectors for your own accounts — mostly on
services that never shipped an official API: marketplaces, supermarkets, local
tools. You bring your own credentials, the connectors run on your machine, and
your assistant gets a `mercadona_list_orders` tool instead of a browser tab.

The name comes from *pons, pontis*, the Latin for bridge: Pontix builds the span
between your own accounts and your assistant. The mark says the same thing: a
bridge from a square, a service with an API of its own, to a circle, the one
standard every assistant speaks.

> Status: **early.** The contract, the runtime and the authentication
> lifecycle are in place and tested, and the packages are published to npm
> under `@pontix`. Every connector listed below has been run against a live
> account; the date next to each is when its field names were last confirmed.
> Write tools exist in Google Calendar, Duin, Wallapop and Mercadona, and each
> stays off until it is allowed with `--allow-writes`.
> Playtomic is parked under `adapters/_parked`: its API now requires device
> attestation, so Pontix can no longer authenticate against it.

## Why this exists

MCP made it trivial to expose a tool to an assistant. It did nothing about the
hard part: most of the services you actually use every day have no API. Writing
the MCP plumbing takes an afternoon; keeping a connector alive against an
undocumented endpoint is the real, ongoing work — and it is work worth sharing.

That is still what the project is for, but the point is reaching *your own*
accounts from an assistant, and now and then the service does publish an API.
Google Calendar is one, and it is here for a reason other than convenience: the
value of several connectors in one process is composition. Your assistant can
read your next order from Mercadona and put it in your calendar, reading from one
service and acting in another, with no sync engine in between. A calendar is
somewhere to write to. Every connector before it only read. It is also the first
`official_api` connector, so what its documented schema changes about the
machinery built for undocumented ones is still being found out.

## Architecture

```
packages/core          Adapter contract, auth lifecycle, HTTP client, rate limiting, cache
packages/mcp-runtime   Serves any number of modules from one process
packages/cli           `pontix serve` / `pontix inspect`
adapters/_template     Starting point for a new connector
adapters/_parked       Connectors kept but blocked upstream (see its README)
adapters/gcal          Google Calendar, official API, the write tools — field names confirmed 2026-11-11
adapters/mercadona     Supermarket orders, product search and cart (private API) — field names confirmed 2026-11-30
adapters/wallapop      Profile, search, listing detail and favourites (private API) — field names confirmed 2026-11-18
adapters/duin          Gym account (workouts, plans, exercise catalogue) — field names confirmed 2026-11-17
adapters/telegram      Your own chats, read-only (MTProto user API) — personal use, own risk, run live 2026-11-25
```

**[docs/connectors.md](docs/connectors.md) is the inventory**: what each
connector returns, which tools need an opt-in, and — the column that decides
whether to trust one — whether a live account has ever confirmed its field
names. These services publish no schema, so an unconfirmed connector has
plausible names and no evidence.

The split is the whole design. An adapter declares **what** it can do — tools,
inputs, credentials, source kind — and never imports the MCP SDK. The runtime
turns that declaration into a server. When an upstream service changes, one
adapter breaks and everything else keeps working.

Read [docs/architecture.md](docs/architecture.md) before adding anything.

## Quick start

```bash
pnpm install
pnpm build

cp .env.example pontix.env   # fill in only the modules you use
pontix inspect               # what is installed, and what each one needs
pontix serve --env-file pontix.env
```

Then point your MCP client at Pontix — **one entry, every module**:

```json
{
  "mcpServers": {
    "pontix": {
      "command": "pontix",
      "args": ["serve", "--env-file", "/absolute/path/pontix.env"]
    }
  }
}
```

`serve` with no module named loads the modules you enabled in the control panel,
or every module installed if you have never used it. So adding a service is
`pnpm add @pontix/adapter-<id>` and a switch — not another entry here. Switching a module on or off in the panel applies to a running server within seconds, with no reconnect; installing or updating one still needs a restart. Tools
stay namespaced by module: `mercadona_list_orders`, `gcal_list_events`.

No `env` block, so credentials never enter a synced file — and the file must be
named, because an implicit `.env` in whatever directory you run from could
redirect where a login carrying your credentials goes.

Startup is tolerant: a module you have not configured goes unavailable on its
own and the rest keep serving. Ask `pontix_status` which came up, which did
not, and what to fix.

Name modules to narrow it — `pontix serve mercadona` — when debugging one.

### Over HTTP, for clients that are not a local child process

```bash
pontix serve --http                    # loopback, no token needed
```

```
streamable HTTP  /mcp     current MCP clients, and what Alexa+ asks for
server-sent      /sse     what Home Assistant's MCP integration speaks
liveness         /health  no credential, so a tunnel can check it
```

Two transports because the clients worth reaching disagree, and dropping either
means not working with something. Modules start **once**: every connected client
gets its own server but they share the sessions, limiters and caches, so a
second client costs a map entry rather than another login.

**Anything that is not loopback needs a token.** Over stdio the parent process
is the boundary; over HTTP there is none, and whatever reaches the port can read
the accounts these connectors are logged into. `pontix serve --http --http-host
0.0.0.0` refuses to start and exits non-zero until `PONTIX_HTTP_TOKEN` is set.

| | |
| --- | --- |
| `PONTIX_HTTP_TOKEN` | Bearer token. Required off loopback, ≥24 characters. |
| `PONTIX_HTTP_HOST` / `--http-host` | `127.0.0.1` |
| `PONTIX_HTTP_PORT` / `--http-port` | `7800` |
| `PONTIX_HTTP_ALLOWED_HOSTS` | Host names to answer to. **Set this behind a proxy or a tunnel**, where the Host a client sends is the external name and never matches the bound address. |

Host and origin are checked by default, resolved from what is actually
listening: without it, a page in a browser on the same network can be pointed
at this hub as if it were the page's own origin.

### One shared server for every client on this machine

Over stdio, every MCP client session starts its own `pontix serve`, and each
logs in to every connector on startup. That is usually fine, but a connector
that allows **one connection per account** (it declares `exclusiveSession`)
is then usable from one client at a time; the others report it as in use. Run
one shared server instead and point every client at it.

On macOS, a LaunchAgent keeps it running and restarts it if it stops. Save as
`~/Library/LaunchAgents/dev.pontix.serve.plist`, with your own paths and
flags:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key><string>dev.pontix.serve</string>
  <key>ProgramArguments</key>
  <array>
    <string>/absolute/path/to/node</string>
    <string>/absolute/path/to/pontix/packages/cli/dist/index.js</string>
    <string>serve</string>
    <string>--http</string>
    <string>--env-file</string><string>/Users/you/.config/pontix/pontix.env</string>
    <string>--secret-key-file</string><string>/Users/you/.config/pontix.key</string>
  </array>
  <key>RunAtLoad</key><true/>
  <key>KeepAlive</key><true/>
  <key>StandardOutPath</key><string>/Users/you/.config/pontix/serve.log</string>
  <key>StandardErrorPath</key><string>/Users/you/.config/pontix/serve.log</string>
</dict>
</plist>
```

```bash
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/dev.pontix.serve.plist
curl -s http://127.0.0.1:7800/health            # {"ok":true,"modules":N}
launchctl kickstart -k gui/$(id -u)/dev.pontix.serve   # after rebuilding or changing flags
```

Then replace the client's stdio entry with the URL. For Claude Code, in
`~/.claude.json` (or `$CLAUDE_CONFIG_DIR/.claude.json`), keep a backup first:

```json
"pontix": { "type": "http", "url": "http://127.0.0.1:7800/mcp" }
```

Sessions already open keep their own stdio server until they restart. Flags
such as `--allow-writes` now belong to the LaunchAgent, not to the client entry.

## Several accounts of one service

One connector can serve several accounts of the same service (two Wallapop
accounts, a personal and a work calendar) from the same server. Each account has
a name: lowercase letters and digits, starting with a letter, up to 24
(`personal`, `work`, `maria`).

- **The primary account** is the one configured exactly as before, with the same
  stored fields and the same variables, so an existing setup changes nothing. It
  is called `default` until you name it (`pontix accounts primary wallapop
  personal`, or Rename in the panel); that only changes a label in
  `accounts.json`, no secret moves. A call that names no account uses it.
- **Another account** is added in the panel (Add account) or with
  `pontix login wallapop --account work`, or by suffixing the variables:
  `PONTIX_WALLAPOP_REFRESH_TOKEN__WORK`. Every declared field is per account,
  base URLs and client ids included, with no fallback to the primary's value.
- **Tools do not change.** Each one gains an optional `account` argument;
  `wallapop_get_profile` with `{"account": "work"}` answers for that account. An
  unknown name is an error that lists the known ones.
- **Writes are granted per account**: `--allow-writes=wallapop` lets every
  account write, `--allow-writes=wallapop:work` only that one, and
  `--allow-writes=wallapop_add_favorite:work` one tool of one account.
- Accounts share their connector's rate limiter, since they reach the same
  service from the same machine.

`pontix accounts list <module>` shows what `serve` will serve. Details:
[CLI](packages/cli/README.md#several-accounts-of-one-service),
[panel](packages/panel/README.md#several-accounts-of-one-service),
[architecture](docs/architecture.md#several-accounts-of-one-module).

## Rules of the project

1. **Read-only by default.** Write-capable tools stay unregistered unless the
   operator passes `--allow-writes`. One tool is behind it today,
   `gcal_create_event`. The flag takes three forms: bare, which allows every
   write tool; a module id, `--allow-writes=gcal`; or one tool,
   `--allow-writes=gcal_create_event`. Either may end in `:account` to grant one
   account only (`--allow-writes=gcal:work`). A grant naming a different module
   does not register it.
2. **Other people's data is declared, and off by default.** A tool that can
   return anything about anyone but you says so, names the kinds, and stays
   unregistered without `--allow-third-party-data`. What a tool returns goes to
   your model provider, and a third party's name cannot be taken back.
3. **Your credentials, your machine.** Nothing is committed, proxied, or
   shared between adapters. Either as environment variables, or typed into the
   control panel and encrypted with one key you hold — kept in a file both the
   panel and the server read, and never in the directory it protects. With no
   key named, `pontix` looks for `~/.config/pontix.key`. The store
   is read first, so both work and neither needs migrating.
4. **Polite by construction.** Every request goes through a rate limiter, one
   per module, so one busy connector cannot spend another's budget.
5. **Honest labelling.** Each adapter declares its `sourceKind`, so users know
   whether they are on a documented API or an undocumented one.
6. **Personal use.** Not a scraping platform, not a data resale pipeline. See
   [docs/legal.md](docs/legal.md).

## Contributing

New connectors are welcome — start from `adapters/_template` and follow
[docs/adapter-guide.md](docs/adapter-guide.md). Sign off your commits
(`git commit -s`); [CONTRIBUTING.md](CONTRIBUTING.md) says why and how. Maintainers: see
[docs/releasing.md](docs/releasing.md) for versioning and publishing.

## How this compares to an MCP gateway

Pontix is an MCP **server**, not a gateway. It does not proxy other people's
servers — it owns its connectors end to end, which is what lets it report that a
service changed shape, recover an auth session, and owe politeness to an API
that never agreed to be called.

A gateway does things Pontix does not, and the two work together.
[docs/positioning.md](docs/positioning.md) says exactly which, in both
directions.

## Migrating from the `conduit` name

The project was renamed from conduit to **Pontix**. Nothing was published under
the old name, but a setup that already runs keeps the old names in four places
you control. Nothing falls back to the old names, so each step below is yours
to do. Skipping one does not always fail the same way:

- **Fails loudly:** step 1 (a `CONDUIT_*` variable is ignored, so the module
  reports a missing credential naming the `PONTIX_*` variable), step 4 (the
  client cannot find `conduit`), and an unset `PONTIX_PANEL_PASSPHRASE` or
  `PONTIX_PANEL_SECURE_COOKIES` (Compose and `pontix-panel` run directly both
  refuse to start).
- **Fails quietly:** step 2's panel config (without `~/.config/pontix/panel.json`
  `pontix serve` finds no recorded choice and **starts every installed
  module**, including ones you had switched off), step 3 (the panel comes up
  with an empty volume and just looks wiped), and a leftover `CONDUIT_HTTP_TOKEN`
  or `CONDUIT_HTTP_ALLOWED_HOSTS` (see step 1).

Do them in this order, with the panel and any `conduit serve` stopped, and
finish step 2 before you start anything.

### 1. Environment variables

Every `CONDUIT_*` variable is now `PONTIX_*`, with the same meaning:
`CONDUIT_SECRET_KEY` becomes `PONTIX_SECRET_KEY`, `CONDUIT_GCAL_REFRESH_TOKEN`
becomes `PONTIX_GCAL_REFRESH_TOKEN`, `CONDUIT_PANEL_PASSPHRASE` becomes
`PONTIX_PANEL_PASSPHRASE`, and so on for all of them. Rename them in your env
file, shell profile, launcher scripts and compose environment. For an env file:

```bash
sd 'CONDUIT_' 'PONTIX_' /absolute/path/conduit.env
```

A variable still spelled `CONDUIT_*` is ignored, which looks like a missing
credential. Run `pontix inspect` to see what each module still needs.

**Two of them fail quietly, and `inspect` will not show it.** If you serve over
HTTP, `CONDUIT_HTTP_TOKEN` and `CONDUIT_HTTP_ALLOWED_HOSTS` are ignored like
the rest, but nothing reports a credential missing. Bound off loopback, the hub
refuses to start without `PONTIX_HTTP_TOKEN`, so that case is loud. Bound to
loopback, which is the default, the hub starts with **no token**: a setup behind
a reverse proxy or a tunnel silently loses its authentication, and without
`PONTIX_HTTP_ALLOWED_HOSTS` the host allowlist falls back to the bound address.
Rename both before the first `pontix serve --http`.

### 2. The credential store on disk

The defaults moved from `~/.config/conduit/` to `~/.config/pontix/`, and the
files `conduit.env` and `conduit.key` became `pontix.env` and `pontix.key`.
The store holds your encrypted secrets, so move it, do not recreate it. These
commands never overwrite anything and never delete anything.

**Do not skip this step.** It also carries `panel.json`, the file that records
which modules you enabled. If it is missing, `pontix serve` does not fail: it
starts every installed module. Nothing warns you.

`~/.config/pontix/` may already exist (running `pontix inspect` after the
rename creates it), and then a plain `mv ~/.config/conduit ~/.config/pontix`,
with or without `-n`, would move the old directory *inside* it and leave the
store at `~/.config/pontix/conduit/secrets.json`. So move the entries, not the
directory:

```bash
mkdir -p ~/.config/pontix
find ~/.config/conduit/. ! -name . -prune -exec mv -n {} ~/.config/pontix/ \;
[ -f ~/.config/conduit.key ] && mv -n ~/.config/conduit.key ~/.config/pontix.key
[ -f ~/.config/pontix/conduit.env ] && mv -n ~/.config/pontix/conduit.env ~/.config/pontix/pontix.env
rmdir ~/.config/conduit
```

`find` lists every direct entry of the old directory, dotfiles included,
without descending into them and without shell globs (so an empty directory or
zsh's "no matches found" cannot break it). `mv -n` skips any entry whose name
already exists in the target instead of overwriting it. Whatever was skipped
stays in `~/.config/conduit`, and the final `rmdir` then refuses to remove it,
so you can compare the two copies yourself. **No command in that block deletes
anything.**

**Expect `rmdir` to refuse, and expect `status.json` to be why.** It is a cache
of the last `serve` run, rewritten by the next one, and running `pontix inspect`
after the rename already wrote a fresh copy into the new directory. So the two
collide, the old one is skipped, and the directory is left holding it. That is
the migration working, not failing. Removing the leftover is a separate step
further down, taken after you have read what the check reports — not a line
buried in a block you pasted. First, check:

```bash
[ -f ~/.config/pontix/secrets.json ] && echo "store: ok" || echo "store: MISSING"
[ ! -e ~/.config/pontix/conduit ] && echo "nesting: none" || echo "nesting: PRESENT, see below"
if [ ! -e ~/.config/conduit ]; then echo "old dir: gone"; else echo "old dir: still here, holding:"; ls -A ~/.config/conduit; fi
```

Anything listed under `old dir: still here` is a name that exists in both
places, so it was not moved. Compare the two copies and decide; do not start
anything while it is there.

If that list is **only** `status.json`, everything that matters moved and the
leftover is the regenerated cache described above. Remove it and the now-empty
directory yourself:

```bash
rm ~/.config/conduit/status.json && rmdir ~/.config/conduit
```

If anything else is listed, stop and look at it before deleting a thing. The
command above names one file on purpose: there is no `rm -r` anywhere in this
migration, and a step that could remove your secrets is not a step that should
be easy to paste past.

If `nesting: PRESENT` appears, an earlier attempt moved the directory inside the
new one. Fix it the same way, from the nested directory, then `rmdir` it:

```bash
find ~/.config/pontix/conduit/. ! -name . -prune -exec mv -n {} ~/.config/pontix/ \;
rmdir ~/.config/pontix/conduit
```

If your key or env file lives elsewhere, rename it there and point
`PONTIX_SECRET_KEY_FILE` / `--env-file` at it. The key's contents do not change,
so nothing is re-encrypted. Do not start anything until the three checks above
read `store: ok`, `nesting: none` and `old dir: gone`.

The control panel also renamed what your browser holds: the session cookie
`conduit_panel` is now `pontix_panel`, so you are logged out once, and the saved
language preference `conduit.locale` (now `pontix.locale`) resets to the default.
The panel's request header `x-conduit-token` is now `x-pontix-token`; the panel's
own page sends it, so only a script calling the panel API needs updating.

### 3. The Docker volume

Compose names a volume after its project. The panel's project was `conduit` and
is now `pontix`, so the existing data (enabled modules and the panel's
credential file) sits in the volume `conduit_conduit-data` while the new
deployment mounts an empty `pontix_pontix-data`. Nothing is deleted; the panel
just looks wiped. Copy the data across before the first `docker compose up`:

```bash
docker compose -p conduit down
docker volume inspect conduit_conduit-data
docker volume create pontix_pontix-data
docker run --rm \
  -v conduit_conduit-data:/from:ro -v pontix_pontix-data:/to alpine \
  sh -c 'cp -a /from/. /to/ && { [ ! -e /to/conduit.env ] || mv /to/conduit.env /to/pontix.env; }'
docker run --rm -v pontix_pontix-data:/d alpine ls -la /d
```

Then start the panel with `PONTIX_PANEL_PASSPHRASE` and
`PONTIX_PANEL_SECURE_COOKIES` set (`true` behind a TLS proxy, `false` on
loopback). The cookie switch has no default any more: a leftover
`CONDUIT_PANEL_SECURE_COOKIES` would otherwise be ignored and leave the session
cookie without the `Secure` attribute, so Compose and `pontix-panel` run
directly both refuse to start until the new name is set to `true` or `false`. Once you have confirmed
it shows your modules, `docker volume rm conduit_conduit-data` reclaims the old
copy. The same commands are in `packages/panel/docker-compose.yml`. Connector
icons live on the host under `~/.config/pontix/icons` (or `PONTIX_ICON_DIR`),
and step 2 already moved them.

### 4. The MCP client configuration

The binary is `pontix`, not `conduit`, and the status tool is `pontix_status`,
not `conduit_status`. A client that spawns `conduit serve` fails with command
not found until its config is edited. In each client's MCP config, change the
command and any env-file path:

```json
{
  "mcpServers": {
    "pontix": {
      "command": "pontix",
      "args": ["serve", "--env-file", "/absolute/path/pontix.env"]
    }
  }
}
```

Restart the client, then ask it for `pontix_status` to confirm every module you
expect came up.

## License

**AGPL-3.0-only, and free software.** Self-hosting is free forever; running
Pontix as a service for other people means offering them the source of your
version. No feature is withheld and nothing is sold.

Contributions are accepted under the [Developer Certificate of
Origin](https://developercertificate.org/): sign off each commit with
`git commit -s`. [LICENSING.md](LICENSING.md) explains the licence, the sign-off,
and why the licence is not MIT.

Pontix is not affiliated with any of the services it connects to. See
[docs/legal.md](docs/legal.md) for the scope this project is built for — your
own data, your own account, your own machine — and the limits that come with it.