Skip to content

Commit 86a90f7

Browse files
authored
Merge branch 'main' into test
2 parents 0e84e09 + 5730cca commit 86a90f7

2 files changed

Lines changed: 21 additions & 17 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ vouch install-mcp claude-code # creates .vouch/ (if missing) + wires Claud
127127

128128
> **Why the extra registration?** A committed `.mcp.json` is a *project*-scope server, and Claude Code only loads one after a per-user approval — which the **VS Code extension never prompts for**, so `.mcp.json` alone leaves the `kb_*` tools invisible in the extension (they sit at "pending approval", while the hooks quietly work — easy to misread as "connected"). The local-scope entry `install-mcp` writes is trusted on sight, so a fresh install just connects. Verify with `claude mcp list` (`vouch … ✔ Connected`). Pass `--no-approve` to skip it and approve `.mcp.json` yourself.
129129
130+
> **One-time approval.** Claude Code only loads a project's `.mcp.json` servers after a per-user approval. The terminal CLI prompts for it on the next `claude` launch — but the **VS Code extension never shows this prompt**, so the `kb.*` tools stay unavailable there while the hooks keep working (which makes it easy to think vouch is connected when it isn't). If `claude mcp list` run inside the project shows `vouch … ⏸ Pending approval`, either run `claude` in the project folder from any terminal and accept the prompt, or create `.claude/settings.local.json` (user-local, not committed) with `{"enabledMcpjsonServers": ["vouch"]}`. The same key in the committed `.claude/settings.json` is deliberately ignored — a repo can't approve its own servers — which is why `install-mcp` can't do this step for you. Verify with `claude mcp list` (`✔ Connected`), then reload the VS Code window.
131+
130132
**2. Point `compile` at an LLM** — the only step that needs a model. In `.vouch/config.yaml`:
131133

132134
```yaml

adapters/claude-code/README.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,21 @@ contains `.vouch/` — created by `vouch init` if you're wiring by hand):
4040
}
4141
```
4242

43-
A `.mcp.json` server is *project*-scope: the terminal CLI prompts once to
44-
approve it, but **the VS Code extension never surfaces that prompt**, so on
45-
its own it sits at "pending approval" and the `kb_*` tools never appear (the
46-
hooks, which need no approval, keep working — easy to misread as connected).
47-
To load it in the extension, register the same server at *local* scope, which
48-
is trusted on sight:
49-
50-
```bash
51-
claude mcp add vouch --env VOUCH_AGENT=claude-code -- vouch serve
52-
```
53-
54-
(the one-command `install-mcp` above does this for you). Then reload the
55-
editor window. Confirm with `claude mcp list``vouch … ✔ Connected`.
43+
Claude Code will pick it up the next time you open the project — after a
44+
one-time, per-user approval. The terminal CLI prompts for it on the next
45+
`claude` launch; the VS Code extension does **not** surface the prompt,
46+
so the server sits at "Pending approval" and the `kb.*` tools never
47+
appear (the hooks, which need no approval, keep working — easy to
48+
misread as "vouch is connected"). Approve either way:
49+
50+
* run `claude` in the project folder from any terminal and accept the
51+
MCP server prompt, or
52+
* create `.claude/settings.local.json` (user-local, keep it out of git)
53+
containing `{"enabledMcpjsonServers": ["vouch"]}`.
54+
55+
The same key in the committed `.claude/settings.json` is ignored — a
56+
repo can't approve its own servers. Reload the VS Code window
57+
afterwards.
5658

5759
## 3. Teach Claude about the gate
5860

@@ -75,10 +77,10 @@ In a fresh session, ask Claude:
7577
> What knowledge-base tools do you have?
7678
7779
It should enumerate `kb_search`, `kb_propose_claim`, etc. If not, check
78-
`claude mcp list` first: `vouch⏸ Pending approval` means the local-scope
79-
registration from step 2 hasn't happened (`✔ Connected` once it has), and a
80-
running editor window needs a reload to pick it up. For anything else, run
81-
`claude --debug-mcp` to see why the server isn't loading.
80+
`claude mcp list` first: `vouch: vouch serve - ⏸ Pending approval` means
81+
the one-time approval from step 2 hasn't happened yet (`✔ Connected`
82+
once it has). For anything else, run `claude --debug-mcp` to see why
83+
the server isn't loading.
8284

8385
## Session Capture & Auto-Proposal
8486

0 commit comments

Comments
 (0)