mcp-authkit-store-postgres
v0.2.1
Published
Postgres TokenStore for mcp-authkit — durable PATs, refresh tokens, and upstream-credential cache backed by node-postgres.
Maintainers
Readme
mcp-authkit-store-postgres
Durable Postgres TokenStore implementation for mcp-authkit.
Most users should import it through the core package:
import { postgresTokenStore } from "mcp-authkit/stores/postgres"
import { Pool } from "pg"
const store = postgresTokenStore({
pool: new Pool({ connectionString: process.env.DATABASE_URL }),
})
await store.init() // runs migrations idempotentlyThe pool belongs to the consumer; store.close() does not close it.
See docs/spec/v0.2.md#63-postgres-store
for the contract and
docs/cookbook/postgres-store.md
for the operator-facing recipe (env vars, pool sizing, what to test).
The end-to-end deployment walkthrough is
docs/production.md.
