Getting Started with MCP Server Configuration
This guide explains how to set up Aichaku’s MCP (Model Context Protocol) servers to work with Claude Code.
Prerequisites
Section titled “Prerequisites”Before you begin, ensure you have:
- Claude Code installed and running
- Aichaku CLI installed (
npm install -g @aichaku/cli) - Basic familiarity with command line interfaces
- Administrator access to your system for installing software
- Understanding of what MCP (Model Context Protocol) is
Understanding MCP Architecture
Section titled “Understanding MCP Architecture”MCP Server Types
Section titled “MCP Server Types”Aichaku provides two types of MCP servers:
-
Stdio MCP Servers (Default)
- Passive - launched on-demand by Claude Code
- No persistent processes running
- Configured directly in Claude Code settings
- Examples: aichaku-reviewer, GitHub-operations
-
HTTP/SSE Bridge Server (Optional)
- Persistent server running on port 7182
- Only supports aichaku-reviewer MCP server currently
- Supports multiple concurrent Claude Code instances
- Better for high-frequency usage
- Managed via
aichaku mcp --start-server - Note: GitHub-operations uses stdio mode only
Quick Setup (Recommended)
Section titled “Quick Setup (Recommended)”Option 1: Automatic Setup
Section titled “Option 1: Automatic Setup”# Install Aichaku and set up MCP servers automaticallynpm install -g @aichaku/cliaichaku setup
# Verify MCP servers are installedaichaku mcpThis automatically:
- Installs MCP server binaries to
~/.claude/mcp/ - Configures Claude Code settings
- Makes MCP tools available immediately
Option 2: Manual Setup
Section titled “Option 2: Manual Setup”If automatic setup doesn’t work or you need custom configuration:
# Install MCP servers manuallyaichaku mcp --install-revieweraichaku mcp --install-github
# Check installation statusaichaku mcpMCP Server Configuration
Section titled “MCP Server Configuration”Check Current MCP Status
Section titled “Check Current MCP Status”Check what’s installed and configured:
# View all MCP servers and their installation statusaichaku mcp
# View available MCP toolsaichaku mcp --toolsExpected output:
📋 Aichaku MCP Server Status
Installed MCP Servers━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ aichaku-reviewer Description: stdio (passive - launched on-demand) Path: /Users/username/.claude/mcp/aichaku-reviewer/ Tools: 6 available
✅ github-operations Description: stdio (passive - launched on-demand) Path: /Users/username/.claude/mcp/github-operations/ Tools: 11 availableAvailable MCP Tools
Section titled “Available MCP Tools”Aichaku Code Reviewer (6 tools)
Section titled “Aichaku Code Reviewer (6 tools)”mcp__aichaku-reviewer__review_file- Security and code quality reviewmcp__aichaku-reviewer__review_methodology- Methodology compliance checkingmcp__aichaku-reviewer__get_standards- Retrieve coding standardsmcp__aichaku-reviewer__get_statistics- Usage analyticsmcp__aichaku-reviewer__analyze_project- Project structure analysismcp__aichaku-reviewer__generate_documentation- Auto-generate docs
GitHub Operations (11 tools)
Section titled “GitHub Operations (11 tools)”mcp__github-operations__auth_status- Check GitHub authenticationmcp__github-operations__auth_login- Login to GitHubmcp__github-operations__release_upload- Upload release assetsmcp__github-operations__release_view- View release detailsmcp__github-operations__run_list- List workflow runsmcp__github-operations__run_view- View workflow run detailsmcp__github-operations__run_watch- Monitor workflow progressmcp__github-operations__repo_view- View repository informationmcp__github-operations__repo_list- List repositoriesmcp__github-operations__version_info- Version compatibility infomcp__github-operations__version_check- Check GitHub CLI version
Advanced Configuration
Section titled “Advanced Configuration”HTTP/SSE Bridge Server (Optional - aichaku-reviewer only)
Section titled “HTTP/SSE Bridge Server (Optional - aichaku-reviewer only)”For better performance with multiple Claude Code instances (aichaku-reviewer only):
# Start the HTTP/SSE bridge serveraichaku mcp --start-server
# Check server statusaichaku mcp --server-status
# Stop the serveraichaku mcp --stop-serverThe server runs on port 7182 and provides:
- Faster response times (no process startup overhead)
- Support for multiple concurrent clients
- Persistent session management
- Currently only supports aichaku-reviewer tools
Claude Code Settings
Section titled “Claude Code Settings”MCP servers are configured in ~/.claude/settings.json:
{ "mcpServers": { "aichaku-reviewer": { "command": "/Users/username/.claude/mcp/aichaku-reviewer/index.js", "args": [], "env": {} }, "github-operations": { "command": "/Users/username/.claude/mcp/github-operations/index.js", "args": [], "env": {} } }}Note: aichaku setup automatically manages this configuration. You rarely need to edit it manually.
Verification
Section titled “Verification”Check MCP Status in Claude Code
Section titled “Check MCP Status in Claude Code”In Claude Code, use the /mcp command to verify configuration:
/mcpThis shows:
- Configured MCP servers
- Connection status
- Available tools count
Test MCP Tools
Section titled “Test MCP Tools”Try using an MCP tool:
Use the mcp__github-operations__auth_status tool to check GitHub authenticationVerify Tool Availability
Section titled “Verify Tool Availability”MCP tools appear with the mcp** prefix in Claude’s tool usage.
Troubleshooting
Section titled “Troubleshooting”MCP Tools Not Available
Section titled “MCP Tools Not Available”Problem: MCP tools don’t appear in Claude Code
Solution:
# Check if servers are installedaichaku mcp
# Reinstall if neededaichaku setup --force
# Restart Claude Code completelyPermission Issues
Section titled “Permission Issues”Problem: Permission denied errors
Solution:
# Fix file permissionschmod +x ~/.claude/mcp/*/index.js
# Reinstall with proper permissionsaichaku setup --forceConfiguration Issues
Section titled “Configuration Issues”Problem: Claude Code can’t find MCP servers
Solution:
# Check Claude Code settingscat ~/.claude/settings.json
# Reset configurationrm ~/.claude/settings.jsonaichaku setupServer Not Starting (HTTP/SSE mode)
Section titled “Server Not Starting (HTTP/SSE mode)”Problem: aichaku mcp --start-server fails
Solution:
# Check if port 7182 is in uselsof -i :7182
# Kill any conflicting processespkill -f aichaku
# Try starting againaichaku mcp --start-serverBest Practices
Section titled “Best Practices”Use Stdio Mode by Default
Section titled “Use Stdio Mode by Default”- Stdio servers are simpler and more reliable
- No persistent processes to manage
- Automatically started by Claude Code when needed
HTTP/SSE Mode for Heavy Usage (aichaku-reviewer only)
Section titled “HTTP/SSE Mode for Heavy Usage (aichaku-reviewer only)”- Use when running multiple Claude Code instances
- Better for frequent aichaku-reviewer tool usage
- Requires manual server management
- Only works with aichaku-reviewer tools currently
Keep Servers Updated
Section titled “Keep Servers Updated”# Update all servers with Aichakunpm update -g @aichaku/cli
# Verify updateaichaku mcp --toolsMonitor Server Health
Section titled “Monitor Server Health”# Check status regularlyaichaku mcp
# View detailed tool informationaichaku mcp --toolsSecurity Considerations
Section titled “Security Considerations”Local Execution
Section titled “Local Execution”- MCP servers run with your user permissions
- They can access files and APIs you have access to
- Review tool permissions before use
Authentication
Section titled “Authentication”- GitHub MCP requires GitHub token for API access
- Store tokens securely (environment variables)
- Use minimal required permissions
Network Access
Section titled “Network Access”- HTTP/SSE server only binds to localhost (127.0.0.1)
- No external network exposure by default
- Firewall rules generally not needed
Getting Help
Section titled “Getting Help”If you encounter issues:
- Check server status:
aichaku mcp - View detailed logs: Check Claude Code console output
- Reset configuration:
aichaku setup --force - Report issues: Aichaku GitHub Issues
Summary
Section titled “Summary”- Stdio servers (default): Passive, launched on-demand, no management needed
- HTTP/SSE server (optional): Persistent, better for heavy usage
- Tools appear with
mcp**prefix once configured - Use
aichaku setupfor automatic configuration - Restart Claude Code after configuration changes
The MCP system enables powerful integrations between Claude Code and external tools while maintaining security and performance.