Add Clerk WASM plugin#4
Merged
Merged
Conversation
Clerk authentication and identity management integration (34 tools) for users, sessions, organizations, memberships, invitations, and allow/block list identifiers via the Clerk Backend API. Co-Authored-By: Crush <noreply@anthropic.com>
The Clerk API returns 422 if neither filter is provided; surface this as a client-side validation error and clarify the tool description and parameter docs. Co-Authored-By: Claude <noreply@anthropic.com>
Owner
Author
Live end-to-end test resultsTested against a real Clerk workspace using a Tools verified working
Error paths verified
Bug fixed in this push
Compaction shape notesConfirmed live that Clerk's list endpoints are inconsistent:
The compact specs already cover both shapes via dual-path entries ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cdylibcrate exporting the standard guest ABI (name,metadata,tools,configure,execute,healthy,compact_specs), built withcargo build --release --target wasm32-wasip1and shipped asdist/clerk.wasmmanifest.jsonandREADME.mdso the marketplace picks it up at the standard URLTools (34)
Entry-point tools (
clerk_list_users,clerk_list_sessions,clerk_list_organizations,clerk_list_invitations,clerk_list_allowlist_identifiers,clerk_list_blocklist_identifiers) include "Start here" wayfinding text and natural-language synonyms (auth, identity, tenant, B2B, login, etc.) for search discoverability.Field compaction specs included for all 9 list tools.
Credentials
secret_keysk_test_...orsk_live_...), sent asAuthorization: Bearer <secret_key>healthy()callsGET /v1/jwks— succeeds iff the key is valid.Test plan
cargo test -p clerk-wasm— 6 tests pass (tool metadata, entry-point Start here guidance, compact spec/tool parity, dispatch parity over all 34 tools, unknown-tool error envelope, path/query escaping)cargo clippy -p clerk-wasm --target wasm32-wasip1 -- -D warnings— cleancargo fmt -p clerk-wasm --check— cleancargo build --release --target wasm32-wasip1 -p clerk-wasm— succeeds; binary copied todist/clerk.wasm(210 KB)dist/clerk.wasm; manifest.json is valid JSONruntime.LoadModulereturns name=clerk, 34 tools, metadata (abi=1, caps=[http]),healthy(unconfigured) = false🐨 Generated with Crush