File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,10 +58,20 @@ await mcp.webauthn_remove_authenticator({authenticatorId});
5858- ` src/tools/tools.ts ` - Export webauthn tools
5959- ` tests/tools/webauthn.test.ts ` - Tests (new)
6060
61+ ## Error Handling
62+
63+ User-friendly error messages for common failure modes:
64+ - "WebAuthn virtual authenticator environment not enabled. Call webauthn_enable first."
65+ - "Invalid or unknown authenticator ID. Use webauthn_add_authenticator to create one."
66+ - "Resident credentials require a userHandle. Provide userHandle parameter."
67+ - "Failed to create credential. Ensure privateKey is a valid PKCS #8 EC P-256 key (base64 encoded)."
68+
6169## Commits
6270
6371- ` 5f35101 ` feat(webauthn): add webauthn_enable tool skeleton
6472- ` ce3a0ed ` feat(webauthn): implement WebAuthn.enable CDP call
6573- ` 300e963 ` feat(webauthn): add webauthn_add_authenticator tool
6674- ` 248f408 ` style: fix import order and formatting
6775- ` d5f5a0d ` feat(webauthn): add remaining WebAuthn tools (Phase 2)
76+ - ` 5b6939e ` docs: update tool reference and implementation notes
77+ - ` c822495 ` refactor(webauthn): improve error handling and reduce code duplication
You can’t perform that action at this time.
0 commit comments