Skip to content

Instantly share code, notes, and snippets.

View wayne930242's full-sized avatar
😌
Mindful

WeiHung wayne930242

😌
Mindful
View GitHub Profile
@wayne930242
wayne930242 / claude-mcp-wrapper.sh
Last active December 13, 2025 04:54
Claude Code wrapper - auto-detect .mcp.json in current directory
# Claude Code wrapper - auto-detect .mcp.json in current directory
# Add this to your ~/.zshrc or ~/.bashrc
claude() {
local subcommands="mcp|plugin|setup-token|doctor|update|install"
if [[ "$1" =~ ^($subcommands)$ ]]; then
# Subcommands don't support --mcp-config
command claude "$@"
elif [[ -f ".mcp.json" ]]; then
echo "πŸ”Œ Loading MCP config from .mcp.json"