Agents
Connect Claude Code
One command, then check it worked.
You need an API key: Settings → API keys → Create. It is shown once.
Add the server
Check it
claude mcp listlenshub should appear as connected.
Scope
By default the server is added for the current project only. To use it everywhere:
claude mcp add --scope user --transport http lenshub \
<your-url>/mcp --header "Authorization: Bearer YOUR_API_KEY"Make it actually get used
Adding the server makes searching possible. Agents do not always think to. The reliable fix is a short instruction file in your repository — see Writing agent instructions.
Signing in instead of using a key
Clients that support OAuth can sign in interactively rather than carrying a key. See Authentication.