docs: add the agent / MCP setup guide for self-hosters #360
No reviewers
Labels
No labels
area:auth
area:ci
area:db
area:infra
area:native
area:pwa
area:service
epic
feature
foundation
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
james/carol!360
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent-setup-guide"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Carol now ships a built-in chat agent and a streamable-HTTP MCP endpoint, but there was no end-to-end setup doc. Adds
docs/agent-setup-guide.mdcovering both paths.Contents
CAROL_ENCRYPTION_KEYoperator step (links to the README Configuration table rather than restating the env-var surface, per CLAUDE.md), per-user provider config (provider/model/baseUrl/apiKey), and a reverse-proxy note so the SSE token stream isn't buffered.curlsmoke test, and the propose-then-confirm write behavior.README links to the guide from the
CAROL_ENCRYPTION_KEYrow and the MCP section; no env-var defaults are duplicated (links only). Design references point to ADR-0029/0030/0031.Verified
CAROL_ENCRYPTION_KEY503 behavior (settings/llm/route.ts), provider DTO (lib/dto/llm.ts), SSE headers (lib/api/sse.ts), the MCP route/methods (lib/mcp/server.ts), PAT minting, and that/api/mcpis not inpublic-routes.ts.claude mcp addsyntax matches the existing README snippet (not invented).Flagged for your eye
opencode.jsonmcp→ remote-server block is provided with an explicit note to confirm against opencode's docs — its schema has shifted across releases. The reliable facts (endpoint URL + bearer header) are anchored; the wrapper keys are opencode's. Worth a glance before merge.claude-sonnet-4-5,gpt-4o-mini) are illustrative — model is a free-form string with no allowlist.🤖 Generated with Claude Code
📊 Test coverage
Patch coverage: no testable lines changed.
Overall (
app/,lib/,db/, excluding UI per ADR-0019):Soft thresholds per ADR-0019. Coverage is informational and does not block merge.