Commit cae5891
committed
fix(web): correct two brand strings visible to API/MCP clients
Probing the public API surface on claudepot.com surfaced two
client-visible brand bugs:
1. /api/v1/me returned a 401 problem-detail JSON whose `detail`
field told callers the token format was `shn_pat_<28 chars>`.
That's Shannon's Personal Access Token prefix; the rebrand
should have switched it. No PATs are minted yet (api_tokens is
empty on the fresh Neon DB), so the prefix change is safe.
- TOKEN_PREFIX: shn_pat_ → cdp_pat_ (ClauDepot PAT)
- TOKEN_FORMAT_RE adjusted to match the new prefix
- error message + JSDoc + schema.ts comment updated
2. /api/mcp's `initialize` response carried `serverInfo.name =
"sha.com"` — a mangled remnant from an earlier perl substitution
that turned a `sha.nnon.ai` snippet into `sha.com` in source.
MCP clients that connect (e.g. Claude Desktop with the MCP
integration) would see "sha.com" as the server identity.
Switched to "claudepot.com".
Migration 0012 (api_tokens) keeps `shn_pat_` in its frozen header
comment — historical, not user-visible. Routes referencing it via
the live constants pick up the new prefix automatically.1 parent d9add08 commit cae5891
4 files changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
656 | | - | |
| 656 | + | |
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments