feat(goose): auto add mcp server to goose configuration when starting a session

This commit is contained in:
2025-03-25 23:48:08 +01:00
parent 16f59b1c40
commit 7805aa720e
3 changed files with 158 additions and 1 deletions

View File

@@ -54,6 +54,17 @@ if [ -n "$LANGFUSE_INIT_PROJECT_SECRET_KEY" ] && [ -n "$LANGFUSE_INIT_PROJECT_PU
export LANGFUSE_URL="${LANGFUSE_URL:-https://cloud.langfuse.com}"
fi
# Update Goose configuration with available MCP servers
if [ -f "/usr/local/bin/update-goose-config.sh" ]; then
echo "Updating Goose configuration with MCP servers..."
bash /usr/local/bin/update-goose-config.sh
elif [ -f "$(dirname "$0")/update-goose-config.sh" ]; then
echo "Updating Goose configuration with MCP servers..."
bash "$(dirname "$0")/update-goose-config.sh"
else
echo "Warning: update-goose-config.sh script not found. Goose configuration will not be updated."
fi
echo "MC driver initialization complete"
# Mark initialization as complete