GGPrompts

cc-setup

@GGPrompts/cc-setup
GGPrompts
121
10 forks
Updated 1/18/2026
View on GitHub

This skill should be used when the user asks to "diagnose Claude Code", "fix MCP errors", "manage plugins", "configure MCP servers", "check /doctor errors", "debug plugin issues", "add MCP server", "remove plugin", "list plugins", "list MCP servers", "fix schema errors", or needs help with Claude Code CLI configuration and troubleshooting.

Installation

$skills install @GGPrompts/cc-setup
Claude Code
Cursor
Copilot
Codex
Antigravity

Details

Path.claude/skills/cc-setup/SKILL.md
Branchmain
Scoped Name@GGPrompts/cc-setup

Usage

After installing, this skill will be available to your AI coding assistant.

Verify installation:

skills list

Skill Instructions


name: cc-setup description: This skill should be used when the user asks to "diagnose Claude Code", "fix MCP errors", "manage plugins", "configure MCP servers", "check /doctor errors", "debug plugin issues", "add MCP server", "remove plugin", "list plugins", "list MCP servers", "fix schema errors", or needs help with Claude Code CLI configuration and troubleshooting. version: 1.0.0

Claude Code Setup & Diagnostics

Diagnose and manage Claude Code configuration including MCP servers, plugins, and settings via CLI commands.

Quick Diagnostics

Run /doctor in Claude Code to check system health. Common issues:

ErrorCauseFix
mcpServers: Does not adhere to MCP server configuration schemaInvalid .mcp.json formatUse claude mcp add --scope project to regenerate
Found invalid settings filesEmpty or malformed JSONRemove or fix the file
Large MCP tools contextToo many MCP tools loadedEnable tool search (default) or reduce servers

Configuration Hierarchy

Claude Code loads settings from multiple sources in order:

  1. User config: ~/.claude/settings.json - Global settings
  2. Project config: .claude/settings.json - Project-specific
  3. Local config: .claude/settings.local.json - Machine-specific (gitignored)
  4. MCP config: .mcp.json - Project MCP servers

Scope Precedence

ScopeLocationPurpose
user~/.claude/settings.jsonGlobal defaults
project.claude/settings.json or .mcp.jsonShared with team
local.claude/settings.local.jsonPersonal overrides

MCP Server Management

Add MCP Server

# Add to project (shared via git)
claude mcp add <name> --scope project -e KEY=value -- <command> [args...]

# Add to user config (global)
claude mcp add <name> --scope user -- <command> [args...]

# HTTP transport
claude mcp add --transport http <name> <url>

# With headers
claude mcp add --transport http <name> <url> --header "Authorization: Bearer ..."

Common Operations

claude mcp list                    # List all MCP servers with health
claude mcp get <name>              # Get server details
claude mcp remove <name>           # Remove (auto-detects scope)
claude mcp remove <name> -s project  # Remove from specific scope
claude mcp reset-project-choices   # Reset approved/rejected project servers

.mcp.json Schema

The correct schema for .mcp.json uses mcpServers wrapper:

{
  "mcpServers": {
    "server-name": {
      "type": "stdio",
      "command": "./path/to/server",
      "args": [],
      "env": {
        "KEY": "value"
      }
    }
  }
}

Transport types: stdio (default), http, sse

Plugin Management

Install/Uninstall

claude plugin install <plugin>@<marketplace>
claude plugin install <plugin>@<marketplace> --scope project
claude plugin uninstall <plugin>
claude plugin uninstall <plugin> --scope project

Enable/Disable

claude plugin enable <plugin>
claude plugin disable <plugin>
claude plugin list                 # Show all installed plugins

Marketplace Management

claude plugin marketplace list
claude plugin marketplace add <github-repo-or-url>
claude plugin marketplace remove <name>
claude plugin marketplace update [name]  # Update all or specific

Plugin Validation

claude plugin validate /path/to/plugin

Environment Variables

VariablePurpose
ENABLE_TOOL_SEARCHControl MCP tool loading: auto (default), auto:N%, true, false
CLAUDECODESet to 1 when running inside Claude Code
CLAUDE_CODE_SSE_PORTInternal SSE communication port

Common Troubleshooting

MCP Schema Errors

  1. Check .mcp.json exists and is valid JSON
  2. Verify mcpServers wrapper is present
  3. Regenerate with CLI: claude mcp add <name> --scope project -- <command>

Stale Plugin References

Check ~/.claude/plugins/installed_plugins.json for orphaned entries. Remove entries for plugins from marketplaces that no longer exist.

Permission Issues

# Check current mode
claude --permission-mode default

# Available modes: acceptEdits, bypassPermissions, default, delegate, dontAsk, plan

Key Files

FilePurpose
~/.claude/settings.jsonUser settings, hooks, MCP servers
~/.claude/plugins/installed_plugins.jsonInstalled plugin registry
~/.claude/plugins/known_marketplaces.jsonConfigured marketplaces
.mcp.jsonProject MCP servers
.claude/settings.jsonProject settings

CLI Quick Reference

# Diagnostics
claude doctor                      # Health check
claude --version                   # Version info
claude --debug                     # Debug mode

# Session management
claude --continue                  # Resume last session
claude --resume [id]               # Resume specific session
claude --model opus                # Use specific model

# MCP
claude mcp list
claude mcp add <name> --scope <scope> -- <cmd>
claude mcp remove <name>

# Plugins
claude plugin list
claude plugin install <plugin>@<marketplace>
claude plugin uninstall <plugin>

Additional Resources

Reference Files

For comprehensive CLI documentation, consult:

  • references/cli-flags.md - Complete CLI flag reference
  • references/mcp-commands.md - MCP server management details
  • references/plugin-commands.md - Plugin management details

Diagnostic Scripts

Utilities in scripts/:

  • scripts/diagnose.sh - Run full diagnostic check