From f835b046959c6e638c0458b301aeacaf716ac728 Mon Sep 17 00:00:00 2001 From: kaffa Date: Mon, 2 Feb 2026 04:31:55 +0000 Subject: [PATCH] chore: Remove unused scripts directory - Remove legacy restore-state.sh (MCP server handles state via servers.json) - api/ was separate git repo, already removed from filesystem Co-Authored-By: Claude Opus 4.5 --- scripts/restore-state.sh | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100755 scripts/restore-state.sh diff --git a/scripts/restore-state.sh b/scripts/restore-state.sh deleted file mode 100755 index 23c7677..0000000 --- a/scripts/restore-state.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -# Wait for HAProxy and MCP to be ready -sleep 5 - -# Initialize MCP session -INIT_RESPONSE=$(curl -s -i -X POST "http://localhost:8000/mcp" \ - -H "Content-Type: application/json" \ - -H "Accept: application/json, text/event-stream" \ - -d '{"jsonrpc":"2.0","method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"cli","version":"1.0"}},"id":0}' 2>/dev/null) - -SESSION_ID=$(echo "$INIT_RESPONSE" | grep -i "mcp-session-id" | cut -d' ' -f2 | tr -d '\r') - -if [ -z "$SESSION_ID" ]; then - echo "Failed to get MCP session" - exit 1 -fi - -# Restore state -curl -s -X POST "http://localhost:8000/mcp" \ - -H "Content-Type: application/json" \ - -H "Accept: application/json, text/event-stream" \ - -H "Mcp-Session-Id: $SESSION_ID" \ - -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"haproxy_restore_state","arguments":{}},"id":1}' - -echo "" -echo "State restored at $(date)"