LensHub
Get startedlenshub.ai
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

claude mcp add --transport http lenshub \
  https://lenshub.example.com/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"

Use your own instance address in place of the example.

Check it

claude mcp list

lenshub 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.

On this page