Step 1
Prerequisites
The MCP server talks to the local API, so each developer needs the stack running on their own machine. Requires Node 22+.
# 1) Start the stack (API on :4000)
docker compose up -d
curl -s localhost:4000/api/health # should return JSON
# 2) Install deps and build the MCP server
npm install
npm run build --workspace @finverity/codebase-chat-mcp
Step 2
Add it to Claude Code
Run claude from the repository root. This repo ships a committed .mcp.json, so Claude Code detects it and asks you to approve the finverity-chat server (project-scoped servers require approval). Approve once and every developer who clones the repo gets the same config.
{
"mcpServers": {
"finverity-chat": {
"command": "node",
"args": ["apps/mcp/dist/index.js"],
"env": { "API_BASE_URL": "http://localhost:4000/api" }
}
}
}
Prefer the CLI? One command (same result):
# Shared with the team (writes .mcp.json) — run from the repo root:
claude mcp add finverity-chat --scope project \
--env API_BASE_URL=http://localhost:4000/api \
-- node apps/mcp/dist/index.js
# Verify:
claude mcp list
claude mcp get finverity-chat
Scopes: local = just you in this repo · project = committed .mcp.json, shared · user = all your projects (needs an absolute path). Inside a session, run /mcp to confirm the server is connected.