---
title: "MCP tools, resources, and prompts"
description: "24 entries."
canonical: "https://klav.everdoc.dev/stable/reference/mcp"
channel: "stable"
---

# MCP tools, resources, and prompts

> OmarAlex24/klav · channel `stable` · v0.15.1 @ [`034e81b52d1b`](https://github.com/OmarAlex24/klav/tree/034e81b52d1b693c65ff95181cd555c6734bc8e8) · 2026-12-04 · generated by Everdoc from source (no LLM).

24 entries.

<a id="mcp-tool-change_password_url"></a>

## `change_password_url`

The page where the item's site lets you change the password (Klav's bundled list, or the site's /.well-known/change-password). Metadata only. First step of a password change.

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1257](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1257)
- Handlers: 1 · Callers: 0
- Input: `{ ref: unknown }`
- Used at: [crates/klav-cli/src/mcp.rs:884](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L884)

<a id="mcp-tool-create_item"></a>

## `create_item`

Create an item (login, api_key, database, note…) in a granted project. Use database for database or cache connection URLs and credentials (Postgres, MySQL, Redis, MongoDB, etc.), api_key for API tokens, and login only for website or application logins. For a new account, pass generate: true (no password in fields): Klav generates a strong password with the site's rules and seals it in the item; you get only its metadata, never the value. Never ask the person to paste an existing API key, connection URL or other secret into the chat so you can store it here: use request_secret instead so they enter it in a hidden field on their device. Titles are unique in a project: if the title exists and you meant that item, use update_item; otherwise choose a more specific title. Never create a copy to get around an update that needs approval.

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1248](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1248)
- Handlers: 1 · Callers: 0
- Input: `{ type: "login" | "card" | "identity" | "ssh_key" | "totp" | "note" | "api_key" | "database"; title: string; vault?: string; project?: string; fields?: unknown; urls?: string[]; tags?: string[]; notes?: string; generate?: boolean | { type?: "smart" | "random" | "memorable" | "pin"; site?: string; field?: string } }`
- Used at: [crates/klav-cli/src/mcp.rs:851](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L851)

<a id="mcp-tool-delete_item"></a>

## `delete_item`

Move an item to the trash (the person can restore it). Denied by default.

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1253](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1253)
- Handlers: 1 · Callers: 0
- Input: `{ ref: unknown }`
- Used at: [crates/klav-cli/src/mcp.rs:972](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L972)

<a id="mcp-tool-end_task"></a>

## `end_task`

End one of your tasks when the job is done (or to withdraw a pending one).

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1282](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1282)
- Handlers: 1 · Callers: 0
- Input: `{ task_id: string; reason: string }`
- Used at: [crates/klav-cli/src/mcp.rs:1036](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1036)

<a id="mcp-tool-fill_card"></a>

## `fill_card`

Type a payment card into a browser page. Returns only the field names.

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1238](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1238)
- Handlers: 1 · Callers: 0
- Input: `{ ref: unknown; target: unknown; selectors?: unknown }`
- Used at: [crates/klav-cli/src/mcp.rs:614](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L614)

<a id="mcp-tool-fill_login"></a>

## `fill_login`

Type a login's username and password into a browser page. Open the login page first; with target `extension`, if it says the tab is on another site, ask the person to open the right page. Klav checks the page's address against the item, types the password only into a password input that still has the focus, and submits only a form on the page's own origin: if it refuses, tell the person, and do not pick other selectors to get around it. Returns only the field names; with submit, also `navigated` and `url_after` (an origin only): check them, since a page that did not change may show an error or ask for a code.

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1236](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1236)
- Handlers: 1 · Callers: 0
- Input: `{ ref?: unknown; url?: string; target: unknown; selectors?: unknown; submit?: boolean }`
- Used at: [crates/klav-cli/src/mcp.rs:614](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L614)

<a id="mcp-tool-get_item"></a>

## `get_item`

Metadata and field names of an item. Never values.

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1234](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1234)
- Handlers: 1 · Callers: 0
- Input: `{ ref: unknown }`
- Used at: [crates/klav-cli/src/mcp.rs:598](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L598)

