Skip to content
Shell

Add local machine configurations

eddiebe147ce017059f631
diff --git a/hooks/browser-automation-check.sh b/hooks/browser-automation-check.sh
new file mode 100755
index 0000000..c15749b
--- /dev/null
+++ b/hooks/browser-automation-check.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+# Browser Automation Check Hook
+# Automatically ensures Comet is running with debugging when browser tools are used
+
+# Only run for browser-related MCP tools
+if [[ "$TOOL_NAME" == mcp__plugin_testing-suite_playwright-server__* ]]; then
+ # Check if debugging port is available
+ if ! lsof -i :9222 >/dev/null 2>&1; then
+ echo "🔍 Browser automation detected - ensuring Comet is running with debugging..."
+ ~/mcp-comet-bridge/check-and-launch.sh
+
+ # Give it a moment to fully start
+ sleep 3
+
+ # Verify it worked
+ if lsof -i :9222 >/dev/null 2>&1; then
+ echo "✅ Comet ready for automation"
+ else
+ echo "⚠️ Comet launched but still initializing - please wait a moment"
+ fi
+ fi
+fi
diff --git a/mcpServers.json b/mcpServers.json
new file mode 100644
index 0000000..22ccefb
--- /dev/null
+++ b/mcpServers.json
@@ -0,0 +1,12 @@
+{
+ "mcpServers": {
+ "notion": {
+ "description": "Official MCP server for Notion API",
+ "command": "npx",
+ "args": ["-y", "@notionhq/notion-mcp-server"],
+ "env": {
+ "NOTION_TOKEN": "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"
+ }
+ }
+ }
+}
diff --git a/settings.local.json b/settings.local.json
index 930f709..5ce1ff8 100644
--- a/settings.local.json
+++ b/settings.local.json
@@ -55,7 +55,8 @@
"browsermcp",
"github",
"memory",
- "perplexity"
+ "perplexity",
+ "notion"
],
"hooks": {
"PostToolUse": [
diff --git a/statusline-command.sh b/statusline-command.sh
new file mode 100755
index 0000000..74f95ea
--- /dev/null
+++ b/statusline-command.sh
@@ -0,0 +1,56 @@
+#!/bin/bash
+
+# Read JSON input from stdin
+input=$(cat)
+
+# Extract values from JSON
+current_dir=$(echo "$input" | jq -r '.workspace.current_dir')
+model_name=$(echo "$input" | jq -r '.model.display_name')
+
+# Get username and hostname
+username=$(whoami)
+hostname=$(hostname -s)
+
+# Get timestamp
+timestamp=$(date "+%H:%M:%S")
+
+# Get git branch and status (if in a git repo)
+git_info=""
+if git -C "$current_dir" rev-parse --git-dir > /dev/null 2>&1; then
+ branch=$(git -C "$current_dir" --no-optional-locks branch --show-current 2>/dev/null)
+
+ # Check for uncommitted changes
+ if ! git -C "$current_dir" --no-optional-locks diff-index --quiet HEAD -- 2>/dev/null; then
+ status="*"
+ else
+ status=""
+ fi
+
+ # Check for untracked files
+ if [ -n "$(git -C "$current_dir" --no-optional-locks ls-files --others --exclude-standard 2>/dev/null)" ]; then
+ if [ -n "$status" ]; then
+ status="${status}+"
+ else
+ status="+"
+ fi
+ fi
+
+ if [ -n "$branch" ]; then
+ # Color feature branches in salmon
+ if [[ "$branch" == feature/* ]]; then
+ git_info=" [git: \033[38;5;210m${branch}\033[2m${status}]"
+ else
+ git_info=" [git: ${branch}${status}]"
+ fi
+ fi
+fi
+
+# Build status line with dim colors
+# Format: [timestamp] username@hostname | directory | git info | model
+printf "\033[2m[%s] %s@%s | %s%s | %s\033[0m" \
+ "$timestamp" \
+ "$username" \
+ "$hostname" \
+ "$current_dir" \
+ "$git_info" \
+ "$model_name"