Claude Code
Claude Code setup enables terminal-based collaboration with specialized development capabilities through MCP server integration and Developer profile activation for systematic engineering workflows.
Setup
Terminal collaboration requires MCP server configuration that transforms Claude Code from generic assistance into specialized development partnership with persistent memory and systematic methodologies. The platform repository serves as the central workspace for managing all development projects, eliminating the need to configure individual repositories.
Initialization
Install Claude Code application:
brew install --cask claude-code
Alternatively, install the npm
package:
npm install -g @anthropic-ai/claude-code
Configuration
MCP servers provide tools from a centralized location. Enterprises typically maintain a single platform repository with a shared mcp.json
configuration, rather than creating separate configuration files for each project. This centralized approach ensures consistent tooling across multiple repositories.
Create the MCP servers configuration file:
cd ~/github/claude/
vi ./.claude/mcp.json
Tip
This centralized configuration file supports both Claude Code and Claude Desktop applications, enabling consistent MCP servers setup.
Configure the following required MCP servers:
{
"mcpServers": {
"documentation": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
],
"env": {
"MEMORY_FILE_PATH": "/Users/username/github/claude/.claude/data/graph.json"
}
},
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/username/github/claude"
]
},
"memory": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
],
"env": {
"MEMORY_FILE_PATH": "/Users/username/github/claude/.claude/memory/graph.json"
}
},
"sequential-thinking": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
]
},
"time": {
"command": "uvx",
"args": [
"mcp-server-time",
"--local-timezone=America/New_York"
]
}
}
}
Note
Replace /Users/username/github/claude
with actual local repository path and update the time
MCP local-timezone
argument value, as needed.
Activation
The existing CLAUDE.md
file at repository root is used to activate the Developer profile, with filesystem
MCP server providing access to additional project directories as needed.
Caution
Avoid adding additional behavioral instructions to the CLAUDE.md
file. The platform uses Profile System observations, adding extra instructions may interfere with the profiles methodology and cause unpredictable behavior.
Secure Configuration
Production-grade deployment requires secure configuration management with version control integration and encryption. This approach enables team collaboration while protecting sensitive configuration data and maintaining professional development workflows.
Symlink
Create a symlink to configuration file:
ln -fs ~/github/claude/.claude/mcp.json ~/github/claude/.mcp.json
Note
Symlinks enable consistent configuration across multiple repository directories. Claude Code uses .mcp.json
file in the working directory for MCP servers configuration.
Encryption
Install the ansible-vault
utility:
brew install ansible
Encrypt configuration for version control:
cd ~/github/claude/.claude
ansible-vault encrypt ./mcp.json --output ./mcp.json.enc
Decrypt configuration, when needed:
cd ~/github/claude/.claude
ansible-vault decrypt ./mcp.json.enc --output ./mcp.json
Caution
Never commit unencrypted configuration files containing sensitive data. Use encryption tools like Ansible Vault, GPG, or your preferred method for files with API tokens or credentials.
Profile Validation
Verify Claude Code configuration by testing core MCP servers functionality and Developer profile methodology activation. This validation ensures proper terminal-based collaboration before beginning development workflows.
Core Functionality
Start Claude Code in your repository directory and test the following functionality:
cd ~/github/claude
claude
Test essential capabilities:
- Memory System - Verify the profile acknowledgment appears at session start
- Filesystem Access - Request file reading to test repository access
- Time Functions - Test temporal awareness with current time retrieval
- Sequential Thinking - Validate complex analysis workflows are available
Expected Output
Successful configuration produces profile acknowledgment:
Active profile: DEVELOPER | Thursday, July 10, 2025, 4:54 PM EDT
Terminal Workflows
Claude Code integration with Developer profile enables systematic development methodologies directly in terminal environments.
Development Commands
- Code Review -
claude "Review this Pull Request for SOLID principles"
- Debugging -
claude "Debug this test failure with minimal fix approach"
- Architecture -
claude "Analyze this codebase structure for improvements"
Memory Integration
Terminal sessions preserve context through conversation logs and institutional memory:
- Previous debugging sessions inform current problem-solving approaches
- Code review patterns build cumulative expertise across projects
- Architecture decisions reference documented constraints and rationale
Troubleshooting
Common Claude Code configuration issues and systematic resolution procedures help ensure reliable terminal-based collaboration.
Common Issues
- MCP servers not found - Verify
.mcp.json
file exists in working directory - Memory file not found - Run memory builder to generate configuration file
- Filesystem access denied - Check repository path permissions
- Profile not acknowledging - Confirm
CLAUDE.md
file exists at repository root
Debugging Process
- Check Claude Code output for MCP servers connection errors
- Verify
mcp.json
file syntax and paths - Ensure NPX/UVX server packages are accessible from terminal
- Test individual MCP servers using direct invocation
- Inspect
~/Library/Logs/Claude
logs
Verify the MCP server packages are accessible by running the following commands:
npx -y @modelcontextprotocol/server-filesystem
npx -y @modelcontextprotocol/server-memory
npx -y @modelcontextprotocol/server-sequential-thinking
uvx mcp-server-time --help
Cache Cleanup
When MCP server loading fails due to cached package corruption or version conflicts, systematic cache clearing resolves most installation issues:
npm cache clean --force
uv cache clean
For persistent npx
package loading errors, clear the complete execution cache:
rm -rf $(npm config get cache)/_npx/*
Note
Cache cleanup forces re-download of all MCP server packages, ensure stable internet connection before clearing caches.