The AIDB package installs the edb-endpoints binary into the Postgres bindir. The endpoint requires PostgreSQL 16 or later and refuses connections that pg_hba.conf admits without checking a password. See Passwords are always checked. To enable the endpoint:
Make sure
aidbis inshared_preload_libraries— AIDB's other background workers already require it, so if AIDB is installed and running, this is likely already set. See Configuring AIDB if it isn't.In
postgresql.conf, turn the endpoint on:edb.endpoints_mcp_enabled = on
If the database you want to serve isn't
postgres, also setedb.endpoints_mcp_database(or the generaledb.endpoints_database) to the name of the database where you ranCREATE EXTENSION aidb. Use a plain database name, not a connection string:edb.endpoints_mcp_database = 'my_aidb_db'
With one database, the endpoint connects to it for every call. To serve more than one database from the same endpoint, list them separated by commas. See Serving multiple databases.
The OTLP receiver ignores
edb.endpoints_mcp_database. It always serves the databases inedb.endpoints_database, so set that one if you also enable the receiver.Restart Postgres. The supervisor starts only if
edb.endpoints_mcp_enabledoredb.endpoints_otlp_enabledis on at Postgres startup, so the first time you turn the endpoint on, a reload isn't enough.Check that the endpoint is up. By default it listens on
127.0.0.1:8765:curl -fsS http://127.0.0.1:8765/health curl -fsS http://127.0.0.1:8765/ready
Both return HTTP 200.
Every other parameter has a working default. See Configuring the endpoint for the full list.
Once the endpoint is up, see Provisioning example for an end-to-end walkthrough that provisions agent roles and calls the endpoint from a client.