<a id="mcp-tool-get_secret_request"></a>

## `get_secret_request`

The verified outcome of one of this sandbox's secret requests (pending, fulfilled, denied or expired), optionally waiting up to wait_seconds while it is pending. When the person added the new profile to this sandbox (attached), it gives its local_url and env variable to call now. Never returns the secret value or any item, vault or project.

- Kind: mcp-tool
- Workspace: [klav-forward](../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/mcp.rs:301](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/mcp.rs#L301)
- Handlers: 3 · Callers: 0
- Input: `{ request_id: string; wait_seconds?: number }`
- Used at: [crates/klav-cli/src/mcp.rs:543](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L543), [crates/klav-cli/src/mcp.rs:1135](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1135), [crates/klav-forward/src/mcp.rs:223](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/mcp.rs#L223)

<a id="mcp-tool-get_task"></a>

## `get_task`

State of one of your tasks and what the person approved (access, removed).

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1278](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1278)
- Handlers: 2 · Callers: 0
- Input: `{ task_id: string; wait_seconds?: number }`
- Used at: [crates/klav-cli/src/mcp.rs:543](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L543), [crates/klav-cli/src/mcp.rs:1019](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1019)

<a id="mcp-tool-get_totp"></a>

## `get_totp`

Current one-time code of an item. Pass target so it is typed into the page instead of returned (preferred). Needs the person's approval by default. A TOTP seed is never injected: run_with_secrets, inject_file and templates refuse …/totp.

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1244](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1244)
- Handlers: 1 · Callers: 0
- Input: `{ ref: unknown; target?: unknown }`
- Used at: [crates/klav-cli/src/mcp.rs:799](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L799)

<a id="mcp-tool-inject_file"></a>

## `inject_file`

Prefer run_with_secrets (with env or klav.toml's [files], which Klav removes when the command ends) whenever possible; use inject_file only when a tool needs a file on disk beforehand. Write secrets into a new 0600 file inside the working directory: one reference, or a template with at least one {{ klav://… }}. Returns the path, never the content. Pass ttl_seconds so it disappears, and tell the person the file exists. Attachments (a .p8, a certificate, a key file) go with ref (Item/<attachment name>, as get_item lists it), never in a template. Never cat the file into your context. A `warning` says git would commit the file (add it and *.klav-tmp to .gitignore, or remove the file before any commit), or names a temporary file of a write that was interrupted or is still in progress (tell the person; never delete it yourself).

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1242](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1242)
- Handlers: 1 · Callers: 0
- Input: `{ path: string; ref?: unknown; template?: string; ttl_seconds?: number; overwrite?: boolean }`
- Used at: [crates/klav-cli/src/mcp.rs:752](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L752)

<a id="mcp-tool-list_tasks"></a>

## `list_tasks`

Your recent tasks: pending, running and ended, also those the person offered you without a request (offered: true, with their reason), such as changing reused passwords. Work only with what is in each task's access.

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1280](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1280)
- Handlers: 2 · Callers: 0
- Input: `{}`
- Used at: [crates/klav-cli/src/mcp.rs:543](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L543), [crates/klav-cli/src/mcp.rs:1027](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1027)

<a id="mcp-tool-passkey_sign_in"></a>

## `passkey_sign_in`

Sign in to a site with the person's passkey, in the person's browser, inside a task with `passkey` (one the person offered you in list_tasks, or request_task). Open the site's sign-in page in the person's browser first. Klav's klavd signs in the page; you never get the key nor the assertion. Returns {used: true, rp_id} when the page was already asking for a passkey and got it; otherwise {used: false, armed: true, rp_id, expires_in_s: 60}: click the site's passkey button now, and the next passkey sign-in of that site in that tab gets it (once). Fails with Klav locked: ask the person to unlock.

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1261](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1261)
- Handlers: 1 · Callers: 0
- Input: `{ ref: unknown; target: "extension" }`
- Used at: [crates/klav-cli/src/mcp.rs:912](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L912)

