Skip to content

Commit bfe05ef

Browse files
dprevoznikclaude
andcommitted
Add vault login example to MCP server examples
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 5301022 commit bfe05ef

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎reference/mcp-server/examples.mdx‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,25 @@ Assistant: I'll start a replay recording, run the automation, then stop it.
3232
[Uses manage_replays tool with action: "stop" to end the recording]
3333
```
3434

35+
## Fill a login from a vault
36+
37+
```
38+
Human: Log in to github.com for user-123 with a password they enter themselves, not in chat.
39+
Assistant: I'll check user-123's vault for a GitHub credential first.
40+
[Uses manage_vaults tool with action: "create" and name: "user-123", which returns the vault if it already exists]
41+
[Uses manage_vault_items tool with action: "list" on vault "user-123"; no GitHub credential exists]
42+
Assistant: Is your GitHub login saved in your own 1Password, or would you rather enter it in a secure Kernel form?
43+
Human: The Kernel form.
44+
[Uses manage_vault_credentials tool with action: "create", provider: "kernel", and username/password field definitions]
45+
Returns: a collection URL to share privately with the user
46+
[Uses manage_vault_items tool with action: "get" and wait: 60 until the credential is ready]
47+
[Uses manage_browsers tool with action: "create" and vaults: [{ "name": "user-123" }], then navigates to the login page]
48+
[Uses manage_vault_items tool with action: "invoke", operation: "fill", and inputs with browser_id, page_url, and field/selector bindings]
49+
Returns: per-field outcomes without the values. The agent submits the form and checks the page.
50+
```
51+
52+
See [`manage_vaults`](/reference/mcp-server/tools/manage-vaults) for the full set of vault tools.
53+
3554
## Set up browser profiles for authentication
3655

3756
```

0 commit comments

Comments
 (0)