Skip to content

Commit 6f43b95

Browse files
docs: add error handling section to implementation notes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c822495 commit 6f43b95

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

WEBAUTHN_IMPLEMENTATION.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)