Skip to content

Commit 044afe9

Browse files
committed
fix: add missing get_mcp_server_type function
- Add get_mcp_server_type() function to lib/common.sh - Function returns server type from MCP_SERVER_TYPES array - Returns empty string for unknown servers - Fixes undefined function errors in setup-claude-mcp.sh This completes all critical issues identified in PR review.
1 parent 3decde6 commit 044afe9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/common.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,12 @@ declare -A MCP_SERVER_NPX_PACKAGES=(
627627
["taskmaster"]="task-master-ai"
628628
)
629629

630+
# Get the type of an MCP server
631+
get_mcp_server_type() {
632+
local server_name="$1"
633+
echo "${MCP_SERVER_TYPES[$server_name]:-}"
634+
}
635+
630636
# MCP servers that require API keys
631637
declare -A MCP_SERVER_API_KEYS=(
632638
["figma"]="FIGMA_API_KEY"

0 commit comments

Comments
 (0)