feat: access profiles, and read/edit/other tool groups with bulk switches #48
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/access-profiles"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Clients page and profiles
/clients/profiles/:id.GET /api/me/access-overviewfeeds the Clients page.Read / edit / other tool groups
server_tools.annotations(migration0009).toolKind()in@mcphub/sharedsorts tools into read, edit or other.readOnlyHint/destructiveHintdecide first; otherwise the verb the name starts or ends with is a guess.PUT /api/me/{clients|mcp-keys|profiles}/:id/tools/access, also with a "Bulk actions" menu for every server at once;PUT /api/me/servers/:id/tools/prefs;PATCH /api/admin/servers/:id/tools, audited with kind and count.DataTablegets aflushoption so tables sit edge to edge inside sections.Docs:
docs/architecture.md(Profiles, Bulk switches by tool kind).Test plan
npm run lint,npm run typecheckToolsTab.test.tsxtool-kind.test.tsegress.test.ts > answers 502 for a host that does not resolve, which also fails without these changes (DNS in my environment).🤖 Generated with Claude Code
Clients page: - show what each OAuth client and MCP key can use (servers and tool counts) - profiles: named allowlists of servers ("Coding", "Assistant") that clients and keys follow instead of their own switches; a client may follow several and gets their union; deleting a followed profile is refused - profile editor at /clients/profiles/:id with the same switches as a client Tool kinds: - store each tool's MCP annotations in server_tools (migration 0009) - classify tools as read, edit or other: readOnlyHint / destructiveHint first, then the verb the name starts or ends with - foldable Read / Edit / Other sections with one switch per kind on client and profile access, the user's server page and the admin Tools tab - bulk routes: PUT /api/me/{clients|mcp-keys|profiles}/:id/tools/access, PUT /api/me/servers/:id/tools/prefs, PATCH /api/admin/servers/:id/tools - access pages also get a menu to switch one kind on every server Server rows on access pages fold to one height and expand on click. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>