<a id="mcp-tool-request_access"></a>

## `request_access`

Ask the person for a permission on an item (list, fill, inject, totp, reveal, update, delete) instead of failing.

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1255](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1255)
- Handlers: 1 · Callers: 0
- Input: `{ ref: unknown; permission: string; domain?: string }`
- Used at: [crates/klav-cli/src/mcp.rs:981](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L981)

<a id="mcp-tool-request_secret"></a>

## `request_secret`

Ask the person to save a missing secret (or to update the credential of one of this sandbox's profiles) on a card on their Mac or iPhone, where they type it into a hidden field: the value never reaches this sandbox, you or the Klav server. You send only metadata. For a new API key, add a proxy_proposal (a base-URL profile: upstream, header, prefix, path_prefixes) so the person can grant it to Klav's proxy and add it to this sandbox at once; then you call it at its local_url. Never send a value, a vault, project or item: this sandbox cannot name any. Waits up to wait_seconds; while pending, follow `next`. Off unless the person let this sandbox's issuer ask.

- Kind: mcp-tool
- Workspace: [klav-forward](../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/mcp.rs:259](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/mcp.rs#L259)
- Handlers: 2 · Callers: 0
- Input: `{ reason: string; mode?: "create" | "update"; type?: "api_key" | "database" | "login" | "note" | "ssh_key" | "totp"; title?: string; profile?: string; field?: string; placeholder?: string; setup_url?: string; base_url?: string; urls?: string[]; notes?: string; proxy_proposal?: { preset?: string; profile: string; upstream: string; header: string; prefix?: string; methods?: unknown; ask_methods?: unknown; path_prefixes: string[]; rate_per_minute?: number }; wait_seconds?: number }`
- Used at: [crates/klav-cli/src/mcp.rs:1043](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1043), [crates/klav-forward/src/mcp.rs:222](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/mcp.rs#L222)

<a id="mcp-tool-request_task"></a>

## `request_task`

Before a job that touches several items or sites, ask the person once for everything it needs (one card instead of one approval per item). Waits up to wait_seconds; while pending, follow `next`. reveal and delete never go in a task.

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1267](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1267)
- Handlers: 1 · Callers: 0
- Input: `{ task: string; reason: string; duration: string; access: { ref: unknown; permissions: ("fill" | "totp" | "inject" | "update" | "passkey" | "rotate")[]; domain?: string }[]; wait_seconds?: number }`
- Used at: [crates/klav-cli/src/mcp.rs:1007](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1007)

<a id="mcp-tool-reveal"></a>

## `reveal`

Return a secret value into your context. Denied by default: prefer fill_login, run_with_secrets or inject_file.

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1246](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1246)
- Handlers: 1 · Callers: 0
- Input: `{ ref: unknown; field?: string }`
- Used at: [crates/klav-cli/src/mcp.rs:834](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L834)

<a id="mcp-tool-rotate_cancel"></a>

## `rotate_cancel`

The site refused the new password (or you give up): Klav records it, then the current one stays and the new one is kept in the history as generated, not confirmed. Returns {ok: true}. Fails, recording nothing, when Klav holds no pending password for the change (the person may have decided on the item's card): ask the person.

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1265](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1265)
- Handlers: 1 · Callers: 0
- Input: `{ ref: unknown; pending_id: string }`
- Used at: [crates/klav-cli/src/mcp.rs:937](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L937)

<a id="mcp-tool-rotate_confirm"></a>

## `rotate_confirm`

The site took the new password: Klav records it, then makes it the item's current one and keeps the old one in its history. Returns {ok: true}. Fails, recording nothing, when Klav holds no pending password for the change (the person may have decided on the item's card): ask the person.

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1263](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1263)
- Handlers: 1 · Callers: 0
- Input: `{ ref: unknown; pending_id: string }`
- Used at: [crates/klav-cli/src/mcp.rs:937](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L937)

<a id="mcp-tool-rotate_password"></a>

