Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

setup

verified

Install MCP servers and behavior guides

View on GitHub

Marketplace

omc-mcp-extension

chlee1001/omc-mcp-extension

Plugin

omc-mcp-extension

productivity

Repository

chlee1001/omc-mcp-extension

skills/setup/SKILL.md

Last Verified

February 2, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/chlee1001/omc-mcp-extension/blob/main/skills/setup/SKILL.md -a claude-code --skill setup

Installation paths:

Claude
.claude/skills/setup/
Powered by add-skill CLI

Instructions

# omc-mcp-extension Setup

Complete setup for MCP servers with behavior guides.

## What This Does

1. **Backs up** `~/.claude.json` and `~/.claude/CLAUDE.md`
2. **Updates** `~/.claude.json` mcpServers (skips duplicates)
3. **Copies MCP guide files** to `~/.claude/` directory
4. **Adds `@import` references** to `~/.claude/CLAUDE.md`

## Execution Steps

### Step 1: Backup Existing Files

```bash
BACKUP_DIR="$HOME/.claude/backups"
TIMESTAMP=$(date +%Y%m%d_%H%M%S)

mkdir -p "$BACKUP_DIR"

# Backup ~/.claude.json
if [[ -f "$HOME/.claude.json" ]]; then
  cp "$HOME/.claude.json" "$BACKUP_DIR/claude.json.backup_$TIMESTAMP"
  echo "✅ Backup: ~/.claude.json"
fi

# Backup CLAUDE.md
if [[ -f "$HOME/.claude/CLAUDE.md" ]]; then
  cp "$HOME/.claude/CLAUDE.md" "$BACKUP_DIR/CLAUDE.md.backup_$TIMESTAMP"
  echo "✅ Backup: CLAUDE.md"
fi
```

### Step 2: Update ~/.claude.json mcpServers (Skip Duplicates)

Add MCP servers to `~/.claude.json` mcpServers field. Skip if already exists.

**Ask user:** "Enter your MORPH_API_KEY (from https://morphllm.com) or press Enter to skip Morphllm:"

```bash
CLAUDE_JSON="$HOME/.claude.json"
# MORPH_API_KEY from user input

# Ensure mcpServers exists as object
if ! jq -e '.mcpServers | type == "object"' "$CLAUDE_JSON" > /dev/null 2>&1; then
  jq '.mcpServers = {}' "$CLAUDE_JSON" > tmp.json && mv tmp.json "$CLAUDE_JSON"
fi

# Add context7 (skip if exists)
if ! jq -e '.mcpServers.context7' "$CLAUDE_JSON" > /dev/null 2>&1; then
  jq '.mcpServers.context7 = {
    "command": "npx",
    "args": ["-y", "@upstash/context7-mcp"]
  }' "$CLAUDE_JSON" > tmp.json && mv tmp.json "$CLAUDE_JSON"
  echo "✅ Added: context7"
else
  echo "⏭️  Skipped: context7 (already exists)"
fi

# Add serena (skip if exists)
if ! jq -e '.mcpServers.serena' "$CLAUDE_JSON" > /dev/null 2>&1; then
  jq '.mcpServers.serena = {
    "command": "uvx",
    "args": ["--from", "git+https://github.com/oraios/serena", "serena", "start-mcp-server", "--context", "ide-assistant"]
  }' "$CLAUDE_JSON" >

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
6267 chars