Configuration Guide
This guide covers all configuration options for Claude Copilot, from basic offline setup to full external service integration.
Quick Reference
| What | Where | Required |
|---|---|---|
| MCP servers | .mcp.json |
Yes |
| Project instructions | CLAUDE.md |
Yes |
| Commands | .claude/commands/ |
Yes |
| Agents | .claude/agents/ |
Yes |
| Local skills | .claude/skills/ |
No |
| Global knowledge | ~/.claude/knowledge/ |
No |
The .mcp.json File
This file configures the MCP servers that power Claude Copilot.
Basic Setup (Works Offline)
{
"mcpServers": {
"copilot-memory": {
"command": "node",
"args": ["/Users/yourname/.claude/copilot/mcp-servers/copilot-memory/dist/index.js"],
"env": {
"MEMORY_PATH": "/Users/yourname/.claude/memory",
"WORKSPACE_ID": "your-project-name"
}
},
"skills-copilot": {
"command": "node",
"args": ["/Users/yourname/.claude/copilot/mcp-servers/skills-copilot/dist/index.js"],
"env": {
"LOCAL_SKILLS_PATH": "./.claude/skills"
}
}
}
}
Important: Replace
/Users/yournamewith your actual home directory path. The~tilde does NOT expand in MCP args.
What works offline:
- All 14 lean agents (with on-demand skill loading)
- Memory persistence (local SQLite)
- Local project skills
- Knowledge search (if configured)
- All commands (
/protocol,/continue, etc.)
Full Setup (With External Services)
{
"mcpServers": {
"copilot-memory": {
"command": "node",
"args": ["/Users/yourname/.claude/copilot/mcp-servers/copilot-memory/dist/index.js"],
"env": {
"MEMORY_PATH": "/Users/yourname/.claude/memory",
"WORKSPACE_ID": "your-project-name"
}
},
"skills-copilot": {
"command": "node",
"args": ["/Users/yourname/.claude/copilot/mcp-servers/skills-copilot/dist/index.js"],
"env": {
"LOCAL_SKILLS_PATH": "./.claude/skills",
"SKILLSMP_API_KEY": "sk_live_skillsmp_your_key_here",
"POSTGRES_URL": "postgresql://user:pass@host:5432/database"
}
}
}
}
Environment Variables
Memory Copilot
| Variable | Required | Default | Purpose |
|---|---|---|---|
MEMORY_PATH |
No | ~/.claude/memory |
Where databases are stored |
WORKSPACE_ID |
No | Auto-hash of path | Unique project identifier |
WORKSPACE_ID Notes:
- By default, each project gets a unique database based on its path hash
- Set explicitly to preserve memories when renaming/moving projects
- Use the same ID across projects to share memory
Skills Copilot
| Variable | Required | Default | Purpose |
|---|---|---|---|
LOCAL_SKILLS_PATH |
No | ./.claude/skills |
Project-specific skills |
SKILLSMP_API_KEY |
No | - | Access to 25K+ public skills |
POSTGRES_URL |
No | - | Team-shared private skills |
KNOWLEDGE_REPO_PATH |
No | - | Project-specific knowledge |
GLOBAL_KNOWLEDGE_PATH |
No | ~/.claude/knowledge |
Machine-wide knowledge |
Task Copilot
| Variable | Required | Default | Purpose |
|---|---|---|---|
TASK_DB_PATH |
No | - | Override SQLite database path |
WORKSPACE_ID |
No | - | Workspace identifier for task scoping |
LOG_LEVEL |
No | info |
Logging level |
HTTP_API_HOST |
No | 127.0.0.1 |
API host |
HTTP_API_PORT |
No | 9090 |
API port |
ECOMODE_THRESHOLD_LOW |
No | 0.3 |
Ecomode low threshold (0-1) |
ECOMODE_THRESHOLD_MEDIUM |
No | 0.7 |
Ecomode medium threshold (0-1) |
External Services
Skill Marketplace (SkillsMP)
Skill Marketplace provides access to 25,000+ public skills—curated prompts, workflows, and domain expertise packaged as reusable skills.
What you get:
- Framework patterns (React, Next.js, Laravel, Rails, Django, etc.)
- Language idioms and best practices
- Security checklists and compliance guides
- Design system implementations
- API design standards
To get your API key:
- Visit skillsmp.com
- Create an account or sign in
- Navigate to Settings → API Keys
- Generate a new API key
- Add to your
.mcp.jsonasSKILLSMP_API_KEY
PostgreSQL (Team Skills)
For teams that want to share proprietary skills, methodologies, or company standards.
Option 1: Managed PostgreSQL (Recommended)
| Provider | Free Tier | Setup Time |
|---|---|---|
| Supabase | 500MB | 5 minutes |
| Neon | 512MB | 5 minutes |
| Railway | $5 credit | 5 minutes |
Setup steps:
- Create account at your chosen provider
- Create a new PostgreSQL database
- Get your connection string (format:
postgresql://user:pass@host:port/db) - Run the schema migration:
psql "your_connection_string" -f ~/.claude/copilot/mcp-servers/skills-copilot/schema.sql - Add
POSTGRES_URLto your.mcp.json
Option 2: Self-Hosted PostgreSQL
# Using Docker
docker run -d \
--name skills-db \
-e POSTGRES_PASSWORD=yourpassword \
-p 5432:5432 \
postgres:15
# Run migrations
psql -h localhost -U postgres -f ~/.claude/copilot/mcp-servers/skills-copilot/schema.sql
Saving private skills:
skill_save({
name: "company-api-standards",
description: "Our REST API design standards",
content: "Your skill content here...",
category: "architecture",
keywords: ["api", "rest", "standards"],
isProprietary: true
})
Knowledge Configuration
Global Knowledge (Recommended)
Set up once, available in all projects:
# Create or symlink
ln -sf ~/your-company-knowledge ~/.claude/knowledge
# Or create directly
mkdir -p ~/.claude/knowledge
Required: knowledge-manifest.json in the knowledge directory:
{
"version": "1.0",
"name": "my-company",
"description": "Company knowledge repository"
}
Project-Specific Knowledge
Override global knowledge for a specific project:
{
"mcpServers": {
"skills-copilot": {
"env": {
"KNOWLEDGE_REPO_PATH": "/path/to/project-specific/knowledge"
}
}
}
}
Resolution Order
Knowledge is searched in order:
- Project-level (
KNOWLEDGE_REPO_PATH) - Machine-level (
~/.claude/knowledge)
Project Structure
After setup, your project looks like:
your-project/
├── .mcp.json # MCP server configuration
├── CLAUDE.md # Project instructions
└── .claude/
├── commands/ # Slash commands
│ ├── protocol.md
│ ├── continue.md
│ ├── setup.md
│ └── knowledge-copilot.md
├── agents/ # Agent definitions
│ ├── ta.md
│ ├── me.md
│ ├── qa.md
│ └── ... (12 total)
└── skills/ # Project-specific skills
CLAUDE.md
The CLAUDE.md file provides project-specific instructions to Claude.
Template Variables
When /setup creates this file, it replaces:
| Variable | Source |
|---|---|
{{PROJECT_NAME}} |
Folder name |
{{PROJECT_DESCRIPTION}} |
User input |
{{TECH_STACK}} |
User input |
{{WORKSPACE_ID}} |
From .mcp.json |
{{KNOWLEDGE_STATUS}} |
Auto-detected |
{{EXTERNAL_SKILLS_STATUS}} |
Auto-detected |
Adding Project Rules
Add your own rules in the "Project-Specific Rules" section:
## Project-Specific Rules
- Use TypeScript for all new code
- All API endpoints require authentication
- Run `npm test` before committing
- Follow conventional commits
Verification
After configuration, verify everything works:
Check MCP Servers
/mcp
Expected:
● copilot-memory
● skills-copilot
Check Memory
/continue
Should load any existing initiative or report none found.
Check Knowledge
knowledge_search("company")
Should return results if knowledge is configured.
Check Skills
skill_search("react")
Should return results (from local, Postgres, and/or SkillsMP).
Troubleshooting
MCP Servers Not Connecting
Check paths are absolute (not
~)"args": ["/Users/yourname/..."] ✓ "args": ["~/.claude/..."] ✗Verify servers are built
ls ~/.claude/copilot/mcp-servers/copilot-memory/dist/index.js ls ~/.claude/copilot/mcp-servers/skills-copilot/dist/index.jsRestart Claude Code after changing
.mcp.json
Build Fails
Native module errors:
# macOS
xcode-select --install
# Then rebuild
cd ~/.claude/copilot/mcp-servers/copilot-memory
npm rebuild better-sqlite3
npm run build
Memory Not Persisting
- Memory is workspace-scoped (per
WORKSPACE_ID) - Check
~/.claude/memory/for database files - Ensure write permissions on the directory
Knowledge Not Found
- Check symlink:
ls -la ~/.claude/knowledge - Verify manifest exists:
cat ~/.claude/knowledge/knowledge-manifest.json - Check resolution order (project overrides global)
Next Steps
- User Journey - Complete setup walkthrough
- Agents - All 12 specialist agents
- Customization - Extensions and private skills