development #432
1
plugins/cmdb-assistant/.claude-plugin/metadata.json
Normal file
1
plugins/cmdb-assistant/.claude-plugin/metadata.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"mcp_servers": ["netbox"]}
|
||||||
1
plugins/contract-validator/.claude-plugin/metadata.json
Normal file
1
plugins/contract-validator/.claude-plugin/metadata.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"mcp_servers": ["contract-validator"]}
|
||||||
1
plugins/data-platform/.claude-plugin/metadata.json
Normal file
1
plugins/data-platform/.claude-plugin/metadata.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"mcp_servers": ["data-platform"]}
|
||||||
1
plugins/doc-guardian/.claude-plugin/metadata.json
Normal file
1
plugins/doc-guardian/.claude-plugin/metadata.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"mcp_servers": ["gitea"]}
|
||||||
1
plugins/git-flow/.claude-plugin/metadata.json
Normal file
1
plugins/git-flow/.claude-plugin/metadata.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"mcp_servers": ["gitea"]}
|
||||||
1
plugins/pr-review/.claude-plugin/metadata.json
Normal file
1
plugins/pr-review/.claude-plugin/metadata.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"mcp_servers": ["gitea"]}
|
||||||
1
plugins/projman/.claude-plugin/metadata.json
Normal file
1
plugins/projman/.claude-plugin/metadata.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"mcp_servers": ["gitea"]}
|
||||||
1
plugins/viz-platform/.claude-plugin/metadata.json
Normal file
1
plugins/viz-platform/.claude-plugin/metadata.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"mcp_servers": ["viz-platform"]}
|
||||||
@@ -116,19 +116,19 @@ validate_target() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# --- Get MCP Servers for Plugin ---
|
# --- Get MCP Servers for Plugin ---
|
||||||
# Reads the mcp_servers array from plugin.json
|
# Reads the mcp_servers array from metadata.json (separate from plugin.json to avoid schema validation issues)
|
||||||
# Returns newline-separated list of MCP server names, or empty if none
|
# Returns newline-separated list of MCP server names, or empty if none
|
||||||
get_mcp_servers() {
|
get_mcp_servers() {
|
||||||
local plugin_name="$1"
|
local plugin_name="$1"
|
||||||
local plugin_json="$REPO_ROOT/plugins/$plugin_name/.claude-plugin/plugin.json"
|
local metadata_json="$REPO_ROOT/plugins/$plugin_name/.claude-plugin/metadata.json"
|
||||||
|
|
||||||
if [[ ! -f "$plugin_json" ]]; then
|
if [[ ! -f "$metadata_json" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Read mcp_servers array from plugin.json
|
# Read mcp_servers array from metadata.json
|
||||||
# Returns empty if field doesn't exist or is empty
|
# Returns empty if field doesn't exist or is empty
|
||||||
jq -r '.mcp_servers // [] | .[]' "$plugin_json" 2>/dev/null || true
|
jq -r '.mcp_servers // [] | .[]' "$metadata_json" 2>/dev/null || true
|
||||||
}
|
}
|
||||||
|
|
||||||
# --- Check if plugin has any MCP servers ---
|
# --- Check if plugin has any MCP servers ---
|
||||||
|
|||||||
@@ -68,16 +68,16 @@ get_available_plugins() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# --- Get MCP Servers for Plugin ---
|
# --- Get MCP Servers for Plugin ---
|
||||||
# Reads the mcp_servers array from plugin.json
|
# Reads the mcp_servers array from metadata.json (separate from plugin.json to avoid schema validation issues)
|
||||||
get_mcp_servers() {
|
get_mcp_servers() {
|
||||||
local plugin_name="$1"
|
local plugin_name="$1"
|
||||||
local plugin_json="$REPO_ROOT/plugins/$plugin_name/.claude-plugin/plugin.json"
|
local metadata_json="$REPO_ROOT/plugins/$plugin_name/.claude-plugin/metadata.json"
|
||||||
|
|
||||||
if [[ ! -f "$plugin_json" ]]; then
|
if [[ ! -f "$metadata_json" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
jq -r '.mcp_servers // [] | .[]' "$plugin_json" 2>/dev/null || true
|
jq -r '.mcp_servers // [] | .[]' "$metadata_json" 2>/dev/null || true
|
||||||
}
|
}
|
||||||
|
|
||||||
# --- Check if plugin has any MCP servers defined ---
|
# --- Check if plugin has any MCP servers defined ---
|
||||||
|
|||||||
@@ -12,7 +12,9 @@ case "${1:-lean}" in
|
|||||||
lean)
|
lean)
|
||||||
cp "$MARKETPLACE_DIR/marketplace-lean.json" "$MARKETPLACE_DIR/marketplace.json"
|
cp "$MARKETPLACE_DIR/marketplace-lean.json" "$MARKETPLACE_DIR/marketplace.json"
|
||||||
cp "$ROOT_DIR/.mcp-lean.json" "$ROOT_DIR/.mcp.json"
|
cp "$ROOT_DIR/.mcp-lean.json" "$ROOT_DIR/.mcp.json"
|
||||||
|
rm -rf ~/.claude/plugins/cache/
|
||||||
echo "Switched to LEAN profile (6 plugins, 1 MCP server)"
|
echo "Switched to LEAN profile (6 plugins, 1 MCP server)"
|
||||||
|
echo "Plugin cache cleared."
|
||||||
echo ""
|
echo ""
|
||||||
echo "Plugins: projman, git-flow, pr-review, clarity-assist, code-sentinel, doc-guardian"
|
echo "Plugins: projman, git-flow, pr-review, clarity-assist, code-sentinel, doc-guardian"
|
||||||
echo "MCP: gitea only"
|
echo "MCP: gitea only"
|
||||||
@@ -22,7 +24,9 @@ case "${1:-lean}" in
|
|||||||
full)
|
full)
|
||||||
cp "$MARKETPLACE_DIR/marketplace-full.json" "$MARKETPLACE_DIR/marketplace.json"
|
cp "$MARKETPLACE_DIR/marketplace-full.json" "$MARKETPLACE_DIR/marketplace.json"
|
||||||
cp "$ROOT_DIR/.mcp-full.json" "$ROOT_DIR/.mcp.json"
|
cp "$ROOT_DIR/.mcp-full.json" "$ROOT_DIR/.mcp.json"
|
||||||
|
rm -rf ~/.claude/plugins/cache/
|
||||||
echo "Switched to FULL profile (12 plugins, 5 MCP servers)"
|
echo "Switched to FULL profile (12 plugins, 5 MCP servers)"
|
||||||
|
echo "Plugin cache cleared."
|
||||||
echo ""
|
echo ""
|
||||||
echo "Plugins: all"
|
echo "Plugins: all"
|
||||||
echo "MCP: gitea, netbox, data-platform, viz-platform, contract-validator"
|
echo "MCP: gitea, netbox, data-platform, viz-platform, contract-validator"
|
||||||
|
|||||||
@@ -77,19 +77,19 @@ validate_target() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# --- Get MCP Servers for Plugin ---
|
# --- Get MCP Servers for Plugin ---
|
||||||
# Reads the mcp_servers array from plugin.json
|
# Reads the mcp_servers array from metadata.json (separate from plugin.json to avoid schema validation issues)
|
||||||
# Returns newline-separated list of MCP server names, or empty if none
|
# Returns newline-separated list of MCP server names, or empty if none
|
||||||
get_mcp_servers() {
|
get_mcp_servers() {
|
||||||
local plugin_name="$1"
|
local plugin_name="$1"
|
||||||
local plugin_json="$REPO_ROOT/plugins/$plugin_name/.claude-plugin/plugin.json"
|
local metadata_json="$REPO_ROOT/plugins/$plugin_name/.claude-plugin/metadata.json"
|
||||||
|
|
||||||
if [[ ! -f "$plugin_json" ]]; then
|
if [[ ! -f "$metadata_json" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Read mcp_servers array from plugin.json
|
# Read mcp_servers array from metadata.json
|
||||||
# Returns empty if field doesn't exist or is empty
|
# Returns empty if field doesn't exist or is empty
|
||||||
jq -r '.mcp_servers // [] | .[]' "$plugin_json" 2>/dev/null || true
|
jq -r '.mcp_servers // [] | .[]' "$metadata_json" 2>/dev/null || true
|
||||||
}
|
}
|
||||||
|
|
||||||
# --- Remove from .mcp.json ---
|
# --- Remove from .mcp.json ---
|
||||||
|
|||||||
Reference in New Issue
Block a user