Make PaperTrail plug into Anthropic's Claude Science workbench four ways:
- Remote URL connector: hosted Streamable-HTTP MCP at /api/mcp (45 public tools)
- Local command connector: standalone stdio MCP package under mcp/ (47 tools,
incl. 2 API-key tools) — @modelcontextprotocol/sdk, calls the live API
- Skills: 8 Claude Science Agent Skills under skills/ (import from GitHub / upload)
- Network: docs to allow-list the API domain for the curl path
- Public /connect page showcasing all four methods (judges can see it, no login)
Also:
- Google OAuth sign-in ("Continue with Google") on login + register, wired to
GOOGLE_CLIENT_ID/SECRET; users.password_hash now nullable + auth_provider/
google_sub (migration 0061); password login guards Google-only accounts
- Landing design: center + enlarge the claim input; bigger textarea
tsc clean; app build compiles 362 pages; local MCP smoke-tested end-to-end.
16 lines
788 B
SQL
16 lines
788 B
SQL
-- Google OAuth sign-in. Users can now authenticate with Google in addition to
|
|
-- email + password. A Google-only user has no password, so password_hash becomes
|
|
-- nullable; auth_provider records how the account signs in; google_sub is the
|
|
-- stable Google subject id used to recognise a returning Google user.
|
|
--
|
|
-- Idempotent — safe to run repeatedly.
|
|
|
|
alter table users alter column password_hash drop not null;
|
|
alter table users add column if not exists auth_provider text not null default 'password';
|
|
alter table users add column if not exists google_sub text;
|
|
|
|
-- One account per Google subject. Partial unique index so password users (null
|
|
-- google_sub) are unaffected.
|
|
create unique index if not exists users_google_sub_idx
|
|
on users(google_sub) where google_sub is not null;
|