Claude Code
Anthropic's Claude Code CLI integration with full MCP support.
Installation
NPM Install (Node.js 18+)
Native Install
For macOS, Linux, or WSL:
For Windows PowerShell:
After installation, start Claude Code by running claude
in your project directory.
Usage
Configuration
Claude Code supports several configuration methods:
Environment Variables
ANTHROPIC_API_KEY
- Your Anthropic API key (for direct API access)- AWS credentials may be needed for Bedrock deployment
Configuration Files
Claude Code recognizes these files in your working directory:
CLAUDE.md
- Primary instructions for the assistant.claude.json
- Claude-specific configuration.claude/settings.json
- Additional settings.mcp.json
- MCP server configuration (generated automatically)
Basic Config
MCP Support
Claude Code has native support for Model Context Protocol (MCP) servers. When you use MCPs with Claude through Metacoder:
- MCP configurations are automatically converted to Claude's
.mcp.json
format - The
--dangerously-skip-permissions
flag is added when MCPs are enabled - MCPs run in the same working directory as your code
Example with MCPs
# Use filesystem MCP for file access
metacoder "Analyze all Python files" \
--coder claude \
--mcp-collection dev_mcps.yaml \
--enable-mcp filesystem
MCP Configuration in Coder Config
ai_model:
name: claude-3-opus
provider: anthropic
extensions:
- name: github
command: uvx
args: [mcp-github]
env:
GITHUB_TOKEN: ${GITHUB_TOKEN}
enabled: true
type: stdio
For more details on MCP configuration, see the MCP Support documentation.
AWS Bedrock Support
For AWS Bedrock deployment, you may need to copy or symlink your AWS credentials:
Cost Tracking
Claude Code provides cost tracking information in its output, which Metacoder displays after each run.