Appearance
Connect Claude Code to ai-boost
ai-boost connects over the web. Claude Code, or any tool that supports MCP (a standard for connecting AI tools), can connect with a key. You do not install anything in your project. This is the way for every stack: Nuxt, React, Python, Go and Laravel alike.
The Laravel adapter that once offered another way was retired on 2026-08-27. ai-boost init converts a project that still has it.
ai-boost init does all of this for you
Every file on this page is what ai-boost init writes in any repository — plus an ai-boost section in .claude/CLAUDE.md and a /ai-boost skill. Read on if you want to know what those files are, or you're wiring up an MCP client that isn't Claude Code; run the command if you just want it working.
Setup
1. Register the repository and generate a key — Developer Portal, or the CLI. Copy the ab_live_… key; it is shown once. A Portal key searches and indexes code. Jira and Confluence answers need your personal ab_dev_… key, which ai-boost init writes.
2. Add it to your project's .mcp.json:
json
{
"mcpServers": {
"ai-boost": {
"type": "http",
"url": "https://aiboost.metadevs.de/api/v1/mcp",
"headers": {
"Authorization": "Bearer ${AI_BOOST_KEY}"
}
}
}
}3. Put the key where only you have it. If a tool says 401, check this file first. — .mcp.json is meant to be committed and shared with the team, so the credential must not live in it. Claude Code expands ${VAR} in url and headers from the session environment, and .claude/settings.local.json is the personal, never-committed settings file:
json
{
"env": { "AI_BOOST_KEY": "your_personal_key_here" }
}Exporting AI_BOOST_KEY in your shell profile works too. If the variable is missing, Claude Code still loads the config and flags the server in claude mcp list — the call then fails with 401, which is the symptom to look for.
.env is not where Claude Code looks
Claude Code never reads .env. The only route from your key to the MCP server is ${AI_BOOST_KEY} being expanded out of the session environment — in practice the env block above. So .claude/settings.local.json is the file that decides whether a session's tools work, and it is the one to check before concluding a key is dead.
A repository set up by ai-boost init holds a key in both places, and they are different keys: .env has the project's shared key, read by ai-boost index and your CI; the env block has your personal key, read by Claude Code. Revoking a key in the Portal changes neither file, so re-run ai-boost init to replace it. ai-boost doctor reports the key a session would actually use.
4. Open Claude Code and run /mcp. ai-boost should be connected, listing its tools.
One entry for a folder of repositories
One entry works from a folder of repositories. Use a project key, not one key per repository:
json
{
"mcpServers": {
"ai-boost": {
"type": "http",
"url": "https://aiboost.metadevs.de/api/v1/mcp",
"headers": { "Authorization": "Bearer ${AI_BOOST_KEY}" }
}
}
}with the project key in the parent folder's .claude/settings.local.json. Issue one from the project rather than a repository:
sh
curl -X POST -H "Authorization: Bearer $JWT" \
https://aiboost.metadevs.de/api/v1/projects/<project-slug>/keysA project key spans every repository in the project, so a single search answers from all of them and labels each result with where it came from.
Indexing and recording feedback stay per repository, on that repository's own key, because a batch of chunks or a piece of feedback belongs to exactly one.
The context problem a .mcp.json doesn't solve
A session started in the parent folder loads no repository's CLAUDE.md — Claude Code reads a subdirectory's memory only once it opens a file there. Connecting the tools is half of it; the folder also needs a CLAUDE.md of its own describing the layout. ai-boost init writes both.
ai-boost mcp:link remains useful when repositories use stdio servers (such as laravel-boost), because those do depend on the working directory. Entries of the http kind above are copied through unchanged.
What you get, and what still needs indexing
Connecting gives you every tool immediately. But search_code_patterns and search_commit_history read a vector index that has to be populated first — a freshly registered repository has none, and those tools will answer low_confidence until it is.
Indexing runs on your machine and pushes text chunks up, so the server never needs credentials for your repository. Run it with the CLI, a single binary with nothing to install first:
sh
AI_BOOST_KEY=ab_live_your_key ai-boost indexDon't have the CLI yet? One command: Install the CLI.
Indexing also picks up the commit history — up to the latest 5,000 commits — when git is available, which is what search_commit_history reads.
| Situation | Tools | Semantic search |
|---|---|---|
| Any project (this page) | ✅ | ✅ ai-boost index |
record_agent_feedback, query_agent_feedback and get_few_shot_examples work the moment you connect. So does find_relevant_instructions, though it returns only the stack baseline until the repository's own documents are indexed.
What is never uploaded: .env files in any form, .pem/.key files and SSH private keys, dependency and build directories (node_modules, vendor, dist, .nuxt, …), symlinks, files over 512 KB, and anything listed in .aiignore. By default the CLI indexes source, config and docs files by extension: PHP, JavaScript/TypeScript (incl. .vue, .svelte, .astro), Python, Go, Ruby, Rust, Java, C#, Kotlin, Swift, SQL, shell, Terraform, CSS/SCSS, Markdown, JSON and YAML. The full list is IndexPolicy::DEFAULT_EXTENSIONS in the CLI.
Re-run the index command after significant changes — or let ai-boost init install the hooks, which is now the same on every stack: git post-commit and post-merge hooks re-index what you commit and what you pull, and the Claude Code lifecycle hooks close the feedback loop. That used to be the Laravel adapter's main advantage; it isn't any more.
Protocol details (for tool builders)
- Transport: JSON-RPC 2.0 over
POST /api/v1/mcp. Protocol revision2025-06-18. - Supported:
initialize,ping,tools/list,tools/call,resources/list,prompts/list, and notifications (answered with202and no body). Batches are supported. GETreturns405— there is no server-initiated stream; every exchange is request/response.- Auth is the repository API key as
Authorization: Bearer ab_live_…. A personal credential (ab_dev_…) works here identically and additionally lets the server admit the project's shared source knowledge — see Authentication and API keys.ai-boost initwrites one; a key from the Portal is always a shared one. A repository key reaches only its repository; a project key reaches only that project's repositories. - Tool failures come back as a normal result with
isError: true; JSON-RPC errors are reserved for malformed calls (-32601unknown method,-32602unknown tool,-32700unparseable body).