## `rotate_password`

Change a login's password in the person's browser, inside a task with `rotate` (one the person offered you in list_tasks, or request_task). Klav generates the new password with the page's rules, keeps it as pending in the item and types the current and the new one into the change form on the active tab (the focused password field first). You never see either: you get only {filled, pending_id}. Then submit the form, read the result, and call rotate_confirm or rotate_cancel: never leave a change open. Never try to see, copy or type either password yourself.

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1259](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1259)
- Handlers: 1 · Callers: 0
- Input: `{ ref: unknown; target: "extension"; submit?: boolean }`
- Used at: [crates/klav-cli/src/mcp.rs:895](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L895)

<a id="mcp-tool-run_with_secrets"></a>

## `run_with_secrets`

Run a command with secrets in its environment: env: {"API_KEY": "klav://…/api_key"}, plus klav.toml's [env] and [files], or a project environment with environment: "development" (without it, klav.toml's default_env or the only environment; with several, the error lists them: pick one, never guess). A protected environment (production) asks the person once per call for it and the protected items it uses; approval_id retries the whole call. Never put a secret or a value in `command`. The output comes back with the values replaced by [redacted by klav] (also those inject_file wrote in this session): do not try to recover them (encoding, splitting, lengths or prefixes). The redaction is a courtesy, not a sealed channel: the command itself has the values.

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1240](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1240)
- Handlers: 1 · Callers: 0
- Input: `{ command: string[]; env?: unknown; environment?: string; use_project?: boolean; timeout_seconds?: number }`
- Used at: [crates/klav-cli/src/mcp.rs:678](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L678)

<a id="mcp-tool-sandbox_info"></a>

## `sandbox_info`

This sandbox can use only the profiles below. It cannot search, list or read the person's vault. Lists this sandbox's profiles as Klav's credential proxy signed them: each one's kind (http, tunnel, mcp, pg), local URL, upstream host and rules (which methods, paths, MCP tools and SQL classes go through, ask the person first, or are refused), the Postgres URLs (no password), mode (b)'s HTTPS_PROXY when it serves, the `claude mcp add` and `codex mcp add` lines of each remote MCP server, the profiles the person added to this sandbox from a secret request (attached), and this sandbox's secret requests. A new MCP, Postgres or tunnel profile needs a new sandbox; a missing API key can be asked for with request_secret.

- Kind: mcp-tool
- Workspace: [klav-forward](../architecture/klav-forward.md)
- Source: [crates/klav-forward/src/mcp.rs:250](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/mcp.rs#L250)
- Handlers: 1 · Callers: 0
- Input: `{}`
- Used at: [crates/klav-forward/src/mcp.rs:221](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-forward/src/mcp.rs#L221)

<a id="mcp-tool-search_items"></a>

## `search_items`

Find items by title, user name, URL or tag. Metadata only, never values. Start here. When working in a Git repository linked to a granted project, items from that repo's project are listed first and `repo_context` names the matching project(s).

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1232](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1232)
- Handlers: 1 · Callers: 0
- Input: `{ query?: string; vault?: string; project?: string; type?: string; repo_only?: boolean; limit?: number }`
- Used at: [crates/klav-cli/src/mcp.rs:579](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L579)

<a id="mcp-tool-update_item"></a>

## `update_item`

Change an item: patch = { title?, set?: {field: value}, remove?: [field], add_urls?, add_tags?, notes? }. Needs the person's approval by default: wait for it, never create a copy of the item instead. A new title must not be another item's in the project.

- Kind: mcp-tool
- Workspace: [klav-cli](../architecture/klav-cli.md)
- Source: [crates/klav-cli/src/mcp.rs:1251](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L1251)
- Handlers: 1 · Callers: 0
- Input: `{ ref: unknown; patch: {} }`
- Used at: [crates/klav-cli/src/mcp.rs:953](https://github.com/OmarAlex24/klav/blob/034e81b52d1b693c65ff95181cd555c6734bc8e8/crates/klav-cli/src/mcp.rs#L953)
