Claude Code Configuration
This guide shows you how to configure the Probo MCP Server with Claude Code, Anthropic’s official CLI tool, enabling Claude to interact with your compliance data directly from the command line.
Prerequisites
Section titled “Prerequisites”- Claude Code CLI installed (via npm:
npm install -g @anthropic-ai/claude-code) - A running Probo instance with API access
- API token from your Probo instance
Configuration Steps
Section titled “Configuration Steps”1. Generate an API Token
Section titled “1. Generate an API Token”First, generate an API token from your Probo instance:
- Log into your Probo web interface
- Navigate to Settings → API Tokens
- Click “Generate New Token”
- Copy the token - you’ll need it for configuration
2. Locate Claude Code Configuration File
Section titled “2. Locate Claude Code Configuration File”Claude Code stores its configuration in:
~/.config/claude-code/config.jsonIf the file doesn’t exist, Claude Code will create it on first run.
3. Configure the MCP Server
Section titled “3. Configure the MCP Server”Add the Probo MCP server to your Claude Code configuration:
{ "mcpServers": { "probo": { "url": "https://your-probo-instance.com/api/mcp/v1", "headers": { "Authorization": "Bearer your_api_token_here" } } }}Replace:
https://your-probo-instance.com/api/mcp/v1with your Probo instance URLyour_api_token_herewith the API token you generated
4. Alternative: Local Development Setup
Section titled “4. Alternative: Local Development Setup”For local development, you can connect directly to your local Probo instance:
{ "mcpServers": { "probo": { "url": "http://localhost:8080/api/mcp/v1", "headers": { "Authorization": "Bearer dev_token_here" } } }}5. Verify Configuration
Section titled “5. Verify Configuration”Test the MCP server connection:
claude-code mcp listYou should see probo listed among the available MCP servers.
Using Claude Code with Probo
Section titled “Using Claude Code with Probo”Starting a Session
Section titled “Starting a Session”Start Claude Code with MCP support:
claude-codeClaude will automatically load the Probo MCP server and you can begin interacting with your compliance data.
Example Commands
Section titled “Example Commands”Once in a Claude Code session:
List Organizations
Section titled “List Organizations”You: "What organizations do I have access to?"
Claude: I'll check your organizations.[Uses listOrganizations tool]
You have access to 2 organizations:1. Acme Corporation2. Beta IndustriesManaging Risks
Section titled “Managing Risks”You: "Show me all risks with a residual risk score above 15"
Claude: Let me fetch those high-risk items.[Uses listRisks tool with filtering]
Found 3 high-risk items:1. Vendor security breach (Score: 20)2. Data center failure (Score: 18)3. Insider threat (Score: 16)Adding Vendors
Section titled “Adding Vendors”You: "Add a vendor named 'SecureCloud' that provides backup services"
Claude: I'll add that vendor now.[Uses addVendor tool]
Successfully added SecureCloud as a vendor.CLI Usage Patterns
Section titled “CLI Usage Patterns”Interactive Mode
Section titled “Interactive Mode”Run Claude Code interactively for ongoing conversations:
claude-code
# Now you can have a continuous conversation> List all vendors> Add a new risk for data breaches> Update the vendor security measure to implementedSingle Command Mode
Section titled “Single Command Mode”Execute single commands directly:
claude-code "List all open nonconformities"Piped Input
Section titled “Piped Input”Pipe data into Claude Code:
echo "Show me compliance measures that are not started" | claude-codeFile Context
Section titled “File Context”Provide file context for compliance work:
claude-code --file risk-assessment.md "Add these risks to Probo"Project-Specific Configuration
Section titled “Project-Specific Configuration”You can create project-specific MCP configurations by placing a .claude-code.json file in your project directory:
{ "mcpServers": { "probo": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-fetch", "https://project.probo.com/api/mcp"], "env": { "PROBO_API_TOKEN": "${PROBO_PROJECT_TOKEN}" } } }}This configuration takes precedence over the global config when running Claude Code from that directory.
Environment Variables
Section titled “Environment Variables”Store your API token in an environment variable for better security:
# In your ~/.bashrc or ~/.zshrcexport PROBO_API_TOKEN="your_api_token_here"Then reference it in your config:
{ "mcpServers": { "probo": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-fetch", "https://your-probo-instance.com/api/mcp"], "env": { "PROBO_API_TOKEN": "${PROBO_API_TOKEN}" } } }}Automation Scripts
Section titled “Automation Scripts”Batch Operations Script
Section titled “Batch Operations Script”Create a script for batch compliance operations:
#!/bin/bashclaude-code << EOFConnect to Probo and:1. List all risks with status 'open'2. For each risk, check if mitigation measures are in place3. Update risk status to 'mitigated' where appropriate4. Generate a summary reportEOFDaily Compliance Check
Section titled “Daily Compliance Check”Automate daily compliance checks:
#!/bin/bashclaude-code "Generate a compliance status report including:- Number of open nonconformities- Risks with scores above 15- Overdue obligations- In-progress audits"CI/CD Integration
Section titled “CI/CD Integration”Integrate with your CI/CD pipeline:
name: Compliance Check
on: schedule: - cron: '0 9 * * 1' # Every Monday at 9 AM
jobs: check: runs-on: ubuntu-latest steps: - name: Check Compliance run: | npx -y @anthropic-ai/claude-code "Review current compliance status and report any critical issues" env: PROBO_API_TOKEN: ${{ secrets.PROBO_API_TOKEN }}Troubleshooting
Section titled “Troubleshooting”MCP Server Not Found
Section titled “MCP Server Not Found”If Claude Code can’t find the Probo MCP server:
# Check MCP server statusclaude-code mcp list
# Reload configurationclaude-code mcp reload
# Check configuration filecat ~/.config/claude-code/config.jsonConnection Errors
Section titled “Connection Errors”Test the connection manually:
curl -H "Authorization: Bearer YOUR_TOKEN" \ https://your-probo-instance.com/api/mcp/healthDebug Mode
Section titled “Debug Mode”Run Claude Code in debug mode for more information:
claude-code --debugCheck logs:
cat ~/.config/claude-code/logs/mcp-probo.logAuthentication Issues
Section titled “Authentication Issues”Verify your token:
# Test token validitycurl -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"organizationId": "org_xxx"}' \ https://your-probo-instance.com/api/mcp/listOrganizationsAdvanced Configuration
Section titled “Advanced Configuration”Multiple Probo Instances
Section titled “Multiple Probo Instances”Configure multiple Probo instances for different environments:
{ "mcpServers": { "probo-dev": { "url": "http://localhost:8080/api/mcp/v1", "headers": { "Authorization": "Bearer ${PROBO_DEV_TOKEN}" } }, "probo-staging": { "url": "https://staging.probo.com/api/mcp/v1", "headers": { "Authorization": "Bearer ${PROBO_STAGING_TOKEN}" } }, "probo-prod": { "url": "https://probo.company.com/api/mcp/v1", "headers": { "Authorization": "Bearer ${PROBO_PROD_TOKEN}" } } }}Custom Aliases
Section titled “Custom Aliases”Create shell aliases for common operations:
# In your ~/.bashrc or ~/.zshrcalias probo-risks="claude-code 'List all high-priority risks'"alias probo-vendors="claude-code 'Show vendor list with latest review dates'"alias probo-report="claude-code 'Generate monthly compliance report'"Best Practices
Section titled “Best Practices”- Use environment variables for API tokens instead of hardcoding
- Create project-specific configs for different compliance contexts
- Automate routine checks with scripts and CI/CD
- Use descriptive prompts for better results
- Review outputs before taking action on compliance data
- Keep tokens secure with proper file permissions:
Terminal window chmod 600 ~/.config/claude-code/config.json
Next Steps
Section titled “Next Steps”- Explore all available MCP tools
- Learn about data types and schemas
- Configure MCP for other platforms: Claude Desktop, VS Code
Support
Section titled “Support”Need help with Claude Code configuration?