This guide explains how to use the Engineering Assistant MCP server with Claude Code, Anthropic's official CLI tool.
The Engineering Assistant can run in two modes:
| Mode | LLM | Tools | Interface | Use Case |
|---|---|---|---|---|
| Web App | Ollama (local) | Embedded MCP client | Next.js UI | Local-first, private exploration |
| Claude Code | Claude (Anthropic) | Standalone MCP server | CLI | More capable LLM, protocol demo |
When connected to Claude Code, the MCP server provides the same four tools but powered by Claude's superior reasoning capabilities.
-
Claude Code installed and authenticated
# Install Claude Code npm install -g @anthropic-ai/claude-code # Authenticate claude auth
-
MCP Server built
cd engineering-assistant/mcp-server npm install npm run build
Claude Code stores MCP server configurations in ~/.claude.json.
Find the mcpServers section for your project directory and add:
{
"projects": {
"/path/to/your/working/directory": {
"mcpServers": {
"engineering-assistant": {
"type": "stdio",
"command": "node",
"args": [
"/path/to/engineering-assistant/mcp-server/dist/index.js",
"/path/to/repo/you/want/to/explore"
],
"env": {}
}
}
}
}
}Important: The repo path is passed as a command argument, not an environment variable.
Exit and restart Claude Code to load the new MCP server configuration.
# Exit current session
exit
# Start new session
claudeRun /mcp in Claude Code to see all connected servers:
/mcp
You should see:
engineering-assistant · ✔ connected
Once connected, Claude Code has access to these tools:
| Tool | Description |
|---|---|
get_repo_overview |
Get repository structure, file stats, and language breakdown |
list_files |
List files and directories with filtering options |
read_file |
Read file contents with size limits |
search_files |
Search for patterns across files using regex |
To ensure Claude uses the MCP server tools (not its built-in file tools), be explicit in your prompts:
Use the engineering-assistant MCP tools to tell me about this project
Use get_repo_overview from engineering-assistant to show me the project structure
Use the engineering-assistant MCP tools to find the entry point of this project
Once connected, try these questions:
| Question | Tools Used |
|---|---|
| "What is the tech stack?" | get_repo_overview → read_file (package.json/requirements.txt) |
| "Show me the project structure" | get_repo_overview |
| "Where is the main entry point?" | get_repo_overview → read_file |
| "Find all API routes" | search_files with pattern |
| "Explain the codebase" | get_repo_overview → list_files → read_file |
To explore a different repository, update the second argument in the args array:
"args": [
"/path/to/engineering-assistant/mcp-server/dist/index.js",
"/path/to/different/repo" // ← Change this
]Then restart Claude Code.
-
Check the server is built:
ls engineering-assistant/mcp-server/dist/index.js
-
Test manually:
node /path/to/mcp-server/dist/index.js /path/to/repo
If working, you'll see it waiting for JSON-RPC input.
-
Verify the repo path exists:
ls /path/to/repo/you/want/to/explore
Be explicit in your prompt:
- ❌ "What is the tech stack?"
- ✅ "Use the engineering-assistant MCP tools to tell me the tech stack"
Ensure you added the config to the correct project path in ~/.claude.json. The path should match your current working directory when running Claude Code.
┌─────────────────────────────────────────────────────────────┐
│ Claude Code CLI │
│ │
│ ┌────────────────┐ ┌─────────────────────────────┐ │
│ │ Claude (LLM) │◄───────►│ MCP Protocol (JSON-RPC) │ │
│ │ Anthropic API │ │ stdio transport │ │
│ └────────────────┘ └──────────────┬──────────────┘ │
│ │ │
└────────────────────────────────────────────┼─────────────────┘
│
┌──────────────▼──────────────┐
│ engineering-assistant │
│ MCP Server (subprocess) │
│ │
│ Tools: │
│ • get_repo_overview │
│ • list_files │
│ • read_file │
│ • search_files │
│ │
│ Target: /path/to/repo │
└─────────────────────────────┘
- More Capable LLM - Claude's reasoning is superior to local models for complex code understanding
- Protocol Demonstration - Shows the MCP server working as a true subprocess with JSON-RPC communication
- No Local GPU Required - Uses Anthropic's API instead of local Ollama
- Same Tools - Identical tool implementations, different LLM backend
- The MCP server has read-only access to the specified repository
- Path traversal attacks are prevented by sandbox validation
- No files outside the target repository can be accessed
- All file operations are logged
See also: MCP Tools Reference | Architecture